diff options
| author | Juan Linietsky | 2017-12-07 12:13:20 -0300 |
|---|---|---|
| committer | Juan Linietsky | 2017-12-07 12:13:20 -0300 |
| commit | dd892a327d39c6df71e5e447b30488d7694501b5 (patch) | |
| tree | 98c91f2486acc3f8c65fd91e9541104e62ef66fb /scene/3d/camera.cpp | |
| parent | 561490261166a61718e80fe73bc112b8e3cf4b33 (diff) | |
| download | godot-dd892a327d39c6df71e5e447b30488d7694501b5.tar.gz godot-dd892a327d39c6df71e5e447b30488d7694501b5.tar.zst godot-dd892a327d39c6df71e5e447b30488d7694501b5.zip | |
Diffstat (limited to 'scene/3d/camera.cpp')
| -rw-r--r-- | scene/3d/camera.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/scene/3d/camera.cpp b/scene/3d/camera.cpp index abc4a0349..af210fff1 100644 --- a/scene/3d/camera.cpp +++ b/scene/3d/camera.cpp @@ -191,11 +191,12 @@ void Camera::_update_camera() { get_viewport()->_camera_transform_changed_notify(); */ - if (is_inside_tree() && is_current()) { - get_viewport()->_camera_transform_changed_notify(); - } + if (!is_inside_tree() || get_tree()->is_node_being_edited(this) || !is_current()) + return; + + get_viewport()->_camera_transform_changed_notify(); - if (is_current() && get_world().is_valid()) { + if (get_world().is_valid()) { get_world()->_update_camera(this); } } |
