Add WorldPanning flag for camera texture definitions.

- To make camera textures pan in world units instead of texture units, you
  can now add "WorldPanning" at the end of the cameratexture definition in
  ANIMDEFS, after the "fit" specification. e.g.

    cameratexture CAMTEX 128 128 fit 64 64 worldpanning
This commit is contained in:
Randy Heit 2013-10-09 21:29:28 -05:00
parent 8170cfbf98
commit c2bac9d2df

View file

@ -659,6 +659,17 @@ void FTextureManager::ParseCameraTexture(FScanner &sc)
sc.UnGet (); sc.UnGet ();
} }
} }
if (sc.GetString())
{
if (sc.Compare("WorldPanning"))
{
viewer->bWorldPanning = true;
}
else
{
sc.UnGet();
}
}
viewer->SetScaledSize(fitwidth, fitheight); viewer->SetScaledSize(fitwidth, fitheight);
} }