Merge pull request #22752 from aaronfranke/equals-redundant

Remove redundant "== true" and "== false" code
This commit is contained in:
Rémi Verschelde 2018-10-07 10:58:45 +02:00 committed by GitHub
commit 44d82b3a07
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
44 changed files with 107 additions and 99 deletions

View file

@ -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