diff options
author | Andrey Kleshchev <andreykproductengine@lindenlab.com> | 2021-12-16 00:08:15 +0200 |
---|---|---|
committer | Andrey Kleshchev <andreykproductengine@lindenlab.com> | 2021-12-16 00:09:18 +0200 |
commit | f927dfabfda91466813843f57a5bbe35a9af1243 (patch) | |
tree | 91b03149944b4e41bc0e32f4bd16287b9fc02d89 /indra/newview | |
parent | edb629352822d4c7737aff2e5b719b36eadfeb50 (diff) |
SL-16532 Crash at dragConstrained
Diffstat (limited to 'indra/newview')
-rw-r--r-- | indra/newview/llmaniprotate.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/indra/newview/llmaniprotate.cpp b/indra/newview/llmaniprotate.cpp index 7c942e8b53..3566ca7a35 100644 --- a/indra/newview/llmaniprotate.cpp +++ b/indra/newview/llmaniprotate.cpp @@ -1556,7 +1556,10 @@ LLQuaternion LLManipRotate::dragConstrained( S32 x, S32 y ) LLVector3 object_axis; getObjectAxisClosestToMouse(object_axis); - object_axis = object_axis * first_object_node->mSavedRotation; + if (first_object_node) + { + object_axis = object_axis * first_object_node->mSavedRotation; + } // project onto constraint plane object_axis = object_axis - (object_axis * getConstraintAxis()) * getConstraintAxis(); |