aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview
diff options
context:
space:
mode:
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.xml18
2 files changed, 37 insertions, 7 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..c98c2ac 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
@@ -77,7 +77,7 @@
77 initial_value="false" label="Stretch (Ctrl-Shift)" left="4" 77 initial_value="false" label="Stretch (Ctrl-Shift)" left="4"
78 mouse_opaque="true" name="radio stretch" radio_style="true" width="123" /> 78 mouse_opaque="true" name="radio stretch" radio_style="true" width="123" />
79 <check_box bottom_delta="-15" follows="left|top" font="SansSerifSmall" height="16" 79 <check_box bottom_delta="-15" follows="left|top" font="SansSerifSmall" height="16"
80 initial_value="false" label="Select Texture" left="4" mouse_opaque="true" 80 initial_value="false" label="Select Faces to Texture" left="4" mouse_opaque="true"
81 name="radio select face" radio_style="true" width="114" /> 81 name="radio select face" radio_style="true" width="114" />
82 <check_box bottom_delta="-19" control_name="EditLinkedParts" follows="left|top" 82 <check_box bottom_delta="-19" control_name="EditLinkedParts" follows="left|top"
83 font="SansSerifSmall" height="16" initial_value="false" 83 font="SansSerifSmall" height="16" initial_value="false"
@@ -698,10 +698,10 @@
698 Path Cut Begin and End 698 Path Cut Begin and End
699 </text> 699 </text>
700 <spinner bottom_delta="-22" decimal_digits="3" follows="left|top" height="16" 700 <spinner bottom_delta="-22" decimal_digits="3" follows="left|top" height="16"
701 increment="0.05" initial_val="0" label="B" label_width="10" left="121" 701 increment="0.025" initial_val="0" label="B" label_width="10" left="121"
702 max_val="0.98" min_val="0" mouse_opaque="true" name="cut begin" width="68" /> 702 max_val="0.98" min_val="0" mouse_opaque="true" name="cut begin" width="68" />
703 <spinner bottom_delta="0" decimal_digits="3" follows="left|top" height="16" 703 <spinner bottom_delta="0" decimal_digits="3" follows="left|top" height="16"
704 increment="0.05" initial_val="1" label="E" label_width="10" left_delta="73" 704 increment="0.025" initial_val="1" label="E" label_width="10" left_delta="73"
705 max_val="1" min_val="0.02" mouse_opaque="true" name="cut end" width="68" /> 705 max_val="1" min_val="0.02" mouse_opaque="true" name="cut end" width="68" />
706 <text bg_visible="false" border_drop_shadow_visible="false" border_visible="false" 706 <text bg_visible="false" border_drop_shadow_visible="false" border_visible="false"
707 bottom_delta="-14" drop_shadow_visible="true" follows="left|top" 707 bottom_delta="-14" drop_shadow_visible="true" follows="left|top"
@@ -800,12 +800,18 @@
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.025" 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"
806 width="68" /> 812 width="68" />
807 <spinner bottom_delta="0" decimal_digits="3" follows="left|top" height="16" 813 <spinner bottom_delta="0" decimal_digits="3" follows="left|top" height="16"
808 increment="0.05" initial_val="1" label="E" label_width="10" left_delta="73" 814 increment="0.025" initial_val="1" label="E" label_width="10" left_delta="73"
809 max_val="1" min_val="0.05" mouse_opaque="true" name="Path Limit End" 815 max_val="1" min_val="0.05" mouse_opaque="true" name="Path Limit End"
810 width="68" /> 816 width="68" />
811 <text bg_visible="false" border_drop_shadow_visible="false" border_visible="false" 817 <text bg_visible="false" border_drop_shadow_visible="false" border_visible="false"
@@ -969,7 +975,7 @@
969 Transparency % 975 Transparency %
970 </text> 976 </text>
971 <spinner bottom_delta="-20" decimal_digits="0" follows="left|top" height="16" 977 <spinner bottom_delta="-20" decimal_digits="0" follows="left|top" height="16"
972 increment="2" initial_val="0" left="180" max_val="90" min_val="0" 978 increment="2" initial_val="0" left="180" max_val="100" min_val="0"
973 mouse_opaque="true" name="ColorTrans" width="80" /> 979 mouse_opaque="true" name="ColorTrans" width="80" />
974 <text bg_visible="false" border_drop_shadow_visible="false" border_visible="false" 980 <text bg_visible="false" border_drop_shadow_visible="false" border_visible="false"
975 bottom_delta="-12" drop_shadow_visible="true" follows="left|top" 981 bottom_delta="-12" drop_shadow_visible="true" follows="left|top"