From aff9f5ff8715d9bc9bd4a780eea0a9351d44de2a Mon Sep 17 00:00:00 2001 From: nds Date: Thu, 2 Apr 2015 17:16:21 +0300 Subject: [PATCH] The bug about sketch sub-entities with constraints visualized after open a document. --- src/PartSet/PartSet_SketcherMgr.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/PartSet/PartSet_SketcherMgr.cpp b/src/PartSet/PartSet_SketcherMgr.cpp index 05cf9b550..02c599ea9 100644 --- a/src/PartSet/PartSet_SketcherMgr.cpp +++ b/src/PartSet/PartSet_SketcherMgr.cpp @@ -792,7 +792,7 @@ bool PartSet_SketcherMgr::canDisplayObject(const ObjectPtr& theObject) const if (aFeature.get() != NULL) { std::shared_ptr aSketchFeature = std::dynamic_pointer_cast(aFeature); - if (aSketchFeature.get() == NULL) + if (aSketchFeature.get()) aCanDisplay = false; } } -- 2.39.2