소스 검색

Merge pull request #92225 from ajreckof/fix-multiline-array

Fix array variable with `@export_multiline` not registering changes.
Rémi Verschelde 1 년 전
부모
커밋
25519867f2
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  1. 3 0
      editor/editor_properties_array_dict.cpp

+ 3 - 0
editor/editor_properties_array_dict.cpp

@@ -235,6 +235,9 @@ void EditorPropertyArray::_property_changed(const String &p_property, Variant p_
 	Variant array = object->get_array().duplicate();
 	array.set(index, p_value);
 	emit_changed(get_edited_property(), array, p_name, p_changing);
+	if (p_changing) {
+		object->set_array(array);
+	}
 }
 
 void EditorPropertyArray::_change_type(Object *p_button, int p_slot_index) {