Salome HOME
projects
/
modules
/
shaper.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix for the issue #2753 : error when dump/load script
[modules/shaper.git]
/
src
/
FeaturesPlugin
/
FeaturesPlugin_Validators.cpp
diff --git
a/src/FeaturesPlugin/FeaturesPlugin_Validators.cpp
b/src/FeaturesPlugin/FeaturesPlugin_Validators.cpp
index aa78551d6b665e30f0dcf7a03d678694efa7bb1a..ccb43b40643951035c1df9b12e70711e5bcb9576 100644
(file)
--- a/
src/FeaturesPlugin/FeaturesPlugin_Validators.cpp
+++ b/
src/FeaturesPlugin/FeaturesPlugin_Validators.cpp
@@
-547,6
+547,11
@@
bool FeaturesPlugin_ValidatorExtrusionDir::isValid(
if(aContext.get()) {
aDirShape = aContext->shape();
}
+
+ if (aDirShape.get() && aDirShape->isCompound()) {
+ GeomAPI_ShapeIterator anIt(aDirShape);
+ aDirShape = anIt.current();
+ }
}
}