mirror of
https://github.com/Relintai/broken_seals.git
synced 2024-11-13 20:47:19 +01:00
Hide mesh while the animation tree is disabled.
This commit is contained in:
parent
c0f1b21788
commit
43a768de17
@ -325,6 +325,9 @@ func prepare_textures() -> void:
|
||||
|
||||
|
||||
func setup_build_mesh() -> void:
|
||||
if mesh_instance != null:
|
||||
mesh_instance.hide()
|
||||
|
||||
if get_animation_tree() != null:
|
||||
get_animation_tree().active = false
|
||||
|
||||
@ -337,6 +340,9 @@ func finish_build_mesh() -> void:
|
||||
|
||||
if get_animation_tree() != null:
|
||||
get_animation_tree().active = true
|
||||
|
||||
if mesh_instance != null:
|
||||
mesh_instance.show()
|
||||
|
||||
_generating = false
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user