Skip to content

Commit

Permalink
Merge pull request #2378 from jMonkeyEngine/revert-2231-capdevon-Anim…
Browse files Browse the repository at this point in the history
…Composer

Revert "AnimComposer: return AnimLayer on the makeLayer and removeLayer methods."
  • Loading branch information
yaRnMcDonuts authored Feb 22, 2025
2 parents 713df22 + b92c645 commit a563151
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions jme3-core/src/main/java/com/jme3/anim/AnimComposer.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2009-2024 jMonkeyEngine
* Copyright (c) 2009-2025 jMonkeyEngine
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
Expand Down Expand Up @@ -313,24 +313,21 @@ public Action removeAction(String name) {
/**
* Add a layer to this composer.
*
* @param name The desired name for the new layer
* @param mask The desired mask for the new layer (alias created)
* @return a new layer
* @param name the desired name for the new layer
* @param mask the desired mask for the new layer (alias created)
*/
public AnimLayer makeLayer(String name, AnimationMask mask) {
public void makeLayer(String name, AnimationMask mask) {
AnimLayer l = new AnimLayer(name, mask);
layers.put(name, l);
return l;
}

/**
* Remove specified layer. This will stop the current action on this layer.
*
* @param name The name of the layer to remove.
* @return The removed layer.
*/
public AnimLayer removeLayer(String name) {
return layers.remove(name);
public void removeLayer(String name) {
layers.remove(name);
}

/**
Expand Down

0 comments on commit a563151

Please sign in to comment.