From 2c6161ecd8e7d7ced3752724b220feca5aabced1 Mon Sep 17 00:00:00 2001 From: Ali-RS <> Date: Thu, 24 Oct 2019 10:26:56 +0330 Subject: [PATCH] Added AnimComposer.hasAnimClip() --- jme3-core/src/main/java/com/jme3/anim/AnimComposer.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/jme3-core/src/main/java/com/jme3/anim/AnimComposer.java b/jme3-core/src/main/java/com/jme3/anim/AnimComposer.java index b8ac76668..740c4e034 100644 --- a/jme3-core/src/main/java/com/jme3/anim/AnimComposer.java +++ b/jme3-core/src/main/java/com/jme3/anim/AnimComposer.java @@ -32,6 +32,10 @@ public class AnimComposer extends AbstractControl { layers.put(DEFAULT_LAYER, new Layer(this)); } + public boolean hasAnimClip(String name) { + return animClipMap.containsKey(name); + } + /** * Retrieve an animation from the list of animations. *