mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-09 13:44:32 +00:00
fix advanced shader editor slider blocker
correct size of hullInactive filter and logic for it by adding a function ShapeEdColWindow::onColTypeSelected that goes off on any selection from the dropdown
This commit is contained in:
parent
c7be48130a
commit
9750e7dcc8
2 changed files with 11 additions and 2 deletions
|
|
@ -3112,7 +3112,6 @@ function ShapeEdColWindow::update_onCollisionChanged( %this )
|
|||
|
||||
if ( %this-->colType.getText() $= "Convex Hulls" )
|
||||
{
|
||||
%this-->hullInactive.setVisible( false );
|
||||
%this-->hullDepth.setValue( getField( %colData, 2 ) );
|
||||
%this-->hullDepthText.setText( mFloor( %this-->hullDepth.getValue() ) );
|
||||
%this-->hullMergeThreshold.setValue( getField( %colData, 3 ) );
|
||||
|
|
@ -3130,6 +3129,15 @@ function ShapeEdColWindow::update_onCollisionChanged( %this )
|
|||
%fillModeID = %this-->fillMode.findText( getField( %colData, 9 ) );
|
||||
%this-->fillMode.setSelected( %fillModeID, false );
|
||||
}
|
||||
}
|
||||
|
||||
function ShapeEdColWindow::onColTypeSelected(%this)
|
||||
{
|
||||
|
||||
if ( %this-->colType.getText() $= "Convex Hulls" )
|
||||
{
|
||||
%this-->hullInactive.setVisible( false );
|
||||
}
|
||||
else
|
||||
{
|
||||
%this-->hullInactive.setVisible( true );
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue