mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Update bounding box of parts in polyline part manager
The part visualization was missing in some cases due to an invalid bounding box
This commit is contained in:
parent
dc1e675b37
commit
573a8f78cf
@ -107,6 +107,7 @@ void RivPolylinePartMgr::buildPolylineParts( const caf::DisplayCoordTransform* d
|
||||
cvf::ref<cvf::Part> part = new cvf::Part;
|
||||
part->setName( "RivPolylinePartMgr" );
|
||||
part->setDrawable( drawableGeo.p() );
|
||||
part->updateBoundingBox();
|
||||
|
||||
caf::MeshEffectGenerator effgen( polylineDef->lineColor() );
|
||||
effgen.setLineWidth( polylineDef->lineThickness() );
|
||||
@ -177,6 +178,7 @@ void RivPolylinePartMgr::buildPolylineParts( const caf::DisplayCoordTransform* d
|
||||
cvf::ref<cvf::Part> part = new cvf::Part;
|
||||
part->setName( "RivPolylinePartMgr" );
|
||||
part->setDrawable( vectorDrawable.p() );
|
||||
part->updateBoundingBox();
|
||||
|
||||
part->setEffect( new cvf::Effect() );
|
||||
part->setPriority( RivPartPriority::PartType::MeshLines );
|
||||
|
Loading…
Reference in New Issue
Block a user