aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llpanelobject.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/newview/llpanelobject.cpp')
-rw-r--r--linden/indra/newview/llpanelobject.cpp31
1 files changed, 27 insertions, 4 deletions
diff --git a/linden/indra/newview/llpanelobject.cpp b/linden/indra/newview/llpanelobject.cpp
index 01d41d2..75f479c 100644
--- a/linden/indra/newview/llpanelobject.cpp
+++ b/linden/indra/newview/llpanelobject.cpp
@@ -17,7 +17,8 @@
17 * There are special exceptions to the terms and conditions of the GPL as 17 * There are special exceptions to the terms and conditions of the GPL as
18 * it is applied to this Source Code. View the full text of the exception 18 * it is applied to this Source Code. View the full text of the exception
19 * in the file doc/FLOSS-exception.txt in this software distribution, or 19 * in the file doc/FLOSS-exception.txt in this software distribution, or
20 * online at http://secondlifegrid.net/programs/open_source/licensing/flossexception 20 * online at
21 * http://secondlifegrid.net/programs/open_source/licensing/flossexception
21 * 22 *
22 * By copying, modifying or distributing this software, you acknowledge 23 * By copying, modifying or distributing this software, you acknowledge
23 * that you have read and understood your obligations described above, 24 * that you have read and understood your obligations described above,
@@ -328,7 +329,7 @@ void LLPanelObject::getState( )
328 // *FIX: shouldn't we just keep the child? 329 // *FIX: shouldn't we just keep the child?
329 if (objectp) 330 if (objectp)
330 { 331 {
331 LLViewerObject* parentp = objectp->getSubParent(); 332 LLViewerObject* parentp = objectp->getRootEdit();
332 333
333 if (parentp) 334 if (parentp)
334 { 335 {
@@ -849,6 +850,7 @@ void LLPanelObject::getState( )
849 F32 twist_inc = OBJECT_TWIST_LINEAR_INC; 850 F32 twist_inc = OBJECT_TWIST_LINEAR_INC;
850 851
851 BOOL advanced_is_dimple = FALSE; 852 BOOL advanced_is_dimple = FALSE;
853 BOOL advanced_is_slice = FALSE;
852 BOOL size_is_hole = FALSE; 854 BOOL size_is_hole = FALSE;
853 855
854 // Tune based on overall volume type 856 // Tune based on overall volume type
@@ -902,8 +904,20 @@ void LLPanelObject::getState( )
902 break; 904 break;
903 905
904 case MI_BOX: 906 case MI_BOX:
907 advanced_cut_visible = TRUE;
908 advanced_is_slice = TRUE;
909 break;
910
905 case MI_CYLINDER: 911 case MI_CYLINDER:
912 advanced_cut_visible = TRUE;
913 advanced_is_slice = TRUE;
914 break;
915
906 case MI_PRISM: 916 case MI_PRISM:
917 advanced_cut_visible = TRUE;
918 advanced_is_slice = TRUE;
919 break;
920
907 default: 921 default:
908 break; 922 break;
909 } 923 }
@@ -995,6 +1009,8 @@ void LLPanelObject::getState( )
995 1009
996 childSetVisible("advanced_cut", FALSE); 1010 childSetVisible("advanced_cut", FALSE);
997 childSetVisible("advanced_dimple", FALSE); 1011 childSetVisible("advanced_dimple", FALSE);
1012 childSetVisible("advanced_slice", FALSE);
1013
998 if (advanced_cut_visible) 1014 if (advanced_cut_visible)
999 { 1015 {
1000 if (advanced_is_dimple) 1016 if (advanced_is_dimple)
@@ -1002,6 +1018,12 @@ void LLPanelObject::getState( )
1002 childSetVisible("advanced_dimple", TRUE); 1018 childSetVisible("advanced_dimple", TRUE);
1003 childSetEnabled("advanced_dimple", enabled); 1019 childSetEnabled("advanced_dimple", enabled);
1004 } 1020 }
1021
1022 else if (advanced_is_slice)
1023 {
1024 childSetVisible("advanced_slice", TRUE);
1025 childSetEnabled("advanced_slice", enabled);
1026 }
1005 else 1027 else
1006 { 1028 {
1007 childSetVisible("advanced_cut", TRUE); 1029 childSetVisible("advanced_cut", TRUE);
@@ -1895,8 +1917,9 @@ void LLPanelObject::clearCtrls()
1895 1917
1896 childSetEnabled("scale_hole", FALSE); 1918 childSetEnabled("scale_hole", FALSE);
1897 childSetEnabled("scale_taper", FALSE); 1919 childSetEnabled("scale_taper", FALSE);
1898 childSetEnabled( "advanced_cut", FALSE ); 1920 childSetEnabled("advanced_cut", FALSE);
1899 childSetEnabled( "advanced_dimple", FALSE ); 1921 childSetEnabled("advanced_dimple", FALSE);
1922 childSetVisible("advanced_slice", FALSE);
1900} 1923}
1901 1924
1902// 1925//