mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-26 22:49:01 +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
|
// Calculate regionWidth/Height from UV coordinates
|
||||||
region->_regionWidth = abs((int) ((region->_u2 - region->_u) * page->width));
|
region->_regionWidth = abs((int) ((region->_u2 - region->_u) * page->width));
|
||||||
region->_regionHeight = abs((int) ((region->_v2 - region->_v) * page->height));
|
region->_regionHeight = abs((int) ((region->_v2 - region->_v) * page->height));
|
||||||
|
|
||||||
if (region->_degrees == 90) {
|
if (region->_degrees == 90) {
|
||||||
int temp = region->_packedWidth;
|
int temp = region->_packedWidth;
|
||||||
region->_packedWidth = region->_packedHeight;
|
region->_packedWidth = region->_packedHeight;
|
||||||
region->_packedHeight = temp;
|
region->_packedHeight = temp;
|
||||||
}
|
}
|
||||||
|
|
||||||
_regions.add(region);
|
_regions.add(region);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -145,7 +145,7 @@ public class HeadlessTest implements ApplicationListener {
|
|||||||
// Create animation state only when needed
|
// Create animation state only when needed
|
||||||
AnimationStateData stateData = new AnimationStateData(skeletonData);
|
AnimationStateData stateData = new AnimationStateData(skeletonData);
|
||||||
state = new AnimationState(stateData);
|
state = new AnimationState(stateData);
|
||||||
|
|
||||||
// Find and set animation
|
// Find and set animation
|
||||||
Animation animation = skeletonData.findAnimation(animationName);
|
Animation animation = skeletonData.findAnimation(animationName);
|
||||||
if (animation == null) {
|
if (animation == null) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user