From 5fe52950ace33f02fc9f0d3af249263db27290e3 Mon Sep 17 00:00:00 2001 From: "nathan.sweet" Date: Wed, 9 Feb 2011 11:19:23 +0000 Subject: [PATCH] [fixed] ParticleEditor crash form not initing on EDT. [fixed] Fixed issue 125. Misplaced equals sign. --- .../src/com/badlogic/gdx/graphics/particles/ParticleEditor.java | 2 +- gdx/src/com/badlogic/gdx/graphics/g2d/ParticleEmitter.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/extensions/particle-editor/src/com/badlogic/gdx/graphics/particles/ParticleEditor.java b/extensions/particle-editor/src/com/badlogic/gdx/graphics/particles/ParticleEditor.java index 102963724..2a5e0a598 100644 --- a/extensions/particle-editor/src/com/badlogic/gdx/graphics/particles/ParticleEditor.java +++ b/extensions/particle-editor/src/com/badlogic/gdx/graphics/particles/ParticleEditor.java @@ -393,8 +393,8 @@ public class ParticleEditor extends JFrame { } EventQueue.invokeLater(new Runnable() { public void run () { + new ParticleEditor(); } }); - new ParticleEditor(); } } diff --git a/gdx/src/com/badlogic/gdx/graphics/g2d/ParticleEmitter.java b/gdx/src/com/badlogic/gdx/graphics/g2d/ParticleEmitter.java index d774a8885..7767b9429 100644 --- a/gdx/src/com/badlogic/gdx/graphics/g2d/ParticleEmitter.java +++ b/gdx/src/com/badlogic/gdx/graphics/g2d/ParticleEmitter.java @@ -416,7 +416,7 @@ public class ParticleEmitter { float velocityX, velocityY; if ((updateFlags & UPDATE_ANGLE) != 0) { - float angle = particle.angle += particle.angleDiff * angleValue.getScale(percent); + float angle = particle.angle + particle.angleDiff * angleValue.getScale(percent); velocityX = velocity * MathUtils.cosDeg(angle); velocityY = velocity * MathUtils.sinDeg(angle); if ((updateFlags & UPDATE_ROTATION) != 0) { -- 2.11.0