Skip to content

Commit 68ff4e9

Browse files
committed
Process skeleton modifiers when the skeleton is marked as dirty
1 parent d5ad055 commit 68ff4e9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scene/3d/skeleton_3d.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ void Skeleton3D::_notification(int p_what) {
295295
#if !defined(DISABLE_DEPRECATED) && !defined(PHYSICS_3D_DISABLED)
296296
setup_simulator();
297297
#endif // _DISABLE_DEPRECATED && PHYSICS_3D_DISABLED
298-
update_flags = UPDATE_FLAG_POSE;
298+
update_flags |= UPDATE_FLAG_POSE;
299299
_notification(NOTIFICATION_UPDATE_SKELETON);
300300
} break;
301301
#ifdef TOOLS_ENABLED
@@ -929,7 +929,7 @@ void Skeleton3D::_make_dirty() {
929929
return;
930930
}
931931
dirty = true;
932-
_update_deferred();
932+
_update_deferred(modifiers.is_empty() ? UPDATE_FLAG_POSE : (UpdateFlag)(UPDATE_FLAG_POSE | UPDATE_FLAG_MODIFIER));
933933
}
934934

935935
void Skeleton3D::_update_deferred(UpdateFlag p_update_flag) {

0 commit comments

Comments
 (0)