Fix max icon width in remote scene view

This commit is contained in:
Jayden Sipe
2026-04-16 01:03:42 -04:00
parent 3f63a400fa
commit 333fda8fd0
2 changed files with 9 additions and 0 deletions
+8
View File
@@ -1669,6 +1669,14 @@ void EditorPropertyObjectID::update_property() {
}
}
void EditorPropertyObjectID::_notification(int p_what) {
switch (p_what) {
case NOTIFICATION_THEME_CHANGED: {
edit->add_theme_constant_override("icon_max_width", get_theme_constant(SNAME("class_icon_size"), EditorStringName(Editor)));
} break;
}
}
void EditorPropertyObjectID::setup(const String &p_base_type) {
base_type = p_base_type;
}
+1
View File
@@ -421,6 +421,7 @@ class EditorPropertyObjectID : public EditorProperty {
protected:
virtual void _set_read_only(bool p_read_only) override;
void _notification(int p_what);
public:
virtual void update_property() override;