Fix broken room camera (#437)

This commit is contained in:
Julian Murgia
2021-11-13 10:14:18 +01:00
committed by GitHub
parent 524fc05cb0
commit 555f820254
3 changed files with 10 additions and 14 deletions

View File

@@ -40,7 +40,7 @@ func set_scene(p_scene: Node) -> void:
if current_scene != null:
clear_scene()
if p_scene.is_inside_tree() and not p_scene.get_parent() != self:
if p_scene.is_inside_tree() and p_scene.get_parent() != self:
p_scene.get_parent().remove_child(p_scene)
add_child(p_scene)