Forráskód Böngészése

fix stack overflow

ncannasse 8 éve
szülő
commit
faf2631c38
1 módosított fájl, 3 hozzáadás és 0 törlés
  1. 3 0
      h3d/parts/GpuParticles.hx

+ 3 - 0
h3d/parts/GpuParticles.hx

@@ -572,7 +572,10 @@ class GpuParticles extends h3d.scene.MultiMaterial {
 				calcEmit = g.emitMode;
 				switch( g.emitMode ) {
 				case ParentBounds:
+					var ignore = flags.has(FIgnoreBounds);
+					flags.set(FIgnoreBounds, true);
 					ebounds = parent.getBounds();
+					flags.set(FIgnoreBounds, ignore);
 					ebounds.transform(getInvPos());
 				case VolumeBounds, CameraBounds:
 					ebounds = volumeBounds;