You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-06 12:20:30 +00:00
@@ -4907,13 +4907,19 @@ void EditorNode::dim_editor(bool p_dimming) {
|
|||||||
static int dim_count = 0;
|
static int dim_count = 0;
|
||||||
bool dim_ui = EditorSettings::get_singleton()->get("interface/dim_editor_on_dialog_popup");
|
bool dim_ui = EditorSettings::get_singleton()->get("interface/dim_editor_on_dialog_popup");
|
||||||
if (p_dimming) {
|
if (p_dimming) {
|
||||||
if (dim_ui && dim_count == 0)
|
if (dim_ui) {
|
||||||
_start_dimming(true);
|
if (dim_count == 0) {
|
||||||
dim_count++;
|
_start_dimming(true);
|
||||||
|
}
|
||||||
|
dim_count++;
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
dim_count--;
|
if (dim_count == 1) {
|
||||||
if (dim_count < 1)
|
|
||||||
_start_dimming(false);
|
_start_dimming(false);
|
||||||
|
dim_count = 0;
|
||||||
|
} else if (dim_ui && dim_count > 0) {
|
||||||
|
dim_count--;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user