Mooses2k / SecretHistories

First-person stealth/combat roguelite
Other
15 stars 12 forks source link

Blueprint for SHOULD_PLACE doesn't show if mesh under Skeleton etc #657

Closed Mooses2k closed 5 months ago

Mooses2k commented 5 months ago

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```
Mooses2k commented 5 months ago

Closed by bdf1d1788d13733aa7bbc90adf6ddcd0e556b700