diff options
| author | Rémi Verschelde <rverschelde@gmail.com> | 2018-10-07 10:58:45 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-10-07 10:58:45 +0200 |
| commit | 44d82b3a070b7ed8973d9e8bc6e58da1084fc7d1 (patch) | |
| tree | 544ab66de3ef4c6a20f2739decc4e98212c3207a /editor/plugins/spatial_editor_plugin.cpp | |
| parent | c27b2adb10ea7077008d4f8b356e3561d05bad6a (diff) | |
| parent | 4f7b33cdcfdcbc11bcc506018dff1b06db3cf3f6 (diff) | |
| download | redot-engine-44d82b3a070b7ed8973d9e8bc6e58da1084fc7d1.tar.gz | |
Merge pull request #22752 from aaronfranke/equals-redundant
Remove redundant "== true" and "== false" code
Diffstat (limited to 'editor/plugins/spatial_editor_plugin.cpp')
| -rw-r--r-- | editor/plugins/spatial_editor_plugin.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/plugins/spatial_editor_plugin.cpp b/editor/plugins/spatial_editor_plugin.cpp index f627788171..f57614b3b3 100644 --- a/editor/plugins/spatial_editor_plugin.cpp +++ b/editor/plugins/spatial_editor_plugin.cpp @@ -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 |
