mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-03-06 14:00:39 +00:00
preserve gridsnap state between runs
This commit is contained in:
parent
9712a8b1c9
commit
0612d8508d
1 changed files with 5 additions and 2 deletions
|
|
@ -2488,7 +2488,8 @@ function EWorldEditor::syncGui( %this )
|
|||
ESnapOptions-->SnapSize.setText( EWorldEditor.getSoftSnapSize() );
|
||||
ESnapOptions-->GridSize.setText( EWorldEditor.getGridSize() );
|
||||
|
||||
ESnapOptions-->GridSnapButton.setStateOn( %this.getGridSnap() );
|
||||
%this.UseGridSnap = EditorSettings.value("WorldEditor/Tools/UseGridSnap");
|
||||
ESnapOptions-->GridSnapButton.setStateOn( %this.UseGridSnap );
|
||||
|
||||
%this.UseGroupCenter = EditorSettings.value("WorldEditor/Tools/UseGroupCenter");
|
||||
|
||||
|
|
@ -2762,7 +2763,9 @@ function toggleSnappingOptions( %var )
|
|||
}
|
||||
else if( %var $= "grid" )
|
||||
{
|
||||
EWorldEditor.setGridSnap( !EWorldEditor.getGridSnap() );
|
||||
EWorldEditor.UseGridSnap = !EWorldEditor.UseGridSnap;
|
||||
EditorSettings.setValue("WorldEditor/Tools/UseGridSnap", EWorldEditor.UseGridSnap );
|
||||
EWorldEditor.setGridSnap( EWorldEditor.UseGridSnap );
|
||||
}
|
||||
else if( %var $= "byGroup" )
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue