mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 16:03:29 +00:00
Move Skeleton3D init process into post_enter_tree from enter_tree
This commit is contained in:
parent
825ef2387f
commit
f68252f95f
1 changed files with 5 additions and 3 deletions
|
@ -289,12 +289,14 @@ void Skeleton3D::_notification(int p_what) {
|
||||||
switch (p_what) {
|
switch (p_what) {
|
||||||
case NOTIFICATION_ENTER_TREE: {
|
case NOTIFICATION_ENTER_TREE: {
|
||||||
_process_changed();
|
_process_changed();
|
||||||
_make_dirty();
|
|
||||||
_make_modifiers_dirty();
|
|
||||||
force_update_all_dirty_bones();
|
|
||||||
#if !defined(DISABLE_DEPRECATED) && !defined(PHYSICS_3D_DISABLED)
|
#if !defined(DISABLE_DEPRECATED) && !defined(PHYSICS_3D_DISABLED)
|
||||||
setup_simulator();
|
setup_simulator();
|
||||||
#endif // _DISABLE_DEPRECATED && PHYSICS_3D_DISABLED
|
#endif // _DISABLE_DEPRECATED && PHYSICS_3D_DISABLED
|
||||||
|
} break;
|
||||||
|
case NOTIFICATION_POST_ENTER_TREE: {
|
||||||
|
_make_dirty();
|
||||||
|
_make_modifiers_dirty();
|
||||||
|
force_update_all_dirty_bones();
|
||||||
update_flags |= UPDATE_FLAG_POSE;
|
update_flags |= UPDATE_FLAG_POSE;
|
||||||
_notification(NOTIFICATION_UPDATE_SKELETON);
|
_notification(NOTIFICATION_UPDATE_SKELETON);
|
||||||
} break;
|
} break;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue