Browse Source

- Fix volumetric lightmap

ShiroSmith 7 years ago
parent
commit
c8ee5b721c
1 changed files with 1 additions and 4 deletions
  1. 1 4
      hide/prefab/l3d/VolumetricLightmap.hx

+ 1 - 4
hide/prefab/l3d/VolumetricLightmap.hx

@@ -50,8 +50,7 @@ class VolumetricLightmap extends Object3D {
 	}
 
 	function initProbes(){
-		if(!displaySH) clearPreview();
-		else resetProbes();
+		resetProbes();
 	}
 
 	function resetProbes(){
@@ -154,8 +153,6 @@ class VolumetricLightmap extends Object3D {
 
 	override function applyPos( o : h3d.scene.Object ) {
 
-		var needReset = (this.scaleX != o.scaleX || this.scaleY != o.scaleY || this.scaleZ != o.scaleZ);
-
 		super.applyPos(o);
 
 		volumetricLightmap.setTransform(sceneObject.getAbsPos());