Skip to content

Commit 0df3bea

Browse files
authored
Merge pull request #1757 from Azaezel/alpha41/colFilterFix
fix advanced model editor slider blocker
2 parents c7be481 + 9750e7d commit 0df3bea

2 files changed

Lines changed: 11 additions & 2 deletions

File tree

Templates/BaseGame/game/tools/shapeEditor/gui/shapeEdAdvancedWindow.ed.gui

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -879,6 +879,7 @@ $guiContent = new GuiWindowCollapseCtrl(ShapeEdAdvancedWindow,EditorGuiGroup) {
879879
tooltipProfile = "GuiToolTipProfile";
880880
tooltip = "Select the method used to auto-generate the collision geometry";
881881
internalName = "colType";
882+
command = "ShapeEdColWindow.onColTypeSelected();";
882883
};
883884
new GuiTextCtrl() {
884885
text = "Fit Target";
@@ -1127,7 +1128,7 @@ $guiContent = new GuiWindowCollapseCtrl(ShapeEdAdvancedWindow,EditorGuiGroup) {
11271128
new GuiBitmapCtrl() {
11281129
BitmapAsset = "ToolsModule:inactive_overlay_image";
11291130
position = "0 47";
1130-
extent = "199 178";
1131+
extent = "342 178";
11311132
profile = "ToolsGuiDefaultProfile";
11321133
visible = "0";
11331134
tooltipProfile = "GuiToolTipProfile";

Templates/BaseGame/game/tools/shapeEditor/scripts/shapeEditor.ed.tscript

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3112,7 +3112,6 @@ function ShapeEdColWindow::update_onCollisionChanged( %this )
31123112

31133113
if ( %this-->colType.getText() $= "Convex Hulls" )
31143114
{
3115-
%this-->hullInactive.setVisible( false );
31163115
%this-->hullDepth.setValue( getField( %colData, 2 ) );
31173116
%this-->hullDepthText.setText( mFloor( %this-->hullDepth.getValue() ) );
31183117
%this-->hullMergeThreshold.setValue( getField( %colData, 3 ) );
@@ -3130,6 +3129,15 @@ function ShapeEdColWindow::update_onCollisionChanged( %this )
31303129
%fillModeID = %this-->fillMode.findText( getField( %colData, 9 ) );
31313130
%this-->fillMode.setSelected( %fillModeID, false );
31323131
}
3132+
}
3133+
3134+
function ShapeEdColWindow::onColTypeSelected(%this)
3135+
{
3136+
3137+
if ( %this-->colType.getText() $= "Convex Hulls" )
3138+
{
3139+
%this-->hullInactive.setVisible( false );
3140+
}
31333141
else
31343142
{
31353143
%this-->hullInactive.setVisible( true );

0 commit comments

Comments
 (0)