浏览代码

fixes snap-to-terrain toggle not displaying it's initially saved-off state.

Azaezel 8 年之前
父节点
当前提交
5e6826d9bd
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      Templates/Full/game/tools/worldEditor/scripts/EditorGui.ed.cs

+ 1 - 0
Templates/Full/game/tools/worldEditor/scripts/EditorGui.ed.cs

@@ -2050,6 +2050,7 @@ function EWorldEditor::syncGui( %this )
    EWorldEditorToolbar-->renderHandleBtn.setStateOn( EWorldEditor.renderObjHandle );
    EWorldEditorToolbar-->renderTextBtn.setStateOn( EWorldEditor.renderObjText );
 
+   EWorldEditorToolbar-->objectSnapDownBtn.setStateOn( %this.stickToGround );
    SnapToBar-->objectSnapBtn.setStateOn( EWorldEditor.getSoftSnap() );
    EWorldEditorToolbar-->softSnapSizeTextEdit.setText( EWorldEditor.getSoftSnapSize() );
    ESnapOptions-->SnapSize.setText( EWorldEditor.getSoftSnapSize() );