diff options
| author | Seth ProductEngine <slitovchuk@productengine.com> | 2011-08-10 18:59:10 +0300 | 
|---|---|---|
| committer | Seth ProductEngine <slitovchuk@productengine.com> | 2011-08-10 18:59:10 +0300 | 
| commit | c70a357a274d5acd7921c3185dc34b89069d4e61 (patch) | |
| tree | d38e2f8737fb82e93dd27e56db3c7425bacee720 | |
| parent | 350894fc0b7b3b806350f3409765105cdf73d3e9 (diff) | |
SH-2076 FIXED Removed the sculpt type 'None' from edit dialog.
If a prim's sculpt type was set to 'None' it is displayed as 'Plane' in the combo box.
| -rw-r--r-- | indra/newview/llpanelobject.cpp | 13 | ||||
| -rw-r--r-- | indra/newview/skins/default/xui/en/floater_tools.xml | 12 | 
2 files changed, 15 insertions, 10 deletions
diff --git a/indra/newview/llpanelobject.cpp b/indra/newview/llpanelobject.cpp index c222bbb191..e4b2396bc6 100644 --- a/indra/newview/llpanelobject.cpp +++ b/indra/newview/llpanelobject.cpp @@ -1112,7 +1112,16 @@ void LLPanelObject::getState( )  			if (mCtrlSculptType)  			{ -				mCtrlSculptType->setCurrentByIndex(sculpt_stitching); +				if (sculpt_stitching == LL_SCULPT_TYPE_NONE) +				{ +					// since 'None' is no longer an option in the combo box +					// use 'Plane' as an equivalent sculpt type +					mCtrlSculptType->setCurrentByID(LLSD(LL_SCULPT_TYPE_PLANE)); +				} +				else +				{ +					mCtrlSculptType->setCurrentByID(LLSD(sculpt_stitching)); +				}  				mCtrlSculptType->setEnabled(editable && !isMesh);  			} @@ -1749,7 +1758,7 @@ void LLPanelObject::sendSculpt()  	U8 sculpt_type = 0;  	if (mCtrlSculptType) -		sculpt_type |= mCtrlSculptType->getCurrentIndex(); +		sculpt_type |= mCtrlSculptType->getValue().asInteger();  	bool enabled = sculpt_type != LL_SCULPT_TYPE_MESH; diff --git a/indra/newview/skins/default/xui/en/floater_tools.xml b/indra/newview/skins/default/xui/en/floater_tools.xml index e794a7067d..03d6c84266 100644 --- a/indra/newview/skins/default/xui/en/floater_tools.xml +++ b/indra/newview/skins/default/xui/en/floater_tools.xml @@ -2000,25 +2000,21 @@ even though the user gets a free copy.               visible="false"               width="150">                  <combo_box.item -                 label="(none)" -                 name="None" -                 value="None" /> -                <combo_box.item                   label="Sphere"                   name="Sphere" -                 value="Sphere" /> +                 value="1" />                  <combo_box.item                   label="Torus"                   name="Torus" -                 value="Torus" /> +                 value="2" />                  <combo_box.item                   label="Plane"                   name="Plane" -                 value="Plane" /> +                 value="3" />                  <combo_box.item                   label="Cylinder"                   name="Cylinder" -                 value="Cylinder" /> +                 value="4" />                </combo_box>          </panel>          <panel  | 
