|
@@ -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);
|
|
|
}
|
|
|
}
|