mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-19 22:53:50 +00:00
Handle 'tcb' command as an alias for 'tcg'
This commit is contained in:
parent
45ae8d5ffa
commit
249fe9077b
3 changed files with 2 additions and 11 deletions
|
@ -435,14 +435,6 @@ namespace MWRender
|
||||||
mViewer->getCamera()->setCullMask(mask);
|
mViewer->getCamera()->setCullMask(mask);
|
||||||
return enabled;
|
return enabled;
|
||||||
}
|
}
|
||||||
/*
|
|
||||||
else //if (mode == Render_BoundingBoxes)
|
|
||||||
{
|
|
||||||
bool show = !mRendering.getScene()->getShowBoundingBoxes();
|
|
||||||
mRendering.getScene()->showBoundingBoxes(show);
|
|
||||||
return show;
|
|
||||||
}
|
|
||||||
*/
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -9,7 +9,6 @@ namespace MWRender
|
||||||
Render_CollisionDebug,
|
Render_CollisionDebug,
|
||||||
Render_Wireframe,
|
Render_Wireframe,
|
||||||
Render_Pathgrid,
|
Render_Pathgrid,
|
||||||
Render_BoundingBoxes,
|
|
||||||
Render_Water,
|
Render_Water,
|
||||||
Render_Scene
|
Render_Scene
|
||||||
};
|
};
|
||||||
|
|
|
@ -235,10 +235,10 @@ namespace MWScript
|
||||||
virtual void execute (Interpreter::Runtime& runtime)
|
virtual void execute (Interpreter::Runtime& runtime)
|
||||||
{
|
{
|
||||||
bool enabled =
|
bool enabled =
|
||||||
MWBase::Environment::get().getWorld()->toggleRenderMode (MWRender::Render_BoundingBoxes);
|
MWBase::Environment::get().getWorld()->toggleRenderMode (MWRender::Render_CollisionDebug);
|
||||||
|
|
||||||
runtime.getContext().report (enabled ?
|
runtime.getContext().report (enabled ?
|
||||||
"Bounding Box Rendering -> On" : "Bounding Box Rendering -> Off");
|
"Collision Mesh Rendering -> On" : "Collision Mesh Rendering -> Off");
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue