diff options
| author | Dave Parks <davep@lindenlab.com> | 2010-09-22 17:33:54 -0500 | 
|---|---|---|
| committer | Dave Parks <davep@lindenlab.com> | 2010-09-22 17:33:54 -0500 | 
| commit | 7f2964bffe7911eaeed7e93a9b707156721ccd6f (patch) | |
| tree | 48ab4166a2ae3ff678436ed3275a6121f1508289 /indra/newview | |
| parent | aa7c49759fcd3075550167fa3a1e10c8045fe9d4 (diff) | |
| parent | bc4dcef7af8f905df81ca6b7ba21cc9e34a506e9 (diff) | |
merge
Diffstat (limited to 'indra/newview')
| -rwxr-xr-x | indra/newview/llpanelobject.cpp | 15 | ||||
| -rwxr-xr-x | indra/newview/llvovolume.cpp | 3 | 
2 files changed, 16 insertions, 2 deletions
| diff --git a/indra/newview/llpanelobject.cpp b/indra/newview/llpanelobject.cpp index 6b687846ae..943637ea3e 100755 --- a/indra/newview/llpanelobject.cpp +++ b/indra/newview/llpanelobject.cpp @@ -1179,13 +1179,13 @@ void LLPanelObject::getState( )  			if (mCtrlSculptMirror)  			{  				mCtrlSculptMirror->set(sculpt_mirror); -				mCtrlSculptMirror->setEnabled(editable); +				mCtrlSculptMirror->setEnabled(editable && (sculpt_stitching != LL_SCULPT_TYPE_MESH));  			}  			if (mCtrlSculptInvert)  			{  				mCtrlSculptInvert->set(sculpt_invert); -				mCtrlSculptInvert->setEnabled(editable); +				mCtrlSculptInvert->setEnabled(editable && (sculpt_stitching != LL_SCULPT_TYPE_MESH));  			}  			if (mLabelSculptType) @@ -1856,6 +1856,17 @@ void LLPanelObject::sendSculpt()  	if (mCtrlSculptType)  		sculpt_type |= mCtrlSculptType->getCurrentIndex(); +	bool enabled = sculpt_type != LL_SCULPT_TYPE_MESH; + +	if (mCtrlSculptMirror) +	{ +		mCtrlSculptMirror->setEnabled(enabled ? TRUE : FALSE); +	} +	if (mCtrlSculptInvert) +	{ +		mCtrlSculptInvert->setEnabled(enabled ? TRUE : FALSE); +	} +	  	if ((mCtrlSculptMirror) && (mCtrlSculptMirror->get()))  		sculpt_type |= LL_SCULPT_FLAG_MIRROR; diff --git a/indra/newview/llvovolume.cpp b/indra/newview/llvovolume.cpp index 4ef050e71f..d96b6eccb1 100755 --- a/indra/newview/llvovolume.cpp +++ b/indra/newview/llvovolume.cpp @@ -1354,6 +1354,9 @@ BOOL LLVOVolume::genBBoxes(BOOL force_global)  	LLVector4a min,max; +	min.clear(); +	max.clear(); +  	BOOL rebuild = mDrawable->isState(LLDrawable::REBUILD_VOLUME | LLDrawable::REBUILD_POSITION | LLDrawable::REBUILD_RIGGED);  //	bool rigged = false; | 
