Buildables: textures only converted for first model after clean when multiple models #3

Closed
opened 2026-07-17 10:42:32 +00:00 by AmbientImpact · 0 comments
AmbientImpact commented 2026-07-17 10:42:32 +00:00 (Migrated from codeberg.org)

This probably due to the textures being converted as a prerequisite of compile-model-dependencies:

codeberg.org/unforeseen-consequences/tools@4f00402d23/mk/buildable/presets/model.mk (L71)

This unfortunately means it'll get run right before the first model is compiled, but that's before the next model has a chance to process its textures before conversion.

I worked around this in the crowbar by hooking into before-build:

codeberg.org/unforeseen-consequences/models-weapons-crowbar@d76e922120/source/mk/10_w_crowbar.mk (L54)

This should be ported over to tools and standardised.

This probably due to the textures being converted as a prerequisite of `compile-model-dependencies`: https://codeberg.org/unforeseen-consequences/tools/src/commit/4f00402d23d726f86923ac36cef5176af0341a87/mk/buildable/presets/model.mk#L71 This unfortunately means it'll get run right before the first model is compiled, but that's before the next model has a chance to process its textures before conversion. I worked around this in the crowbar by hooking into `before-build`: https://codeberg.org/unforeseen-consequences/models-weapons-crowbar/src/commit/d76e9221208760c43d2d0ea4ac6b1a8d6ef2b69e/source/mk/10_w_crowbar.mk#L54 This should be ported over to tools and standardised.
Sign in to join this conversation.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
unforeseen-consequences/tools#3
No description provided.