You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-07 12:30:27 +00:00
Merge pull request #109841 from precup/readd-skeleton-modifier-updates
Process skeleton modifiers when the skeleton is marked as dirty
This commit is contained in:
@@ -295,7 +295,7 @@ void Skeleton3D::_notification(int p_what) {
|
|||||||
#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
|
||||||
update_flags = UPDATE_FLAG_POSE;
|
update_flags |= UPDATE_FLAG_POSE;
|
||||||
_notification(NOTIFICATION_UPDATE_SKELETON);
|
_notification(NOTIFICATION_UPDATE_SKELETON);
|
||||||
} break;
|
} break;
|
||||||
#ifdef TOOLS_ENABLED
|
#ifdef TOOLS_ENABLED
|
||||||
@@ -929,7 +929,7 @@ void Skeleton3D::_make_dirty() {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
dirty = true;
|
dirty = true;
|
||||||
_update_deferred();
|
_update_deferred(modifiers.is_empty() ? UPDATE_FLAG_POSE : (UpdateFlag)(UPDATE_FLAG_POSE | UPDATE_FLAG_MODIFIER));
|
||||||
}
|
}
|
||||||
|
|
||||||
void Skeleton3D::_update_deferred(UpdateFlag p_update_flag) {
|
void Skeleton3D::_update_deferred(UpdateFlag p_update_flag) {
|
||||||
|
|||||||
Reference in New Issue
Block a user