mirror of
https://github.com/tiennm99/godot.git
synced 2026-08-18 04:27:46 +00:00
@@ -4967,18 +4967,18 @@ void EditorNode::dim_editor(bool p_dimming) {
|
||||
static int dim_count = 0;
|
||||
bool dim_ui = EditorSettings::get_singleton()->get("interface/editor/dim_editor_on_dialog_popup");
|
||||
if (p_dimming) {
|
||||
if (dim_ui) {
|
||||
if (dim_count == 0) {
|
||||
_start_dimming(true);
|
||||
}
|
||||
dim_count++;
|
||||
if (dim_ui && dim_count == 0) {
|
||||
_start_dimming(true);
|
||||
}
|
||||
dim_count++;
|
||||
} else {
|
||||
if (dim_count == 1) {
|
||||
_start_dimming(false);
|
||||
dim_count = 0;
|
||||
} else if (dim_ui && dim_count > 0) {
|
||||
}
|
||||
if (dim_count > 0) {
|
||||
dim_count--;
|
||||
} else {
|
||||
ERR_PRINT("Undimmed before dimming!");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user