Skip to content

Commit f68252f

Browse files
committed
Move Skeleton3D init process into post_enter_tree from enter_tree
1 parent 825ef23 commit f68252f

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

scene/3d/skeleton_3d.cpp

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -289,12 +289,14 @@ void Skeleton3D::_notification(int p_what) {
289289
switch (p_what) {
290290
case NOTIFICATION_ENTER_TREE: {
291291
_process_changed();
292-
_make_dirty();
293-
_make_modifiers_dirty();
294-
force_update_all_dirty_bones();
295292
#if !defined(DISABLE_DEPRECATED) && !defined(PHYSICS_3D_DISABLED)
296293
setup_simulator();
297294
#endif // _DISABLE_DEPRECATED && PHYSICS_3D_DISABLED
295+
} break;
296+
case NOTIFICATION_POST_ENTER_TREE: {
297+
_make_dirty();
298+
_make_modifiers_dirty();
299+
force_update_all_dirty_bones();
298300
update_flags |= UPDATE_FLAG_POSE;
299301
_notification(NOTIFICATION_UPDATE_SKELETON);
300302
} break;

0 commit comments

Comments
 (0)