make this more reliable (what about multiple mesh items, maybe even choosing the first mesh is enough for now?): var _placing_blueprint_mesh: MeshInstance3D = _placing_blueprint.get_node("MeshInstance3D") - omni-lantern for instance
FIX?
check item scene if $MeshInstance3D.mesh == null
if so, search the scene for all meshes that aren't flames, and apply the shader to those
Something like:
while not queue.is_empty():
var c : Node = queue.pop_front()
queue.append_array(c.get_children())
if c is MeshInstance3D:
# apply the shader```
make this more reliable (what about multiple mesh items, maybe even choosing the first mesh is enough for now?): var _placing_blueprint_mesh: MeshInstance3D = _placing_blueprint.get_node("MeshInstance3D") - omni-lantern for instance
FIX?
check item scene if $MeshInstance3D.mesh == null if so, search the scene for all meshes that aren't flames, and apply the shader to those
Something like: