summaryrefslogtreecommitdiffstats
path: root/scene/3d/remote_transform.cpp
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2018-06-27 20:50:25 -0300
committerJuan Linietsky <reduzio@gmail.com>2018-06-27 20:50:25 -0300
commiteeab3502d5eec68dbce2d7b7ff822a14e6a3599c (patch)
tree4b04c300f75bf49372a4900e2456b972a580650b /scene/3d/remote_transform.cpp
parent9bab5134cfd4f0095545ae58fcf6a10dc07dc7d1 (diff)
downloadredot-engine-eeab3502d5eec68dbce2d7b7ff822a14e6a3599c.tar.gz
Changes to how node paths are selected from property, allowing setting a hint.
Diffstat (limited to 'scene/3d/remote_transform.cpp')
-rw-r--r--scene/3d/remote_transform.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/3d/remote_transform.cpp b/scene/3d/remote_transform.cpp
index afb85f7314..2156e24cd0 100644
--- a/scene/3d/remote_transform.cpp
+++ b/scene/3d/remote_transform.cpp
@@ -194,7 +194,7 @@ void RemoteTransform::_bind_methods() {
ClassDB::bind_method(D_METHOD("set_update_scale", "update_remote_scale"), &RemoteTransform::set_update_scale);
ClassDB::bind_method(D_METHOD("get_update_scale"), &RemoteTransform::get_update_scale);
- ADD_PROPERTY(PropertyInfo(Variant::NODE_PATH, "remote_path"), "set_remote_node", "get_remote_node");
+ ADD_PROPERTY(PropertyInfo(Variant::NODE_PATH, "remote_path", PROPERTY_HINT_NODE_PATH_VALID_TYPES, "Spatial"), "set_remote_node", "get_remote_node");
ADD_PROPERTY(PropertyInfo(Variant::BOOL, "use_global_coordinates"), "set_use_global_coordinates", "get_use_global_coordinates");
ADD_GROUP("Update", "update_");