diff options
| author | AndreaCatania | 2017-10-03 18:49:32 +0200 |
|---|---|---|
| committer | Andrea Catania | 2018-05-07 21:03:16 +0200 |
| commit | 9e57a07fb60fcd6c55bd51cf63d4c3cf4c6a3b26 (patch) | |
| tree | ccf404b982a662dfba1c3c5d663ba16b6f7ba2e3 /scene/3d/spatial.cpp | |
| parent | 8c30337565326f313e398f6428eda5cb17614f14 (diff) | |
| download | godot-9e57a07fb60fcd6c55bd51cf63d4c3cf4c6a3b26.tar.gz godot-9e57a07fb60fcd6c55bd51cf63d4c3cf4c6a3b26.tar.zst godot-9e57a07fb60fcd6c55bd51cf63d4c3cf4c6a3b26.zip | |
Diffstat (limited to 'scene/3d/spatial.cpp')
| -rw-r--r-- | scene/3d/spatial.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/scene/3d/spatial.cpp b/scene/3d/spatial.cpp index 5deeb75c6..748aa8aad 100644 --- a/scene/3d/spatial.cpp +++ b/scene/3d/spatial.cpp @@ -286,6 +286,16 @@ Transform Spatial::get_global_transform() const { return data.global_transform; } +#ifdef TOOLS_ENABLED +Transform Spatial::get_global_gizmo_transform() const { + return get_global_transform(); +} + +Transform Spatial::get_local_gizmo_transform() const { + return get_transform(); +} +#endif + Spatial *Spatial::get_parent_spatial() const { return data.parent; |
