changed the camera decorator to take into account the current visibility of the raster (only visible raster are shown)

This commit is contained in:
Paolo Cignoni cignoni 2012-03-06 00:20:38 +00:00
parent 14e315ac36
commit ffdc1bf71c

View File

@ -173,13 +173,16 @@ void ExtraMeshDecoratePlugin::decorate(QAction *a, MeshDocument &md, RichParamet
}
}
// draw all raster cameras
// draw all visible raster cameras
// current camera also.
if(rm->getBool(ShowRasterCameras()))
{
foreach(RasterModel *raster, md.rasterList)
{
if(raster != md.rm() || !showCameraDetails) // non-selected raster
DrawCamera(NULL, raster->shot, Color4b::DarkBlue, md.mm()->cm.Tr, rm, painter,qf);
if(raster != md.rm() || !showCameraDetails ) // non-selected raster
{
if(raster->visible) DrawCamera(NULL, raster->shot, Color4b::DarkBlue, md.mm()->cm.Tr, rm, painter,qf);
}
else
{
DrawCamera(NULL, raster->shot, Color4b::Cyan, md.mm()->cm.Tr, rm, painter,qf);