mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-30 04:15:31 +00:00
fix error in framelistener with tcg enabled
This commit is contained in:
parent
9b0254a158
commit
044ab3d2b6
3 changed files with 9 additions and 2 deletions
|
@ -19,6 +19,7 @@
|
|||
#include "../mwworld/ptr.hpp"
|
||||
|
||||
#include "player.hpp"
|
||||
#include "renderconst.hpp"
|
||||
|
||||
using namespace Ogre;
|
||||
|
||||
|
@ -86,6 +87,8 @@ ManualObject *Debugging::createPathgridLines(const ESM::Pathgrid *pathgrid)
|
|||
}
|
||||
result->end();
|
||||
|
||||
result->setVisibilityFlags (RV_Debug);
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
|
@ -140,6 +143,8 @@ ManualObject *Debugging::createPathgridPoints(const ESM::Pathgrid *pathgrid)
|
|||
|
||||
result->end();
|
||||
|
||||
result->setVisibilityFlags (RV_Debug);
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
|
|
|
@ -56,9 +56,9 @@ enum VisibilityFlags
|
|||
|
||||
RV_PlayerPreview = 512,
|
||||
|
||||
RV_Map = RV_Terrain + RV_Statics + RV_StaticsSmall + RV_Misc + RV_Water
|
||||
RV_Debug = 1024,
|
||||
|
||||
/// \todo markers (normally hidden)
|
||||
RV_Map = RV_Terrain + RV_Statics + RV_StaticsSmall + RV_Misc + RV_Water
|
||||
};
|
||||
|
||||
}
|
||||
|
|
|
@ -206,6 +206,8 @@ public:
|
|||
}
|
||||
|
||||
mLineDrawer->setMaterial("BtOgre/DebugLines");
|
||||
|
||||
mLineDrawer->setVisibilityFlags (1024);
|
||||
}
|
||||
|
||||
~DebugDrawer()
|
||||
|
|
Loading…
Reference in a new issue