From ffdc1bf71c489de691032cdd6cd0e083d24a9f86 Mon Sep 17 00:00:00 2001 From: Paolo Cignoni cignoni Date: Tue, 6 Mar 2012 00:20:38 +0000 Subject: [PATCH] changed the camera decorator to take into account the current visibility of the raster (only visible raster are shown) --- src/meshlabplugins/decorate_base/decorate_base.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/meshlabplugins/decorate_base/decorate_base.cpp b/src/meshlabplugins/decorate_base/decorate_base.cpp index 082707773..5c8f6c9dd 100644 --- a/src/meshlabplugins/decorate_base/decorate_base.cpp +++ b/src/meshlabplugins/decorate_base/decorate_base.cpp @@ -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);