fix error in framelistener with tcg enabled

actorid
scrawl 12 years ago
parent 9b0254a158
commit 044ab3d2b6

@ -19,6 +19,7 @@
#include "../mwworld/ptr.hpp" #include "../mwworld/ptr.hpp"
#include "player.hpp" #include "player.hpp"
#include "renderconst.hpp"
using namespace Ogre; using namespace Ogre;
@ -86,6 +87,8 @@ ManualObject *Debugging::createPathgridLines(const ESM::Pathgrid *pathgrid)
} }
result->end(); result->end();
result->setVisibilityFlags (RV_Debug);
return result; return result;
} }
@ -140,6 +143,8 @@ ManualObject *Debugging::createPathgridPoints(const ESM::Pathgrid *pathgrid)
result->end(); result->end();
result->setVisibilityFlags (RV_Debug);
return result; return result;
} }

@ -56,9 +56,9 @@ enum VisibilityFlags
RV_PlayerPreview = 512, 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->setMaterial("BtOgre/DebugLines");
mLineDrawer->setVisibilityFlags (1024);
} }
~DebugDrawer() ~DebugDrawer()

Loading…
Cancel
Save