From 2dbf4050a133a04b142c9972685907e524ae8146 Mon Sep 17 00:00:00 2001 From: mpv Date: Mon, 15 Jul 2019 14:47:35 +0300 Subject: [PATCH] Fix for the issue #2942 : Fatal error when select using filters and use object from object browser --- src/FiltersPlugin/FiltersPlugin_OnPlane.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/FiltersPlugin/FiltersPlugin_OnPlane.cpp b/src/FiltersPlugin/FiltersPlugin_OnPlane.cpp index b9f632956..aaf4744de 100644 --- a/src/FiltersPlugin/FiltersPlugin_OnPlane.cpp +++ b/src/FiltersPlugin/FiltersPlugin_OnPlane.cpp @@ -48,6 +48,9 @@ bool FiltersPlugin_OnPlane::isSupported(GeomAPI_Shape::ShapeType theType) const GeomPlanePtr getPlane(AttributeSelectionPtr theAttr) { GeomShapePtr aGeom = theAttr->value(); + if (!aGeom.get()) { // construction plane, #2942 + aGeom = theAttr->context()->shape(); + } GeomFacePtr aFace(new GeomAPI_Face(aGeom)); return aFace->getPlane(); } -- 2.39.2