From: kgv Date: Fri, 5 Feb 2016 10:12:36 +0000 (+0300) Subject: 0027136: Visualization - skip void bounding box within SelectMgr_SelectableObjectTrsf... X-Git-Tag: V7_0_0rc~58 X-Git-Url: http://git.dev.opencascade.org/gitweb/?a=commitdiff_plain;h=4f7e90e0db64cef0b3da41d830c439c5d5e74275;p=occt-copy.git 0027136: Visualization - skip void bounding box within SelectMgr_SelectableObjectTrsfPersSet::BVH() --- diff --git a/src/SelectMgr/SelectMgr_SelectableObjectTrsfPersSet.cxx b/src/SelectMgr/SelectMgr_SelectableObjectTrsfPersSet.cxx index aec1b107b4..facee7e905 100644 --- a/src/SelectMgr/SelectMgr_SelectableObjectTrsfPersSet.cxx +++ b/src/SelectMgr/SelectMgr_SelectableObjectTrsfPersSet.cxx @@ -137,7 +137,10 @@ const NCollection_Handle >& if (anObject->TransformPersistence().Flags && !(anObject->TransformPersistence().Flags & Graphic3d_TMF_2d)) { anObject->BoundingBox (aBoundingBox); - anObject->TransformPersistence().Apply (theProjectionMatrix, theWorldViewMatrix, 0, 0, aBoundingBox); + if (!aBoundingBox.IsVoid()) + { + anObject->TransformPersistence().Apply (theProjectionMatrix, theWorldViewMatrix, 0, 0, aBoundingBox); + } } if (aBoundingBox.IsVoid())