mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-04 22:34:53 +08:00
Merge branch '3.6' into 3.7-beta
This commit is contained in:
commit
4f73cfc959
@ -39,7 +39,6 @@ import com.badlogic.gdx.graphics.OrthographicCamera;
|
||||
import com.badlogic.gdx.graphics.g2d.PolygonSpriteBatch;
|
||||
import com.badlogic.gdx.graphics.g2d.TextureAtlas;
|
||||
import com.badlogic.gdx.math.Interpolation;
|
||||
import com.esotericsoftware.spine.vertexeffects.JitterEffect;
|
||||
import com.esotericsoftware.spine.vertexeffects.SwirlEffect;
|
||||
|
||||
public class VertexEffectTest extends ApplicationAdapter {
|
||||
|
||||
@ -64,6 +64,12 @@ public class Skin {
|
||||
attachments.put(key, attachment);
|
||||
}
|
||||
|
||||
/** Adds all attachments from the specified skin to this skin. */
|
||||
public void addAttachments (Skin skin) {
|
||||
for (Entry<Key, Attachment> entry : skin.attachments.entries())
|
||||
addAttachment(entry.key.slotIndex, entry.key.name, entry.value);
|
||||
}
|
||||
|
||||
/** Returns the attachment for the specified slot index and name, or null. */
|
||||
public Attachment getAttachment (int slotIndex, String name) {
|
||||
if (slotIndex < 0) throw new IllegalArgumentException("slotIndex must be >= 0.");
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user