2
0
Эх сурвалжийг харах

[fx] Properly scale particle position when particleScaling == None

Clément Espeute 3 сар өмнө
parent
commit
4ccb613960

+ 3 - 0
hrt/prefab/fx/Emitter.hx

@@ -1024,6 +1024,9 @@ class EmitterObject extends h3d.scene.Object {
 								// Re-introduce parent scaling in the spawn position calculations
 								var parentScale = inline parentNonEmitter.getAbsPos().getScale();
 								tmpMat.prependScale(parentScale.x, parentScale.y, parentScale.z);
+								tmpMat.tx *= parentScale.x;
+								tmpMat.ty *= parentScale.y;
+								tmpMat.tz *= parentScale.z;
 							}
 						}