norspec-107: remove the need for a friend declaration in local textures
parent
c3804fd041
commit
ad89d26dc6
|
|
@ -485,10 +485,8 @@ void LLLocalBitmap::updateUserPrims(LLUUID old_id, LLUUID new_id, U32 channel)
|
|||
}
|
||||
|
||||
if (update_mat)
|
||||
{ // i had to make LLLocalBitmap friend of LLVOVolume for this,
|
||||
// i realize it might seem somewhat hacky, but it's also simple.
|
||||
// will gladly accept a better solution though.
|
||||
object->mDrawable->getVOVolume()->mFaceMappingChanged = TRUE;
|
||||
{
|
||||
object->mDrawable->getVOVolume()->faceMappingChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -159,6 +159,7 @@ public:
|
|||
const LLMatrix4& getWorldMatrix(LLXformMatrix* xform) const;
|
||||
|
||||
void markForUpdate(BOOL priority) { LLViewerObject::markForUpdate(priority); mVolumeChanged = TRUE; }
|
||||
void faceMappingChanged() { mFaceMappingChanged=TRUE; };
|
||||
|
||||
/*virtual*/ void onShift(const LLVector4a &shift_vector); // Called when the drawable shifts
|
||||
|
||||
|
|
@ -347,7 +348,6 @@ public:
|
|||
private:
|
||||
friend class LLDrawable;
|
||||
friend class LLFace;
|
||||
friend class LLLocalBitmap; // necessary for accessing mFaceMappingChanged.
|
||||
|
||||
BOOL mFaceMappingChanged;
|
||||
LLFrameTimer mTextureUpdateTimer;
|
||||
|
|
|
|||
Loading…
Reference in New Issue