diff options
Diffstat (limited to '')
-rw-r--r-- | linden/indra/newview/llvograss.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/linden/indra/newview/llvograss.cpp b/linden/indra/newview/llvograss.cpp index 3b6b837..f9b4bc0 100644 --- a/linden/indra/newview/llvograss.cpp +++ b/linden/indra/newview/llvograss.cpp | |||
@@ -48,6 +48,7 @@ | |||
48 | #include "llviewerimagelist.h" | 48 | #include "llviewerimagelist.h" |
49 | #include "llviewerregion.h" | 49 | #include "llviewerregion.h" |
50 | #include "pipeline.h" | 50 | #include "pipeline.h" |
51 | #include "llspatialpartition.h" | ||
51 | #include "llworld.h" | 52 | #include "llworld.h" |
52 | #include "lldir.h" | 53 | #include "lldir.h" |
53 | #include "llxmltree.h" | 54 | #include "llxmltree.h" |
@@ -400,6 +401,7 @@ LLDrawable* LLVOGrass::createDrawable(LLPipeline *pipeline) | |||
400 | BOOL LLVOGrass::updateGeometry(LLDrawable *drawable) | 401 | BOOL LLVOGrass::updateGeometry(LLDrawable *drawable) |
401 | { | 402 | { |
402 | LLFastTimer ftm(LLFastTimer::FTM_UPDATE_GRASS); | 403 | LLFastTimer ftm(LLFastTimer::FTM_UPDATE_GRASS); |
404 | dirtySpatialGroup(); | ||
403 | plantBlades(); | 405 | plantBlades(); |
404 | return TRUE; | 406 | return TRUE; |
405 | } | 407 | } |
@@ -439,7 +441,7 @@ void LLVOGrass::getGeometry(S32 idx, | |||
439 | LLStrider<LLVector3>& normalsp, | 441 | LLStrider<LLVector3>& normalsp, |
440 | LLStrider<LLVector2>& texcoordsp, | 442 | LLStrider<LLVector2>& texcoordsp, |
441 | LLStrider<LLColor4U>& colorsp, | 443 | LLStrider<LLColor4U>& colorsp, |
442 | LLStrider<U32>& indicesp) | 444 | LLStrider<U16>& indicesp) |
443 | { | 445 | { |
444 | mPatch = mRegionp->getLand().resolvePatchRegion(getPositionRegion()); | 446 | mPatch = mRegionp->getLand().resolvePatchRegion(getPositionRegion()); |
445 | if (mPatch) | 447 | if (mPatch) |
@@ -552,13 +554,13 @@ void LLVOGrass::getGeometry(S32 idx, | |||
552 | 554 | ||
553 | U32 LLVOGrass::getPartitionType() const | 555 | U32 LLVOGrass::getPartitionType() const |
554 | { | 556 | { |
555 | return LLPipeline::PARTITION_GRASS; | 557 | return LLViewerRegion::PARTITION_GRASS; |
556 | } | 558 | } |
557 | 559 | ||
558 | LLGrassPartition::LLGrassPartition() | 560 | LLGrassPartition::LLGrassPartition() |
559 | { | 561 | { |
560 | mDrawableType = LLPipeline::RENDER_TYPE_GRASS; | 562 | mDrawableType = LLPipeline::RENDER_TYPE_GRASS; |
561 | mPartitionType = LLPipeline::PARTITION_GRASS; | 563 | mPartitionType = LLViewerRegion::PARTITION_GRASS; |
562 | mLODPeriod = 16; | 564 | mLODPeriod = 16; |
563 | mDepthMask = TRUE; | 565 | mDepthMask = TRUE; |
564 | mSlopRatio = 0.1f; | 566 | mSlopRatio = 0.1f; |