Mooses2k / SecretHistories

First-person stealth/combat roguelite
Other
14 stars 11 forks source link

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

Closed Mooses2k closed 2 weeks ago

Mooses2k commented 3 weeks 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 2 weeks ago

Closed by bdf1d1788d13733aa7bbc90adf6ddcd0e556b700