mirror of
https://github.com/godotengine/godot.git
synced 2024-11-12 23:24:26 +00:00
parent
0b815cbb99
commit
cab91cf8fb
@ -2778,7 +2778,11 @@ void EditorPropertyNodePath::_update_menu() {
|
||||
void EditorPropertyNodePath::_menu_option(int p_idx) {
|
||||
switch (p_idx) {
|
||||
case ACTION_CLEAR: {
|
||||
emit_changed(get_edited_property(), NodePath());
|
||||
if (editing_node) {
|
||||
emit_changed(get_edited_property(), Variant());
|
||||
} else {
|
||||
emit_changed(get_edited_property(), NodePath());
|
||||
}
|
||||
update_property();
|
||||
} break;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user