Browse Source

Disallow duplicate camera pushes

Adam Johnson 13 years ago
parent
commit
8deeb6831a
  1. 7
      Sources/Plasma/FeatureLib/pfCamera/plVirtualCamNeu.cpp

7
Sources/Plasma/FeatureLib/pfCamera/plVirtualCamNeu.cpp

@ -1509,13 +1509,8 @@ void plVirtualCam1::AddCameraToStack(plCameraModifier1* pCam)
void plVirtualCam1::PushCamera(plCameraModifier1* pCam, hsBool bDefault)
{
// pushing the same camera, folks?
// -- disallowed 2/13/2012 --
if (pCam == GetCurrentStackCamera())
{
AddCameraToStack(pCam);
return;
}
// make sure that we don't keep adding the default camera if we're already in it
if (bDefault && pCam == GetCurrentStackCamera())
return;
// look up whatever transition we might have specified

Loading…
Cancel
Save