Fix physical bone is not animated in running project.

This commit is contained in:
baihan 2022-06-19 09:46:34 +08:00
parent 4366f8bcd4
commit da7eb96804

View File

@ -326,7 +326,6 @@ void Skeleton3D::_notification(int p_what) {
case NOTIFICATION_INTERNAL_PHYSICS_PROCESS: {
// This is active only if the skeleton animates the physical bones
// and the state of the bone is not active.
if (Engine::get_singleton()->is_editor_hint()) {
if (animate_physical_bones) {
for (int i = 0; i < bones.size(); i += 1) {
if (bones[i].physical_bone) {
@ -336,7 +335,6 @@ void Skeleton3D::_notification(int p_what) {
}
}
}
}
if (modification_stack.is_valid()) {
execute_modifications(get_physics_process_delta_time(), SkeletonModificationStack3D::EXECUTION_MODE::execution_mode_physics_process);