You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-12-02 16:48:55 +00:00
Fix error when editing multifield values inside arrays and dictionaries
This commit is contained in:
@@ -96,7 +96,13 @@ void EditorDebuggerRemoteObjects::_get_property_list(List<PropertyInfo> *p_list)
|
||||
}
|
||||
|
||||
void EditorDebuggerRemoteObjects::set_property_field(const StringName &p_property, const Variant &p_value, const String &p_field) {
|
||||
_set_impl(p_property, p_value, p_field);
|
||||
// Ignore the field with arrays and dictionaries, as they are passed whole when edited.
|
||||
Variant::Type type = p_value.get_type();
|
||||
if (type == Variant::ARRAY || type == Variant::DICTIONARY) {
|
||||
_set_impl(p_property, p_value, "");
|
||||
} else {
|
||||
_set_impl(p_property, p_value, p_field);
|
||||
}
|
||||
}
|
||||
|
||||
String EditorDebuggerRemoteObjects::get_title() {
|
||||
|
||||
Reference in New Issue
Block a user