Skip to content
Snippets Groups Projects
Commit 4d589df2 authored by Kelly Washington's avatar Kelly Washington
Browse files

MAINT-2275 Child prims are "left behind" by animated, moving (physical) linksets

* A fix that doesn't break tanks. Reverts MAINT-1742
parent aee0766f
No related branches found
No related tags found
No related merge requests found
...@@ -550,9 +550,10 @@ F32 LLDrawable::updateXform(BOOL undamped) ...@@ -550,9 +550,10 @@ F32 LLDrawable::updateXform(BOOL undamped)
} }
else else
{ {
dist_squared = dist_vec_squared(old_pos, target_pos); // The following fixes MAINT-1742 but breaks vehicles similar to MAINT-2275
// dist_squared = dist_vec_squared(old_pos, target_pos);
// The following "makes sense" and fixes MAINT-2247 but causes MAINT-2275 // The following fixes MAINT-2247 but causes MAINT-2275
//dist_squared += (1.f - dot(old_rot, target_rot)) * 10.f; //dist_squared += (1.f - dot(old_rot, target_rot)) * 10.f;
//dist_squared += dist_vec_squared(old_scale, target_scale); //dist_squared += dist_vec_squared(old_scale, target_scale);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment