Skip to content

armgit / godot

Public Imported from GitHub
0

Godot Engine – Multi-platform 2D and 3D game engine

EditorProperty: Fix Bottom Editor vertical seperation logic

NoNormalDev7d4f6befd8ba
diff --git a/editor/inspector/editor_inspector.h b/editor/inspector/editor_inspector.h
index ad69787606f..8996b247778 100644
--- a/editor/inspector/editor_inspector.h
+++ b/editor/inspector/editor_inspector.h
@@ -191,7 +191,7 @@ private:
void _update_popup();
void _focusable_focused(int p_index);
- int _get_v_separation() const { return bottom_editor ? 0 : theme_cache.vertical_separation; }
+ int _get_v_separation() const { return bottom_editor && bottom_editor_seperation ? theme_cache.vertical_separation : 0; }
bool selectable = true;
bool selected = false;
@@ -218,6 +218,7 @@ private:
protected:
bool has_borders = false;
bool can_override = false;
+ bool bottom_editor_seperation = false;
void _notification(int p_what);
static void _bind_methods();
diff --git a/editor/settings/editor_settings_dialog.cpp b/editor/settings/editor_settings_dialog.cpp
index 08fc7b3f99a..56fcbcb6a7a 100644
--- a/editor/settings/editor_settings_dialog.cpp
+++ b/editor/settings/editor_settings_dialog.cpp
@@ -1123,6 +1123,8 @@ EditorSettingsDialog::~EditorSettingsDialog() {
}
void EditorSettingsPropertyWrapper::_setup_override_info() {
+ bottom_editor_seperation = true;
+
override_container = memnew(HBoxContainer);
override_icon = memnew(TextureRect);