From c70a357a274d5acd7921c3185dc34b89069d4e61 Mon Sep 17 00:00:00 2001 From: Seth ProductEngine Date: Wed, 10 Aug 2011 18:59:10 +0300 Subject: 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. --- indra/newview/llpanelobject.cpp | 13 +++++++++++-- indra/newview/skins/default/xui/en/floater_tools.xml | 12 ++++-------- 2 files changed, 15 insertions(+), 10 deletions(-) (limited to 'indra') 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 @@ -1999,26 +1999,22 @@ even though the user gets a free copy. top_pad="4" visible="false" width="150"> - + value="1" /> + value="2" /> + value="3" /> + value="4" />