mirror of
https://github.com/godotengine/godot.git
synced 2026-01-03 18:11:19 +03:00
fix infinite call loop on theme change.
Apply suggestions from code review
This commit is contained in:
@@ -3364,8 +3364,6 @@ void EditorPropertyResource::update_property() {
|
||||
EditorNode::get_singleton()->hide_unused_editors();
|
||||
opened_editor = false;
|
||||
}
|
||||
|
||||
_update_property_bg();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -3422,12 +3420,6 @@ bool EditorPropertyResource::is_colored(ColorationMode p_mode) {
|
||||
|
||||
void EditorPropertyResource::_notification(int p_what) {
|
||||
switch (p_what) {
|
||||
case NOTIFICATION_THEME_CHANGED: {
|
||||
if (EditorThemeManager::is_generated_theme_outdated()) {
|
||||
_update_property_bg();
|
||||
}
|
||||
} break;
|
||||
|
||||
case NOTIFICATION_EXIT_TREE: {
|
||||
const EditorInspector *ei = get_parent_inspector();
|
||||
if (ei && !ei->is_main_editor_inspector()) {
|
||||
@@ -3439,6 +3431,7 @@ void EditorPropertyResource::_notification(int p_what) {
|
||||
|
||||
EditorPropertyResource::EditorPropertyResource() {
|
||||
use_sub_inspector = bool(EDITOR_GET("interface/inspector/open_resources_in_current_inspector"));
|
||||
has_borders = true;
|
||||
}
|
||||
|
||||
////////////// DEFAULT PLUGIN //////////////////////
|
||||
|
||||
Reference in New Issue
Block a user