mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-04 22:34:53 +08:00
Documented updateCacheReset.
This commit is contained in:
parent
5994c65e51
commit
397c8fd8f8
@ -292,6 +292,9 @@ public class Skeleton {
|
||||
|
||||
/** Updates the world transform for each bone and applies constraints. */
|
||||
public void updateWorldTransform () {
|
||||
// This partial update avoids computing the world transform for constrained bones when 1) the bone is not updated
|
||||
// before the constraint, 2) the constraint only needs to access the applied local transform, and 3) the constraint calls
|
||||
// updateWorldTransform.
|
||||
Array<Bone> updateCacheReset = this.updateCacheReset;
|
||||
for (int i = 0, n = updateCacheReset.size; i < n; i++) {
|
||||
Bone bone = updateCacheReset.get(i);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user