This commit is contained in:
luboslenco
2019-04-26 12:33:20 +02:00
parent 10a72f132c
commit 41b712e631
3 changed files with 2 additions and 16 deletions
+2 -2
View File
@@ -5,14 +5,14 @@ package arm;
@:expose
class Plugin {
public static function keep() {}
public static var plugins:Array<Plugin> = [];
public var drawUI:zui.Zui->Void = null;
public var draw:Void->Void = null;
public var update:Void->Void = null;
public static function keep() {}
public function handle(ops: zui.Zui.HandleOptions = null) {
return new zui.Zui.Handle(ops);
}
-7
View File
@@ -101,13 +101,6 @@ class UINodes extends iron.Trait {
});
}
// public function applyTheme() {
// var t = Reflect.copy(arm.App.theme);
// t.ELEMENT_H = 18;
// t.BUTTON_H = 16;
// ui.t = t;
// }
public function updateCanvasMap() {
if (UITrait.inst.worktab.position == 1) {
-7
View File
@@ -26,9 +26,7 @@ class RenderUtil {
//
sphere.materials[0] = UITrait.inst.worktab.position == 1 ? UITrait.inst.selectedMaterial2.data : UITrait.inst.materials[0].data;
var gizmo_vis = UITrait.inst.gizmo.visible;
// var grid_vis = UITrait.inst.grid.visible;
UITrait.inst.gizmo.visible = false;
// UITrait.inst.grid.visible = false;
//
UITrait.inst.savedCamera.setFrom(iron.Scene.active.camera.transform.local);
@@ -44,8 +42,6 @@ class RenderUtil {
var savedProbe = probe.raw.strength;
probe.raw.strength = 4;
iron.Scene.active.world.envmap = UITrait.inst.previewEnvmap;
// No jitter
// @:privateAccess iron.Scene.active.camera.frame = 0;
// No resize
@:privateAccess iron.RenderPath.active.lastW = matPreviewSize;
@:privateAccess iron.RenderPath.active.lastH = matPreviewSize;
@@ -69,7 +65,6 @@ class RenderUtil {
UITrait.inst.paintObject = painto;
UITrait.inst.gizmo.visible = gizmo_vis;
// UITrait.inst.grid.visible = grid_vis;
iron.Scene.active.camera.transform.setMatrix(UITrait.inst.savedCamera);
UITrait.inst.updateCameraType(UITrait.inst.cameraType);
@@ -113,8 +108,6 @@ class RenderUtil {
light.visible = false;
iron.Scene.active.world.envmap = UITrait.inst.previewEnvmap;
// No jitter
// @:privateAccess iron.Scene.active.camera.frame = 0;
// No resize
@:privateAccess iron.RenderPath.active.lastW = arm.util.RenderUtil.decalPreviewSize;
@:privateAccess iron.RenderPath.active.lastH = arm.util.RenderUtil.decalPreviewSize;