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

coverity_scan^2
scrawl 8 years ago
parent 45ae8d5ffa
commit 249fe9077b

@ -435,14 +435,6 @@ namespace MWRender
mViewer->getCamera()->setCullMask(mask);
return enabled;
}
/*
else //if (mode == Render_BoundingBoxes)
{
bool show = !mRendering.getScene()->getShowBoundingBoxes();
mRendering.getScene()->showBoundingBoxes(show);
return show;
}
*/
return false;
}

@ -9,7 +9,6 @@ namespace MWRender
Render_CollisionDebug,
Render_Wireframe,
Render_Pathgrid,
Render_BoundingBoxes,
Render_Water,
Render_Scene
};

@ -235,10 +235,10 @@ namespace MWScript
virtual void execute (Interpreter::Runtime& runtime)
{
bool enabled =
MWBase::Environment::get().getWorld()->toggleRenderMode (MWRender::Render_BoundingBoxes);
MWBase::Environment::get().getWorld()->toggleRenderMode (MWRender::Render_CollisionDebug);
runtime.getContext().report (enabled ?
"Bounding Box Rendering -> On" : "Bounding Box Rendering -> Off");
"Collision Mesh Rendering -> On" : "Collision Mesh Rendering -> Off");
}
};

Loading…
Cancel
Save