mirror of
https://github.com/storytold/materialcraft.git
synced 2026-11-16 19:40:41 +00:00
0ce7a6aafb
* Hash bound input-image resources into graph instance cache keys A graph instance can show a stale preview image after its bound bitmap resource is replaced, because the instance cache key never changes. Hashing those resources makes the instance re-cook when the bitmap changes. Include the content hashes of resources referenced by graph.input_images (and their linear flags) in graph_tree_hash, and add a regression test that cooks an instance, replaces the bound resource bytes, and asserts the new image is cooked instead of the cached one. Test: bound_input_image_resource_change_recooks_instance failed before the change and passes after. * Address review for pull request 110 --------- Co-authored-by: eliets2 <287273517+eliets2@users.noreply.github.com> Co-authored-by: FredApps <153173854+FredApps@users.noreply.github.com> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>