refactor: remove redundant check for camera node
This commit is contained in:
committed by
Julian Murgia
parent
b8cefb8003
commit
10f770855f
@@ -497,7 +497,8 @@ func update_idle():
|
|||||||
# Return the camera position if a camera_position_node exists or the
|
# Return the camera position if a camera_position_node exists or the
|
||||||
# global position of the player
|
# global position of the player
|
||||||
func get_camera_node():
|
func get_camera_node():
|
||||||
if camera_node and get_node(camera_node):
|
if has_node(camera_node):
|
||||||
|
escoria.logger.debug("Camera node found - directing camera to the camera_node on " + global_id)
|
||||||
return get_node(camera_node)
|
return get_node(camera_node)
|
||||||
return self
|
return self
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user