Skip to content

Commit 078e760

Browse files
committed
Fix broken locking for decomp data in model preview
Signed-off-by: Rye <[email protected]>
1 parent 55d9a8c commit 078e760

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

indra/newview/llmodelpreview.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3649,7 +3649,7 @@ bool LLModelPreview::render()
36493649
LLPhysicsDecomp* decomp = gMeshRepo.mDecompThread;
36503650
if (decomp)
36513651
{
3652-
LLMutexLock(decomp->mMutex);
3652+
LLMutexLock decomp_lock(decomp->mMutex);
36533653

36543654
LLModel::Decomposition& physics = model->mPhysics;
36553655

@@ -3770,7 +3770,7 @@ bool LLModelPreview::render()
37703770
LLPhysicsDecomp* decomp = gMeshRepo.mDecompThread;
37713771
if (decomp)
37723772
{
3773-
LLMutexLock(decomp->mMutex);
3773+
LLMutexLock decomp_lock(decomp->mMutex);
37743774

37753775
LLModel::Decomposition& physics = model->mPhysics;
37763776

0 commit comments

Comments
 (0)