Merge pull request #96620 from ajreckof/fix-clear-button-on-Array-Node]
Fix clear button on `Array[Node]`.
This commit is contained in:
commit
a0823ce5fe
|
@ -2703,7 +2703,11 @@ void EditorPropertyNodePath::_update_menu() {
|
||||||
void EditorPropertyNodePath::_menu_option(int p_idx) {
|
void EditorPropertyNodePath::_menu_option(int p_idx) {
|
||||||
switch (p_idx) {
|
switch (p_idx) {
|
||||||
case ACTION_CLEAR: {
|
case ACTION_CLEAR: {
|
||||||
|
if (editing_node) {
|
||||||
|
emit_changed(get_edited_property(), Variant());
|
||||||
|
} else {
|
||||||
emit_changed(get_edited_property(), NodePath());
|
emit_changed(get_edited_property(), NodePath());
|
||||||
|
}
|
||||||
update_property();
|
update_property();
|
||||||
} break;
|
} break;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue