From eec1fa9ee3c0b11ab1675cd56d664ecb0db02d65 Mon Sep 17 00:00:00 2001 From: sbh Date: Mon, 15 Dec 2014 10:25:04 +0300 Subject: [PATCH] Runtime error on loading PartSet plugin under linux fixed. --- src/SketchPlugin/SketchPlugin_Feature.cpp | 10 ---------- src/SketchPlugin/SketchPlugin_Feature.h | 10 +++++++++- 2 files changed, 9 insertions(+), 11 deletions(-) diff --git a/src/SketchPlugin/SketchPlugin_Feature.cpp b/src/SketchPlugin/SketchPlugin_Feature.cpp index dcd2f9847..6e0f7111d 100644 --- a/src/SketchPlugin/SketchPlugin_Feature.cpp +++ b/src/SketchPlugin/SketchPlugin_Feature.cpp @@ -31,13 +31,3 @@ SketchPlugin_Sketch* SketchPlugin_Feature::sketch() return mySketch; } - -void SketchPlugin_Feature::customisePresentation(AISObjectPtr thePrs) -{ - // if this is an edge - if (thePrs->getShapeType() == 6) - thePrs->setWidth(3); - // if this is a vertex - else if (thePrs->getShapeType() == 7) - thePrs->setPointMarker(6, 2.); -} \ No newline at end of file diff --git a/src/SketchPlugin/SketchPlugin_Feature.h b/src/SketchPlugin/SketchPlugin_Feature.h index 7ca0eb6d3..d43fe66a9 100644 --- a/src/SketchPlugin/SketchPlugin_Feature.h +++ b/src/SketchPlugin/SketchPlugin_Feature.h @@ -64,7 +64,15 @@ class SketchPlugin_Feature : public ModelAPI_Feature, public GeomAPI_ICustomPrs } /// Customize presentation of the feature - virtual void customisePresentation(AISObjectPtr thePrs); + virtual void customisePresentation(AISObjectPtr thePrs) + { + // if this is an edge + if (thePrs->getShapeType() == 6) + thePrs->setWidth(3); + // if this is a vertex + else if (thePrs->getShapeType() == 7) + thePrs->setPointMarker(6, 2.); + } /// Returns the sketch of this feature SketchPlugin_Sketch* sketch(); -- 2.39.2