Hide mesh while the animation tree is disabled.

This commit is contained in:
Relintai 2020-05-23 18:12:53 +02:00
parent c0f1b21788
commit 43a768de17

View File

@ -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