Explorar o código

remove dubugger

Trevor Baron %!s(int64=6) %!d(string=hai) anos
pai
achega
7a63dc0a79
Modificáronse 2 ficheiros con 2 adicións e 3 borrados
  1. 1 2
      inspector/src/inspector.ts
  2. 1 1
      src/Gizmos/lightGizmo.ts

+ 1 - 2
inspector/src/inspector.ts

@@ -407,9 +407,8 @@ export class Inspector {
 
         // Light gizmos
         scene.lights.forEach((l)=>{
-            debugger;
             this._GlobalState.enableLightGizmo(l, true);
-        })
+        });
     }
 
     private static _CreateCanvasContainer(parentControl: HTMLElement) {

+ 1 - 1
src/Gizmos/lightGizmo.ts

@@ -21,7 +21,7 @@ export class LightGizmo extends Gizmo {
     constructor(gizmoLayer?: UtilityLayerRenderer) {
         super(gizmoLayer);
         this._box = Mesh.CreateCylinder("light", 0.02, 0, 0.02, 16, 1, this.gizmoLayer.utilityLayerScene);
-        this._box.rotation.x = Math.PI / 2;
+        this._box.rotation.x = -Math.PI / 2;
         this._box.bakeCurrentTransformIntoVertices();
         this._box.material = new StandardMaterial("", this.gizmoLayer.utilityLayerScene);
         (this._box.material as StandardMaterial).emissiveColor = new Color3(1, 1, 1);