aboutsummaryrefslogtreecommitdiff
path: root/tools/editor/multi_node_edit.cpp
diff options
context:
space:
mode:
authorJuan Linietsky2016-10-30 09:00:45 -0300
committerJuan Linietsky2016-10-30 09:00:45 -0300
commitab4126f51061277e87b41c48b40e7b54942d4eca (patch)
treec58168b60323c4d43b58743b099e562a89e60a56 /tools/editor/multi_node_edit.cpp
parent8b15b26eedad4fdd33d50f5f9aa0fcc1875d503f (diff)
parent914015f3b63dd956e72ea937d46ea4b2db005ada (diff)
downloadgodot-ab4126f51061277e87b41c48b40e7b54942d4eca.tar.gz
godot-ab4126f51061277e87b41c48b40e7b54942d4eca.tar.zst
godot-ab4126f51061277e87b41c48b40e7b54942d4eca.zip
Merge branch 'master' of https://github.com/godotengine/godot
Diffstat (limited to 'tools/editor/multi_node_edit.cpp')
-rw-r--r--tools/editor/multi_node_edit.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/tools/editor/multi_node_edit.cpp b/tools/editor/multi_node_edit.cpp
index 4d27b8e34..e4ceaf4a8 100644
--- a/tools/editor/multi_node_edit.cpp
+++ b/tools/editor/multi_node_edit.cpp
@@ -53,7 +53,14 @@ bool MultiNodeEdit::_set(const StringName& p_name, const Variant& p_value){
if (!n)
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));