Prevent Camera3D.current from being set to true automatically in the editor.
This commit is contained in:
parent
d76c1d0e51
commit
5b5ac92de5
1 changed files with 1 additions and 1 deletions
|
@ -272,7 +272,7 @@ void Camera3D::clear_current(bool p_enable_next) {
|
||||||
if (get_viewport()->get_camera_3d() == this) {
|
if (get_viewport()->get_camera_3d() == this) {
|
||||||
get_viewport()->_camera_3d_set(nullptr);
|
get_viewport()->_camera_3d_set(nullptr);
|
||||||
|
|
||||||
if (p_enable_next) {
|
if (p_enable_next && !Engine::get_singleton()->is_editor_hint()) {
|
||||||
get_viewport()->_camera_3d_make_next_current(this);
|
get_viewport()->_camera_3d_make_next_current(this);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue