mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-14 00:20:51 +00:00
Added NoTrim support for ANIMDEFS, same syntax as TEXTURES outside a definition.
This commit is contained in:
parent
bbd91be5d5
commit
b4c74fabd3
1 changed files with 11 additions and 0 deletions
|
@ -455,6 +455,17 @@ void FTextureAnimator::ParseAnim (FScanner &sc, ETextureType usetype)
|
||||||
defined = 1;
|
defined = 1;
|
||||||
ani = ParseRangeAnim (sc, picnum, usetype, missing);
|
ani = ParseRangeAnim (sc, picnum, usetype, missing);
|
||||||
}
|
}
|
||||||
|
else if (sc.Compare("notrim"))
|
||||||
|
{
|
||||||
|
if (picnum.isValid())
|
||||||
|
{
|
||||||
|
auto tex = TexMan.GetGameTexture(picnum);
|
||||||
|
|
||||||
|
if (tex) tex->SetNoTrimming(true);
|
||||||
|
else sc.ScriptError("NoTrim: %s not found", sc.String);
|
||||||
|
}
|
||||||
|
else sc.ScriptError("NoTrim: %s is not a sprite", sc.String);
|
||||||
|
}
|
||||||
else if (sc.Compare ("pic"))
|
else if (sc.Compare ("pic"))
|
||||||
{
|
{
|
||||||
if (defined == 1)
|
if (defined == 1)
|
||||||
|
|
Loading…
Reference in a new issue