Przeglądaj źródła

Revert changes from emitter

ShiroSmith 4 lat temu
rodzic
commit
0b040cee99
1 zmienionych plików z 2 dodań i 9 usunięć
  1. 2 9
      hrt/prefab/fx/Emitter.hx

+ 2 - 9
hrt/prefab/fx/Emitter.hx

@@ -1,5 +1,4 @@
 package hrt.prefab.fx;
-import h3d.Matrix;
 import hrt.prefab.l3d.Polygon;
 import hrt.prefab.Curve;
 import hrt.prefab.fx.BaseFX.ShaderAnimation;
@@ -101,7 +100,6 @@ private class ParticleTransform {
 		this.z = z;
 	}
 
-	var tmpScale = new h3d.Vector();
 	public function calcAbsPos() {
 		qRot.toMatrix(absPos);
 		absPos._11 *= scaleX;
@@ -116,13 +114,8 @@ private class ParticleTransform {
 		absPos._41 = x;
 		absPos._42 = y;
 		absPos._43 = z;
-		if( parent != null ) {
-			// Ignore Scale
-			var parentAbsPos = parent.getAbsPos();
-			parentAbsPos.getScale(tmpScale);
-			parentAbsPos.scale(1.0 / tmpScale.x, 1.0 / tmpScale.y, 1.0 / tmpScale.z);
-			absPos.multiply3x4inline(absPos, parentAbsPos);
-		}
+		if( parent != null )
+			absPos.multiply3x4inline(absPos, parent.getAbsPos());
 	}
 
 	static var tmpMat = new h3d.Matrix();