mirror of
https://github.com/lucaspalomodevelop/meshlab.git
synced 2026-03-19 19:14:42 +00:00
changed the camera decorator to take into account the current visibility of the raster (only visible raster are shown)
This commit is contained in:
parent
14e315ac36
commit
ffdc1bf71c
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user