mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-06 07:14:55 +08:00
Formatting
This commit is contained in:
parent
970831044c
commit
fb821ec443
@ -348,13 +348,13 @@ void Atlas::load(const char *begin, int length, const char *dir, bool createText
|
||||
// Calculate regionWidth/Height from UV coordinates
|
||||
region->_regionWidth = abs((int) ((region->_u2 - region->_u) * page->width));
|
||||
region->_regionHeight = abs((int) ((region->_v2 - region->_v) * page->height));
|
||||
|
||||
|
||||
if (region->_degrees == 90) {
|
||||
int temp = region->_packedWidth;
|
||||
region->_packedWidth = region->_packedHeight;
|
||||
region->_packedHeight = temp;
|
||||
}
|
||||
|
||||
|
||||
_regions.add(region);
|
||||
}
|
||||
}
|
||||
|
||||
@ -145,7 +145,7 @@ public class HeadlessTest implements ApplicationListener {
|
||||
// Create animation state only when needed
|
||||
AnimationStateData stateData = new AnimationStateData(skeletonData);
|
||||
state = new AnimationState(stateData);
|
||||
|
||||
|
||||
// Find and set animation
|
||||
Animation animation = skeletonData.findAnimation(animationName);
|
||||
if (animation == null) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user