summaryrefslogtreecommitdiff
path: root/indra/newview/llpanelobject.cpp
diff options
context:
space:
mode:
authorMelinda Green <melinda@lindenlab.com>2008-12-15 21:21:19 +0000
committerMelinda Green <melinda@lindenlab.com>2008-12-15 21:21:19 +0000
commite1d8dac25a93db837c780428a23f81cbf9109270 (patch)
treea0bcaec0cec1ba6b3ce813764650eada61fcde4f /indra/newview/llpanelobject.cpp
parent9c0dbb123376608e464fcd8d1a2e288e01d78a3f (diff)
svn merge -r105329:105903 svn+ssh://svn/svn/linden/branches/featurettes/featurettes-batch4-merge
Resolving QAR-1051 Merge featurettes batch #4
Diffstat (limited to 'indra/newview/llpanelobject.cpp')
-rw-r--r--indra/newview/llpanelobject.cpp26
1 files changed, 24 insertions, 2 deletions
diff --git a/indra/newview/llpanelobject.cpp b/indra/newview/llpanelobject.cpp
index f7f33cb66b..38214d78d6 100644
--- a/indra/newview/llpanelobject.cpp
+++ b/indra/newview/llpanelobject.cpp
@@ -849,6 +849,7 @@ void LLPanelObject::getState( )
F32 twist_inc = OBJECT_TWIST_LINEAR_INC;
BOOL advanced_is_dimple = FALSE;
+ BOOL advanced_is_slice = FALSE;
BOOL size_is_hole = FALSE;
// Tune based on overall volume type
@@ -902,8 +903,20 @@ void LLPanelObject::getState( )
break;
case MI_BOX:
+ advanced_cut_visible = TRUE;
+ advanced_is_slice = TRUE;
+ break;
+
case MI_CYLINDER:
+ advanced_cut_visible = TRUE;
+ advanced_is_slice = TRUE;
+ break;
+
case MI_PRISM:
+ advanced_cut_visible = TRUE;
+ advanced_is_slice = TRUE;
+ break;
+
default:
break;
}
@@ -995,6 +1008,8 @@ void LLPanelObject::getState( )
childSetVisible("advanced_cut", FALSE);
childSetVisible("advanced_dimple", FALSE);
+ childSetVisible("advanced_slice", FALSE);
+
if (advanced_cut_visible)
{
if (advanced_is_dimple)
@@ -1002,6 +1017,12 @@ void LLPanelObject::getState( )
childSetVisible("advanced_dimple", TRUE);
childSetEnabled("advanced_dimple", enabled);
}
+
+ else if (advanced_is_slice)
+ {
+ childSetVisible("advanced_slice", TRUE);
+ childSetEnabled("advanced_slice", enabled);
+ }
else
{
childSetVisible("advanced_cut", TRUE);
@@ -1895,8 +1916,9 @@ void LLPanelObject::clearCtrls()
childSetEnabled("scale_hole", FALSE);
childSetEnabled("scale_taper", FALSE);
- childSetEnabled( "advanced_cut", FALSE );
- childSetEnabled( "advanced_dimple", FALSE );
+ childSetEnabled("advanced_cut", FALSE);
+ childSetEnabled("advanced_dimple", FALSE);
+ childSetVisible("advanced_slice", FALSE);
}
//