When a consumer renders via maps.draw_map_pre/post_entities without having called maps.load_textures (or when asset-alias resolution failed), the per-atlas diffuse_texture_handle is nil. The previous draw_layer passed nil to draw_sprite_transform and crashed. Now it falls back to engine.render.draw_rect with the classic magenta missing-asset color so the consumer sees the gap visually instead. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
31 KiB
31 KiB