You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-07 12:30:27 +00:00
fixes #6695 - MultiNodeEdit edit path in exported NodePath
This commit is contained in:
@@ -53,7 +53,14 @@ bool MultiNodeEdit::_set(const StringName& p_name, const Variant& p_value){
|
||||
if (!n)
|
||||
continue;
|
||||
|
||||
if (p_value.get_type() == Variant::NODE_PATH) {
|
||||
Node *tonode = n->get_node(p_value);
|
||||
NodePath p_path = n->get_path_to(tonode);
|
||||
ur->add_do_property(n,name,p_path);
|
||||
} else {
|
||||
ur->add_do_property(n,name,p_value);
|
||||
}
|
||||
|
||||
ur->add_undo_property(n,name,n->get(name));
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user