fixes #6695 - MultiNodeEdit edit path in exported NodePath
(cherry picked from commit ced8fb4806
)
This commit is contained in:
parent
9e20b39b3d
commit
6775cce469
1 changed files with 8 additions and 1 deletions
|
@ -53,7 +53,14 @@ bool MultiNodeEdit::_set(const StringName& p_name, const Variant& p_value){
|
||||||
if (!n)
|
if (!n)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
ur->add_do_property(n,name,p_value);
|
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));
|
ur->add_undo_property(n,name,n->get(name));
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue