Salome HOME
projects
/
modules
/
shaper.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f67ce3b
)
Fix "unresolved symbol" problem on CentOS
author
azv
<azv@opencascade.com>
Thu, 25 Aug 2016 04:47:54 +0000
(07:47 +0300)
committer
azv
<azv@opencascade.com>
Thu, 25 Aug 2016 04:47:54 +0000
(07:47 +0300)
src/SketchAPI/SketchAPI_SketchEntity.cpp
patch
|
blob
|
history
diff --git
a/src/SketchAPI/SketchAPI_SketchEntity.cpp
b/src/SketchAPI/SketchAPI_SketchEntity.cpp
index 3e5f4f82446cbb63600d70da8e938a6104636b91..f6cfdc17a50c1c7b4bca3dbd783ef4c99c8f8278 100644
(file)
--- a/
src/SketchAPI/SketchAPI_SketchEntity.cpp
+++ b/
src/SketchAPI/SketchAPI_SketchEntity.cpp
@@
-57,7
+57,6
@@
void SketchAPI_SketchEntity::dump(ModelHighAPI_Dumper& theDumper) const
bool SketchAPI_SketchEntity::isCopy() const
{
// check the feature is a copy of another entity
- std::shared_ptr<SketchPlugin_SketchEntity> aSketchEntity =
- std::dynamic_pointer_cast<SketchPlugin_SketchEntity>(feature());
- return aSketchEntity && aSketchEntity->isCopy();
+ AttributeBooleanPtr isCopy = feature()->boolean(SketchPlugin_SketchEntity::COPY_ID());
+ return isCopy.get() && isCopy->value();
}