diff options
| author | Juan Linietsky | 2018-06-26 19:05:11 -0300 |
|---|---|---|
| committer | Juan Linietsky | 2018-06-26 19:06:16 -0300 |
| commit | c633b770cb648613ca88fc9e007718acfc219317 (patch) | |
| tree | 2aa72d9bfc3276db0ea8a6b833d7fade724b3c16 /scene/register_scene_types.cpp | |
| parent | f036353b93269e1162437f188f6792f3953ac155 (diff) | |
| download | godot-mirror.tar.gz godot-mirror.tar.zst godot-mirror.zip | |
-Add RootMotionView, to debug root motion in 3D (disabled in runtime)
Diffstat (limited to '')
| -rw-r--r-- | scene/register_scene_types.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/scene/register_scene_types.cpp b/scene/register_scene_types.cpp index 333e5c8e0..e8ab7b339 100644 --- a/scene/register_scene_types.cpp +++ b/scene/register_scene_types.cpp @@ -66,10 +66,11 @@ #include "scene/animation/animation_blend_space_1d.h" #include "scene/animation/animation_blend_space_2d.h" #include "scene/animation/animation_blend_tree.h" -#include "scene/animation/animation_tree.h" #include "scene/animation/animation_node_state_machine.h" #include "scene/animation/animation_player.h" +#include "scene/animation/animation_tree.h" #include "scene/animation/animation_tree_player.h" +#include "scene/animation/root_motion_view.h" #include "scene/animation/tween.h" #include "scene/audio/audio_player.h" #include "scene/gui/box_container.h" @@ -387,6 +388,9 @@ void register_scene_types() { ClassDB::register_class<NavigationMesh>(); ClassDB::register_class<Navigation>(); + ClassDB::register_class<RootMotionView>(); + ClassDB::set_class_enabled("RootMotionView", false); //disabled by default, enabled by editor + ClassDB::register_class<AnimationTree>(); ClassDB::register_class<AnimationNode>(); ClassDB::register_class<AnimationRootNode>(); |
