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

MAINT-2247 Child object does not update rotation while selected.

parent c842494b
No related branches found
No related tags found
No related merge requests found
...@@ -550,6 +550,8 @@ F32 LLDrawable::updateXform(BOOL undamped) ...@@ -550,6 +550,8 @@ F32 LLDrawable::updateXform(BOOL undamped)
else else
{ {
dist_squared = dist_vec_squared(old_pos, target_pos); dist_squared = dist_vec_squared(old_pos, target_pos);
dist_squared += (1.f - dot(old_rot, target_rot)) * 10.f;
dist_squared += dist_vec_squared(old_scale, target_scale);
} }
LLVector3 vec = mCurrentScale-target_scale; LLVector3 vec = mCurrentScale-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