aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llpanelobject.cpp
diff options
context:
space:
mode:
authorJacek Antonelli2008-09-28 13:56:00 -0500
committerJacek Antonelli2008-09-28 19:55:41 -0500
commit9a4f5702473e7540cde1bbff2d7189d9ed71fd86 (patch)
tree53d52a965085be43c89ef45592a8198f7befc4be /linden/indra/newview/llpanelobject.cpp
parentSecond Life viewer sources 1.21.2-RC (diff)
parentMerge branch 'VWR-8341' into next-merge (diff)
downloadmeta-impy-9a4f5702473e7540cde1bbff2d7189d9ed71fd86.zip
meta-impy-9a4f5702473e7540cde1bbff2d7189d9ed71fd86.tar.gz
meta-impy-9a4f5702473e7540cde1bbff2d7189d9ed71fd86.tar.bz2
meta-impy-9a4f5702473e7540cde1bbff2d7189d9ed71fd86.tar.xz
Updated to SL source 1.21.2.
Conflicts: linden/indra/SConstruct linden/indra/newview/files.lst linden/indra/newview/llfloatertools.cpp linden/indra/newview/llfloatertools.h linden/indra/newview/lloverlaybar.cpp linden/indra/newview/lloverlaybar.h linden/indra/newview/llviewermenu.cpp linden/indra/newview/skins/default/xui/en-us/floater_tools.xml linden/indra/newview/skins/default/xui/en-us/menu_viewer.xml linden/indra/newview/skins/default/xui/en-us/panel_overlaybar.xml linden/indra/newview/viewer_manifest.py
Diffstat (limited to 'linden/indra/newview/llpanelobject.cpp')
-rw-r--r--linden/indra/newview/llpanelobject.cpp26
1 files changed, 25 insertions, 1 deletions
diff --git a/linden/indra/newview/llpanelobject.cpp b/linden/indra/newview/llpanelobject.cpp
index 9022c14..cc9d969 100644
--- a/linden/indra/newview/llpanelobject.cpp
+++ b/linden/indra/newview/llpanelobject.cpp
@@ -830,7 +830,7 @@ void LLPanelObject::getState( )
830 BOOL top_shear_x_visible = TRUE; 830 BOOL top_shear_x_visible = TRUE;
831 BOOL top_shear_y_visible = TRUE; 831 BOOL top_shear_y_visible = TRUE;
832 BOOL twist_visible = TRUE; 832 BOOL twist_visible = TRUE;
833 BOOL advanced_cut_visible = FALSE; 833 BOOL advanced_cut_visible = TRUE;
834 BOOL taper_visible = FALSE; 834 BOOL taper_visible = FALSE;
835 BOOL skew_visible = FALSE; 835 BOOL skew_visible = FALSE;
836 BOOL radius_offset_visible = FALSE; 836 BOOL radius_offset_visible = FALSE;
@@ -841,6 +841,7 @@ void LLPanelObject::getState( )
841 F32 twist_inc = OBJECT_TWIST_LINEAR_INC; 841 F32 twist_inc = OBJECT_TWIST_LINEAR_INC;
842 842
843 BOOL advanced_is_dimple = FALSE; 843 BOOL advanced_is_dimple = FALSE;
844 BOOL advanced_is_slice = FALSE;
844 BOOL size_is_hole = FALSE; 845 BOOL size_is_hole = FALSE;
845 846
846 // Tune based on overall volume type 847 // Tune based on overall volume type
@@ -854,6 +855,7 @@ void LLPanelObject::getState( )
854 //twist_visible = FALSE; 855 //twist_visible = FALSE;
855 advanced_cut_visible = TRUE; 856 advanced_cut_visible = TRUE;
856 advanced_is_dimple = TRUE; 857 advanced_is_dimple = TRUE;
858 advanced_is_slice = FALSE;
857 twist_min = OBJECT_TWIST_MIN; 859 twist_min = OBJECT_TWIST_MIN;
858 twist_max = OBJECT_TWIST_MAX; 860 twist_max = OBJECT_TWIST_MAX;
859 twist_inc = OBJECT_TWIST_INC; 861 twist_inc = OBJECT_TWIST_INC;
@@ -867,6 +869,7 @@ void LLPanelObject::getState( )
867 size_is_hole = TRUE; 869 size_is_hole = TRUE;
868 skew_visible = TRUE; 870 skew_visible = TRUE;
869 advanced_cut_visible = TRUE; 871 advanced_cut_visible = TRUE;
872 advanced_is_slice = FALSE;
870 taper_visible = TRUE; 873 taper_visible = TRUE;
871 radius_offset_visible = TRUE; 874 radius_offset_visible = TRUE;
872 revolutions_visible = TRUE; 875 revolutions_visible = TRUE;
@@ -894,8 +897,20 @@ void LLPanelObject::getState( )
894 break; 897 break;
895 898
896 case MI_BOX: 899 case MI_BOX:
900 advanced_cut_visible = TRUE;
901 advanced_is_slice = TRUE;
902 break;
903
897 case MI_CYLINDER: 904 case MI_CYLINDER:
905 advanced_cut_visible = TRUE;
906 advanced_is_slice = TRUE;
907 break;
908
898 case MI_PRISM: 909 case MI_PRISM:
910 advanced_cut_visible = TRUE;
911 advanced_is_slice = TRUE;
912 break;
913
899 default: 914 default:
900 break; 915 break;
901 } 916 }
@@ -987,6 +1002,8 @@ void LLPanelObject::getState( )
987 1002
988 childSetVisible("advanced_cut", FALSE); 1003 childSetVisible("advanced_cut", FALSE);
989 childSetVisible("advanced_dimple", FALSE); 1004 childSetVisible("advanced_dimple", FALSE);
1005 childSetVisible("advanced_slice", FALSE);
1006
990 if (advanced_cut_visible) 1007 if (advanced_cut_visible)
991 { 1008 {
992 if (advanced_is_dimple) 1009 if (advanced_is_dimple)
@@ -994,6 +1011,12 @@ void LLPanelObject::getState( )
994 childSetVisible("advanced_dimple", TRUE); 1011 childSetVisible("advanced_dimple", TRUE);
995 childSetEnabled("advanced_dimple", enabled); 1012 childSetEnabled("advanced_dimple", enabled);
996 } 1013 }
1014
1015 else if (advanced_is_slice)
1016 {
1017 childSetVisible("advanced_slice", TRUE);
1018 childSetEnabled("advanced_slice", enabled);
1019 }
997 else 1020 else
998 { 1021 {
999 childSetVisible("advanced_cut", TRUE); 1022 childSetVisible("advanced_cut", TRUE);
@@ -1889,6 +1912,7 @@ void LLPanelObject::clearCtrls()
1889 childSetEnabled("scale_taper", FALSE); 1912 childSetEnabled("scale_taper", FALSE);
1890 childSetEnabled( "advanced_cut", FALSE ); 1913 childSetEnabled( "advanced_cut", FALSE );
1891 childSetEnabled( "advanced_dimple", FALSE ); 1914 childSetEnabled( "advanced_dimple", FALSE );
1915 childSetVisible("advanced_slice", FALSE);
1892} 1916}
1893 1917
1894// 1918//