Merge pull request #6703 from razvanc-r/fix_node_path

fixes #6695 - MultiNodeEdit edit path in exported NodePath
This commit is contained in:
Rémi Verschelde 2016-10-09 14:34:26 +02:00 committed by GitHub
commit 59d92d82a7
1 changed files with 8 additions and 1 deletions

View File

@ -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));