mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-26 06:29:02 +08:00
Javadocs.
This commit is contained in:
parent
f1e199b2bd
commit
f0533b6093
@ -155,8 +155,8 @@ public class Skeleton {
|
||||
updateCache();
|
||||
}
|
||||
|
||||
/** Caches information about bones and constraints. Must be called if the skin is changed or if bones, constraints, or weighted
|
||||
* path attachments are added or removed. */
|
||||
/** Caches information about bones and constraints. Must be called if the skin is modified or if bones, constraints, or
|
||||
* weighted path attachments are added or removed. */
|
||||
public void updateCache () {
|
||||
Array<Updatable> updateCache = this.updateCache;
|
||||
updateCache.clear();
|
||||
@ -512,7 +512,8 @@ public class Skeleton {
|
||||
setSkin(skin);
|
||||
}
|
||||
|
||||
/** Sets the skin used to look up attachments before looking in the {@link SkeletonData#getDefaultSkin() default skin}.
|
||||
/** Sets the skin used to look up attachments before looking in the {@link SkeletonData#getDefaultSkin() default skin}. If the
|
||||
* skin is changed, {@link #updateCache()} is called.
|
||||
* <p>
|
||||
* Attachments from the new skin are attached if the corresponding attachment from the old skin was attached. If there was no
|
||||
* old skin, each slot's setup mode attachment is attached from the new skin.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user