2
0
Эх сурвалжийг харах

Fixes infinite loop when switching editor

Haoyu Qiu 5 жил өмнө
parent
commit
6f178a2061

+ 2 - 2
editor/editor_node.cpp

@@ -630,7 +630,7 @@ void EditorNode::_editor_select_next() {
 		} else {
 			editor++;
 		}
-	} while (main_editor_buttons[editor]->is_visible());
+	} while (!main_editor_buttons[editor]->is_visible());
 
 	_editor_select(editor);
 }
@@ -645,7 +645,7 @@ void EditorNode::_editor_select_prev() {
 		} else {
 			editor--;
 		}
-	} while (main_editor_buttons[editor]->is_visible());
+	} while (!main_editor_buttons[editor]->is_visible());
 
 	_editor_select(editor);
 }