Merge pull request #19124 from volzhs/relative-node-path
Use relative node path when assigning a node on inspector
This commit is contained in:
commit
65c49643c1
1 changed files with 2 additions and 1 deletions
|
@ -1522,7 +1522,8 @@ EditorPropertyColor::EditorPropertyColor() {
|
||||||
|
|
||||||
void EditorPropertyNodePath::_node_selected(const NodePath &p_path) {
|
void EditorPropertyNodePath::_node_selected(const NodePath &p_path) {
|
||||||
|
|
||||||
emit_signal("property_changed", get_edited_property(), p_path);
|
Node *base_node = Object::cast_to<Node>(get_edited_object());
|
||||||
|
emit_signal("property_changed", get_edited_property(), base_node->get_path().rel_path_to(p_path));
|
||||||
update_property();
|
update_property();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue