Handle 'tcb' command as an alias for 'tcg'

This commit is contained in:
scrawl 2017-02-08 18:50:37 +01:00
parent 45ae8d5ffa
commit 249fe9077b
3 changed files with 2 additions and 11 deletions

View file

@ -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;
} }

View file

@ -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
}; };

View file

@ -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");
} }
}; };