Merge pull request #21701 from AlexHolly/fix-multiselect-proptery-change
Fix multiselect change property
This commit is contained in:
@ -1965,14 +1965,14 @@ void EditorInspector::_edit_set(const String &p_name, const Variant &p_value, bo
|
||||
}
|
||||
}
|
||||
|
||||
void EditorInspector::_property_changed(const String &p_path, const Variant &p_value, bool changing) {
|
||||
void EditorInspector::_property_changed(const String &p_path, const Variant &p_value, const String &p_name, bool changing) {
|
||||
|
||||
// The "changing" variable must be true for properties that trigger events as typing occurs,
|
||||
// like "text_changed" signal. eg: Text property of Label, Button, RichTextLabel, etc.
|
||||
if (changing)
|
||||
this->changing++;
|
||||
|
||||
_edit_set(p_path, p_value, false, "");
|
||||
_edit_set(p_path, p_value, false, p_name);
|
||||
|
||||
if (changing)
|
||||
this->changing--;
|
||||
@ -2199,7 +2199,7 @@ String EditorInspector::get_object_class() const {
|
||||
|
||||
void EditorInspector::_bind_methods() {
|
||||
|
||||
ClassDB::bind_method("_property_changed", &EditorInspector::_property_changed, DEFVAL(false));
|
||||
ClassDB::bind_method("_property_changed", &EditorInspector::_property_changed, DEFVAL(""), DEFVAL(false));
|
||||
ClassDB::bind_method("_multiple_properties_changed", &EditorInspector::_multiple_properties_changed);
|
||||
ClassDB::bind_method("_property_changed_update_all", &EditorInspector::_property_changed_update_all);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user