Merge pull request #34881 from williamd1k0/fix-animationtree-no3d
Fix AnimationTree not available when compiled with disable_3d
This commit is contained in:
commit
83fe471c3b
1 changed files with 22 additions and 22 deletions
|
@ -372,6 +372,28 @@ void register_scene_types() {
|
|||
ClassDB::register_class<AnimationPlayer>();
|
||||
ClassDB::register_class<Tween>();
|
||||
|
||||
ClassDB::register_class<AnimationTreePlayer>();
|
||||
ClassDB::register_class<AnimationTree>();
|
||||
ClassDB::register_class<AnimationNode>();
|
||||
ClassDB::register_class<AnimationRootNode>();
|
||||
ClassDB::register_class<AnimationNodeBlendTree>();
|
||||
ClassDB::register_class<AnimationNodeBlendSpace1D>();
|
||||
ClassDB::register_class<AnimationNodeBlendSpace2D>();
|
||||
ClassDB::register_class<AnimationNodeStateMachine>();
|
||||
ClassDB::register_class<AnimationNodeStateMachinePlayback>();
|
||||
|
||||
ClassDB::register_class<AnimationNodeStateMachineTransition>();
|
||||
ClassDB::register_class<AnimationNodeOutput>();
|
||||
ClassDB::register_class<AnimationNodeOneShot>();
|
||||
ClassDB::register_class<AnimationNodeAnimation>();
|
||||
ClassDB::register_class<AnimationNodeAdd2>();
|
||||
ClassDB::register_class<AnimationNodeAdd3>();
|
||||
ClassDB::register_class<AnimationNodeBlend2>();
|
||||
ClassDB::register_class<AnimationNodeBlend3>();
|
||||
ClassDB::register_class<AnimationNodeTimeScale>();
|
||||
ClassDB::register_class<AnimationNodeTimeSeek>();
|
||||
ClassDB::register_class<AnimationNodeTransition>();
|
||||
|
||||
OS::get_singleton()->yield(); //may take time to init
|
||||
|
||||
#ifndef _3D_DISABLED
|
||||
|
@ -399,7 +421,6 @@ void register_scene_types() {
|
|||
ClassDB::register_class<GIProbeData>();
|
||||
ClassDB::register_class<BakedLightmap>();
|
||||
ClassDB::register_class<BakedLightmapData>();
|
||||
ClassDB::register_class<AnimationTreePlayer>();
|
||||
ClassDB::register_class<Particles>();
|
||||
ClassDB::register_class<CPUParticles>();
|
||||
ClassDB::register_class<Position3D>();
|
||||
|
@ -410,27 +431,6 @@ void register_scene_types() {
|
|||
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>();
|
||||
ClassDB::register_class<AnimationNodeBlendTree>();
|
||||
ClassDB::register_class<AnimationNodeBlendSpace1D>();
|
||||
ClassDB::register_class<AnimationNodeBlendSpace2D>();
|
||||
ClassDB::register_class<AnimationNodeStateMachine>();
|
||||
ClassDB::register_class<AnimationNodeStateMachinePlayback>();
|
||||
|
||||
ClassDB::register_class<AnimationNodeStateMachineTransition>();
|
||||
ClassDB::register_class<AnimationNodeOutput>();
|
||||
ClassDB::register_class<AnimationNodeOneShot>();
|
||||
ClassDB::register_class<AnimationNodeAnimation>();
|
||||
ClassDB::register_class<AnimationNodeAdd2>();
|
||||
ClassDB::register_class<AnimationNodeAdd3>();
|
||||
ClassDB::register_class<AnimationNodeBlend2>();
|
||||
ClassDB::register_class<AnimationNodeBlend3>();
|
||||
ClassDB::register_class<AnimationNodeTimeScale>();
|
||||
ClassDB::register_class<AnimationNodeTimeSeek>();
|
||||
ClassDB::register_class<AnimationNodeTransition>();
|
||||
|
||||
OS::get_singleton()->yield(); //may take time to init
|
||||
|
||||
ClassDB::register_virtual_class<CollisionObject>();
|
||||
|
|
Loading…
Reference in a new issue