summaryrefslogtreecommitdiff
path: root/scene/3d
diff options
context:
space:
mode:
authorDuroxxigar <young9003@gmail.com>2020-10-01 02:43:30 -0400
committerDuroxxigar <young9003@gmail.com>2020-10-01 02:43:30 -0400
commit85a8dbb7b6eced8364e83c879f98e17862a22124 (patch)
tree9707f44ea0fc2774eab566c57dcae15d0cbde12a /scene/3d
parent4a4be06260085d7aad8c7082d6d59a14fcc279e8 (diff)
Made toplevel a property for Node3D and CanvasItem
Diffstat (limited to 'scene/3d')
-rw-r--r--scene/3d/node_3d.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/scene/3d/node_3d.cpp b/scene/3d/node_3d.cpp
index bd9e4f5bde..bf1445edf2 100644
--- a/scene/3d/node_3d.cpp
+++ b/scene/3d/node_3d.cpp
@@ -773,6 +773,7 @@ void Node3D::_bind_methods() {
ADD_PROPERTY(PropertyInfo(Variant::VECTOR3, "rotation_degrees", PROPERTY_HINT_NONE, "", PROPERTY_USAGE_EDITOR), "set_rotation_degrees", "get_rotation_degrees");
ADD_PROPERTY(PropertyInfo(Variant::VECTOR3, "rotation", PROPERTY_HINT_NONE, "", 0), "set_rotation", "get_rotation");
ADD_PROPERTY(PropertyInfo(Variant::VECTOR3, "scale", PROPERTY_HINT_NONE, "", PROPERTY_USAGE_EDITOR), "set_scale", "get_scale");
+ ADD_PROPERTY(PropertyInfo(Variant::BOOL, "toplevel"), "set_as_toplevel", "is_set_as_toplevel");
ADD_GROUP("Matrix", "");
ADD_PROPERTY(PropertyInfo(Variant::TRANSFORM, "transform", PROPERTY_HINT_NONE, ""), "set_transform", "get_transform");
ADD_GROUP("Visibility", "");