aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview
diff options
context:
space:
mode:
authorMcCabe Maxsted2008-09-07 18:00:32 -0500
committerJacek Antonelli2008-09-16 00:51:11 -0500
commit8048f6322d887f5aa636ea6a7890eec2186bbc9b (patch)
treef9d51171bbecfb14d70f2934262e4a8002bcb3a3 /linden/indra/newview
parentCreated ChangeLog.txt. (diff)
downloadmeta-impy-8048f6322d887f5aa636ea6a7890eec2186bbc9b.zip
meta-impy-8048f6322d887f5aa636ea6a7890eec2186bbc9b.tar.gz
meta-impy-8048f6322d887f5aa636ea6a7890eec2186bbc9b.tar.bz2
meta-impy-8048f6322d887f5aa636ea6a7890eec2186bbc9b.tar.xz
VWR-7827: Allow Dimple/Profile Cut for boxes and box-based prims in the UI.
Diffstat (limited to 'linden/indra/newview')
-rw-r--r--linden/indra/newview/llpanelobject.cpp26
-rw-r--r--linden/indra/newview/skins/default/xui/en-us/floater_tools.xml6
2 files changed, 31 insertions, 1 deletions
diff --git a/linden/indra/newview/llpanelobject.cpp b/linden/indra/newview/llpanelobject.cpp
index 7024691..9732dac 100644
--- a/linden/indra/newview/llpanelobject.cpp
+++ b/linden/indra/newview/llpanelobject.cpp
@@ -827,7 +827,7 @@ void LLPanelObject::getState( )
827 BOOL top_shear_x_visible = TRUE; 827 BOOL top_shear_x_visible = TRUE;
828 BOOL top_shear_y_visible = TRUE; 828 BOOL top_shear_y_visible = TRUE;
829 BOOL twist_visible = TRUE; 829 BOOL twist_visible = TRUE;
830 BOOL advanced_cut_visible = FALSE; 830 BOOL advanced_cut_visible = TRUE;
831 BOOL taper_visible = FALSE; 831 BOOL taper_visible = FALSE;
832 BOOL skew_visible = FALSE; 832 BOOL skew_visible = FALSE;
833 BOOL radius_offset_visible = FALSE; 833 BOOL radius_offset_visible = FALSE;
@@ -838,6 +838,7 @@ void LLPanelObject::getState( )
838 F32 twist_inc = OBJECT_TWIST_LINEAR_INC; 838 F32 twist_inc = OBJECT_TWIST_LINEAR_INC;
839 839
840 BOOL advanced_is_dimple = FALSE; 840 BOOL advanced_is_dimple = FALSE;
841 BOOL advanced_is_slice = FALSE;
841 BOOL size_is_hole = FALSE; 842 BOOL size_is_hole = FALSE;
842 843
843 // Tune based on overall volume type 844 // Tune based on overall volume type
@@ -851,6 +852,7 @@ void LLPanelObject::getState( )
851 //twist_visible = FALSE; 852 //twist_visible = FALSE;
852 advanced_cut_visible = TRUE; 853 advanced_cut_visible = TRUE;
853 advanced_is_dimple = TRUE; 854 advanced_is_dimple = TRUE;
855 advanced_is_slice = FALSE;
854 twist_min = OBJECT_TWIST_MIN; 856 twist_min = OBJECT_TWIST_MIN;
855 twist_max = OBJECT_TWIST_MAX; 857 twist_max = OBJECT_TWIST_MAX;
856 twist_inc = OBJECT_TWIST_INC; 858 twist_inc = OBJECT_TWIST_INC;
@@ -864,6 +866,7 @@ void LLPanelObject::getState( )
864 size_is_hole = TRUE; 866 size_is_hole = TRUE;
865 skew_visible = TRUE; 867 skew_visible = TRUE;
866 advanced_cut_visible = TRUE; 868 advanced_cut_visible = TRUE;
869 advanced_is_slice = FALSE;
867 taper_visible = TRUE; 870 taper_visible = TRUE;
868 radius_offset_visible = TRUE; 871 radius_offset_visible = TRUE;
869 revolutions_visible = TRUE; 872 revolutions_visible = TRUE;
@@ -891,8 +894,20 @@ void LLPanelObject::getState( )
891 break; 894 break;
892 895
893 case MI_BOX: 896 case MI_BOX:
897 advanced_cut_visible = TRUE;
898 advanced_is_slice = TRUE;
899 break;
900
894 case MI_CYLINDER: 901 case MI_CYLINDER:
902 advanced_cut_visible = TRUE;
903 advanced_is_slice = TRUE;
904 break;
905
895 case MI_PRISM: 906 case MI_PRISM:
907 advanced_cut_visible = TRUE;
908 advanced_is_slice = TRUE;
909 break;
910
896 default: 911 default:
897 break; 912 break;
898 } 913 }
@@ -984,6 +999,8 @@ void LLPanelObject::getState( )
984 999
985 childSetVisible("advanced_cut", FALSE); 1000 childSetVisible("advanced_cut", FALSE);
986 childSetVisible("advanced_dimple", FALSE); 1001 childSetVisible("advanced_dimple", FALSE);
1002 childSetVisible("advanced_slice", FALSE);
1003
987 if (advanced_cut_visible) 1004 if (advanced_cut_visible)
988 { 1005 {
989 if (advanced_is_dimple) 1006 if (advanced_is_dimple)
@@ -991,6 +1008,12 @@ void LLPanelObject::getState( )
991 childSetVisible("advanced_dimple", TRUE); 1008 childSetVisible("advanced_dimple", TRUE);
992 childSetEnabled("advanced_dimple", enabled); 1009 childSetEnabled("advanced_dimple", enabled);
993 } 1010 }
1011
1012 else if (advanced_is_slice)
1013 {
1014 childSetVisible("advanced_slice", TRUE);
1015 childSetEnabled("advanced_slice", enabled);
1016 }
994 else 1017 else
995 { 1018 {
996 childSetVisible("advanced_cut", TRUE); 1019 childSetVisible("advanced_cut", TRUE);
@@ -1823,6 +1846,7 @@ void LLPanelObject::clearCtrls()
1823 childSetEnabled("scale_taper", FALSE); 1846 childSetEnabled("scale_taper", FALSE);
1824 childSetEnabled( "advanced_cut", FALSE ); 1847 childSetEnabled( "advanced_cut", FALSE );
1825 childSetEnabled( "advanced_dimple", FALSE ); 1848 childSetEnabled( "advanced_dimple", FALSE );
1849 childSetVisible("advanced_slice", FALSE);
1826} 1850}
1827 1851
1828// 1852//
diff --git a/linden/indra/newview/skins/default/xui/en-us/floater_tools.xml b/linden/indra/newview/skins/default/xui/en-us/floater_tools.xml
index db176b3..27691c7 100644
--- a/linden/indra/newview/skins/default/xui/en-us/floater_tools.xml
+++ b/linden/indra/newview/skins/default/xui/en-us/floater_tools.xml
@@ -800,6 +800,12 @@
800 mouse_opaque="true" name="advanced_dimple" v_pad="0" width="141"> 800 mouse_opaque="true" name="advanced_dimple" v_pad="0" width="141">
801 Dimple Begin and End 801 Dimple Begin and End
802 </text> 802 </text>
803 <text bg_visible="false" border_drop_shadow_visible="false" border_visible="false"
804 bottom_delta="0" drop_shadow_visible="true" follows="left|top"
805 font="SansSerifSmall" h_pad="0" halign="left" height="10" left_delta="0"
806 mouse_opaque="true" name="advanced_slice" v_pad="0" width="141">
807 Slice Begin and End
808 </text>
803 <spinner bottom_delta="-19" decimal_digits="3" follows="left|top" height="16" 809 <spinner bottom_delta="-19" decimal_digits="3" follows="left|top" height="16"
804 increment="0.05" initial_val="0" label="B" label_width="10" left="121" 810 increment="0.05" initial_val="0" label="B" label_width="10" left="121"
805 max_val="0.95" min_val="0" mouse_opaque="true" name="Path Limit Begin" 811 max_val="0.95" min_val="0" mouse_opaque="true" name="Path Limit Begin"