mirror of
https://github.com/godotengine/godot.git
synced 2025-10-20 00:13:30 +00:00
Merge pull request #22752 from aaronfranke/equals-redundant
Remove redundant "== true" and "== false" code
This commit is contained in:
commit
44d82b3a07
44 changed files with 107 additions and 99 deletions
|
@ -2124,7 +2124,7 @@ void SpatialEditorViewport::_notification(int p_what) {
|
|||
_update_freelook(delta);
|
||||
|
||||
Node *scene_root = editor->get_scene_tree_dock()->get_editor_data()->get_edited_scene_root();
|
||||
if (previewing_cinema == true && scene_root != NULL) {
|
||||
if (previewing_cinema && scene_root != NULL) {
|
||||
Camera *cam = scene_root->get_viewport()->get_camera();
|
||||
if (cam != NULL && cam != previewing) {
|
||||
//then switch the viewport's camera to the scene's viewport camera
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue