فهرست منبع

Fix for bug #1975

The change was made to the function that is executed when entering the world editor. The boolean variable for first person shooter was set to true, since the camera always defaults to first person on entering the world editor. On setting this boolean variable to be true, the correct camera setting will always be displayed on entering the world editor. This does not affect other camera labels.
saxonschmauderer 8 سال پیش
والد
کامیت
1c18cfe5b1
1فایلهای تغییر یافته به همراه2 افزوده شده و 1 حذف شده
  1. 2 1
      Templates/Full/game/tools/worldEditor/scripts/EditorGui.ed.cs

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

@@ -1919,6 +1919,7 @@ function Editor::open(%this)
 
    %this.editorEnabled();
    Canvas.setContent(EditorGui);   
+   $isFirstPersonVar = true;
    EditorGui.syncCameraGui();
 }
 
@@ -2829,4 +2830,4 @@ function EditorDropdownSliderContainer::onMouseDown(%this)
 function EditorDropdownSliderContainer::onRightMouseDown(%this)
 {
    Canvas.popDialog(%this);
-}
+}