mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-26 22:49:01 +08:00
[cpp] Initialize minX/minY correctly in Skeleton::getBounds
This commit is contained in:
parent
187808d543
commit
a66218cb14
@ -425,8 +425,8 @@ PathConstraint *Skeleton::findPathConstraint(const String &constraintName) {
|
|||||||
void Skeleton::getBounds(float &outX, float &outY, float &outWidth, float &outHeight, Vector<float> &outVertexBuffer) {
|
void Skeleton::getBounds(float &outX, float &outY, float &outWidth, float &outHeight, Vector<float> &outVertexBuffer) {
|
||||||
float minX = FLT_MAX;
|
float minX = FLT_MAX;
|
||||||
float minY = FLT_MAX;
|
float minY = FLT_MAX;
|
||||||
float maxX = FLT_MIN;
|
float maxX = -FLT_MAX;
|
||||||
float maxY = FLT_MIN;
|
float maxY = -FLT_MAX;
|
||||||
|
|
||||||
for (size_t i = 0; i < _drawOrder.size(); ++i) {
|
for (size_t i = 0; i < _drawOrder.size(); ++i) {
|
||||||
Slot *slot = _drawOrder[i];
|
Slot *slot = _drawOrder[i];
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user