Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

solve issue #2374 (NoSuchMethodError) #2375

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 23 additions & 3 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 @@ -317,22 +317,42 @@ public Action removeAction(String name) {
* @param mask The desired mask for the new layer (alias created)
* @return a new layer
*/
public AnimLayer makeLayer(String name, AnimationMask mask) {
public AnimLayer addAnimLayer(String name, AnimationMask mask) {
AnimLayer l = new AnimLayer(name, mask);
layers.put(name, l);
return l;
}

/**
* Adds a layer to this composer. (for compatibility with v3.7)
*
* @param name The desired name for the new layer
* @param mask The desired mask for the new layer (alias created)
*/
public void makeLayer(String name, AnimationMask mask) {
addAnimLayer(name, mask);
}

/**
* 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) {
public AnimLayer removeAnimLayer(String name) {
return layers.remove(name);
}

/**
* Removes the specified layer and stops the current action on that layer.
* (for compatibility with v3.7)
*
* @param name The name of the layer to remove.
*/
public void removeLayer(String name) {
removeAnimLayer(name);
}

/**
* Creates an action that will interpolate over an entire sequence of tweens
* in order.
Expand Down