mirror of
https://github.com/geode-sdk/geode.git
synced 2024-11-30 11:17:08 -05:00
i think that's it for now
This commit is contained in:
parent
bcaa0ab6be
commit
834199ad9c
1 changed files with 3 additions and 3 deletions
|
@ -372,13 +372,13 @@ struct MDParser {
|
||||||
if (spr && spr->getUserObject("geode.texture-loader/fallback") == nullptr) {
|
if (spr && spr->getUserObject("geode.texture-loader/fallback") == nullptr) {
|
||||||
spr->setScale(spriteScale);
|
spr->setScale(spriteScale);
|
||||||
if (spriteWidth > 0.0f && spriteHeight <= 0.0f) {
|
if (spriteWidth > 0.0f && spriteHeight <= 0.0f) {
|
||||||
limitNodeWidth(spr, spriteWidth, spriteScale, 0.1f);
|
limitNodeWidth(spr, spriteWidth, 999.f, .1f);
|
||||||
}
|
}
|
||||||
else if (spriteHeight > 0.0f && spriteWidth <= 0.0f) {
|
else if (spriteHeight > 0.0f && spriteWidth <= 0.0f) {
|
||||||
limitNodeHeight(spr, spriteHeight, spriteScale, 0.1f);
|
limitNodeHeight(spr, spriteHeight, 999.f, .1f);
|
||||||
}
|
}
|
||||||
else if (spriteWidth > 0.0f && spriteHeight > 0.0f) {
|
else if (spriteWidth > 0.0f && spriteHeight > 0.0f) {
|
||||||
limitNodeSize(spr, { spriteWidth, spriteHeight }, spriteScale, 0.1f);
|
limitNodeSize(spr, { spriteWidth, spriteHeight }, 999.f, .1f);
|
||||||
}
|
}
|
||||||
renderer->renderNode(spr);
|
renderer->renderNode(spr);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue