diff options
Diffstat (limited to '')
-rw-r--r-- | linden/indra/newview/pipeline.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/linden/indra/newview/pipeline.cpp b/linden/indra/newview/pipeline.cpp index 408be2e..7d03e64 100644 --- a/linden/indra/newview/pipeline.cpp +++ b/linden/indra/newview/pipeline.cpp | |||
@@ -1406,7 +1406,7 @@ void LLPipeline::stateSort(LLDrawable* drawablep, LLCamera& camera) | |||
1406 | 1406 | ||
1407 | if (gHideSelectedObjects) | 1407 | if (gHideSelectedObjects) |
1408 | { | 1408 | { |
1409 | if (drawablep->getVObj() && | 1409 | if (drawablep->getVObj().notNull() && |
1410 | drawablep->getVObj()->isSelected()) | 1410 | drawablep->getVObj()->isSelected()) |
1411 | { | 1411 | { |
1412 | return; | 1412 | return; |
@@ -1435,7 +1435,7 @@ void LLPipeline::stateSort(LLDrawable* drawablep, LLCamera& camera) | |||
1435 | } | 1435 | } |
1436 | else if (drawablep->isAvatar() && drawablep->isVisible()) | 1436 | else if (drawablep->isAvatar() && drawablep->isVisible()) |
1437 | { | 1437 | { |
1438 | LLVOAvatar* vobj = (LLVOAvatar*) drawablep->getVObj(); | 1438 | LLVOAvatar* vobj = (LLVOAvatar*) drawablep->getVObj().get(); |
1439 | vobj->updateVisibility(FALSE); | 1439 | vobj->updateVisibility(FALSE); |
1440 | } | 1440 | } |
1441 | 1441 | ||
@@ -3498,7 +3498,7 @@ BOOL LLPipeline::getRenderSoundBeacons(void*) | |||
3498 | LLViewerObject* LLPipeline::pickObject(const LLVector3 &start, const LLVector3 &end, LLVector3 &collision) | 3498 | LLViewerObject* LLPipeline::pickObject(const LLVector3 &start, const LLVector3 &end, LLVector3 &collision) |
3499 | { | 3499 | { |
3500 | LLDrawable* drawable = mObjectPartition[PARTITION_VOLUME]->pickDrawable(start, end, collision); | 3500 | LLDrawable* drawable = mObjectPartition[PARTITION_VOLUME]->pickDrawable(start, end, collision); |
3501 | return drawable ? drawable->getVObj() : NULL; | 3501 | return drawable ? drawable->getVObj().get() : NULL; |
3502 | } | 3502 | } |
3503 | 3503 | ||
3504 | LLSpatialPartition* LLPipeline::getSpatialPartition(LLViewerObject* vobj) | 3504 | LLSpatialPartition* LLPipeline::getSpatialPartition(LLViewerObject* vobj) |