this repo has no description
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix copy animations

clover a0eabe5c 09231158

+9
+1
CHANGELOG.md
··· 6 6 7 7 ### Fixed 8 8 - (Map Editor) Fixed crash when fusing vertices 9 + - (Sprite Editor) Copy animation works properly
+7
src/main/java/game/sprite/RawAnimation.java
··· 18 18 labels = new TreeMap<>(); 19 19 } 20 20 21 + public RawAnimation(RawAnimation other) 22 + { 23 + this(); 24 + this.addAll(other); 25 + labels.putAll(other.labels); 26 + } 27 + 21 28 public void setLabel(int pos, String name) 22 29 { 23 30 labels.put(pos, name);
+1
src/main/java/game/sprite/SpriteComponent.java
··· 90 90 { 91 91 this.parentAnimation = anim; 92 92 this.usesKeyframes = original.usesKeyframes; 93 + this.rawAnim = new RawAnimation(original.rawAnim); 93 94 this.cmdAnimator = new CommandAnimator(this); 94 95 this.keyframeAnimator = new KeyframeAnimator(this); 95 96 animator = usesKeyframes ? keyframeAnimator : cmdAnimator;