+// Copyright (C) 2014-20xx CEA/DEN, EDF R&D -->
+
// File: SketchPlugin_ConstraintRigid.cpp
// Created: 13 Oct 2014
// Author: Artem ZHIDKOV
#include "SketchPlugin_ConstraintRigid.h"
+#include "SketchPlugin_ConstraintParallel.h"
#include <ModelAPI_ResultConstruction.h>
#include <Config_PropManager.h>
if (!aConst)
return thePrevious;
+
+ std::shared_ptr<SketchPlugin_Feature> aSketchFea =
+ std::dynamic_pointer_cast<SketchPlugin_Feature>(ModelAPI_Feature::feature(aConst));
+ if (aSketchFea.get() != NULL) {
+ if (aSketchFea->isExternal())
+ return thePrevious;
+ }
aShape = aConst->shape();
}
else {
anAIS->createFixed(aShape, aPlane);
// Set color from preferences
- std::vector<int> aRGB = Config_PropManager::color("Visualization", "fixing_color",
- FIXING_COLOR);
+ std::vector<int> aRGB = Config_PropManager::color("Visualization", "sketch_parallel_color",
+ SKETCH_CONSTRAINT_COLOR);
+
anAIS->setColor(aRGB[0], aRGB[1], aRGB[2]);
return anAIS;