diff options
-rw-r--r-- | linden/indra/newview/llfloatertools.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/linden/indra/newview/llfloatertools.cpp b/linden/indra/newview/llfloatertools.cpp index 683ebd4..cc205ee 100644 --- a/linden/indra/newview/llfloatertools.cpp +++ b/linden/indra/newview/llfloatertools.cpp | |||
@@ -1256,7 +1256,8 @@ void LLFloaterTools::onClickLink(void* data) | |||
1256 | } | 1256 | } |
1257 | 1257 | ||
1258 | S32 max_linked_prims = 0; | 1258 | S32 max_linked_prims = 0; |
1259 | if(LLSelectMgr::getInstance()->getSelection()->getPrimaryObject()->usePhysics()) | 1259 | LLViewerObject* first_rootp = LLSelectMgr::getInstance()->getSelection()->getFirstRootObject(); |
1260 | if(first_rootp && first_rootp->usePhysics()) | ||
1260 | { | 1261 | { |
1261 | //Physical - use phys prim limit | 1262 | //Physical - use phys prim limit |
1262 | max_linked_prims = gHippoLimits->getMaxPhysLinkedPrims(); | 1263 | max_linked_prims = gHippoLimits->getMaxPhysLinkedPrims(); |