File tree Expand file tree Collapse file tree 1 file changed +5
-8
lines changed
jme3-core/src/main/java/com/jme3/effect/influencers Expand file tree Collapse file tree 1 file changed +5
-8
lines changed Original file line number Diff line number Diff line change 4040import com .jme3 .math .FastMath ;
4141import com .jme3 .math .Vector3f ;
4242import com .jme3 .util .clone .Cloner ;
43+
4344import java .io .IOException ;
4445
4546/**
@@ -101,14 +102,10 @@ public void read(JmeImporter im) throws IOException {
101102
102103 @ Override
103104 public DefaultParticleInfluencer clone () {
104- try {
105- DefaultParticleInfluencer clone = (DefaultParticleInfluencer ) super .clone ();
106- clone .initialVelocity = initialVelocity .clone ();
107- clone .temp = temp .clone ();
108- return clone ;
109- } catch (CloneNotSupportedException e ) {
110- throw new AssertionError ();
111- }
105+ // Set up the cloner for the type of cloning we want to do.
106+ Cloner cloner = new Cloner ();
107+ DefaultParticleInfluencer clone = cloner .clone (this );
108+ return clone ;
112109 }
113110
114111 /**
You can’t perform that action at this time.
0 commit comments