std::list<GeomShapePtr> aShapes;
for (int i = 0, aSize = aSelectionListAttr->size(); i < aSize; ++i) {
AttributeSelectionPtr anAttrSelection = aSelectionListAttr->value(i);
+
+ /// do not export pictures
+ ResultPtr aBodyContext =
+ std::dynamic_pointer_cast<ModelAPI_Result>(anAttrSelection->context());
+ if(aBodyContext->hasTextureFile())
+ continue;
+
std::shared_ptr<GeomAPI_Shape> aCurShape = anAttrSelection->value();
if (aCurShape.get() == NULL)
aCurShape = anAttrSelection->context()->shape();
AttributeSelectionPtr anAttr = aSelection->value(a);
ResultPtr aBodyContext =
std::dynamic_pointer_cast<ModelAPI_Result>(anAttr->context());
- if (aBodyContext.get() && !aBodyContext->isDisabled() && aBodyContext->shape().get()) {
+ if (aBodyContext.get() && !aBodyContext->isDisabled() && aBodyContext->shape().get()
+ /// do not export pictures
+ && !aBodyContext->hasTextureFile()) {
aResults.push_back(aBodyContext);
GeomShapePtr aShape = anAttr->value();
if (!aShape.get())
<translation>Le nom du fichier est vide.</translation>
</message>
</context>
+ <context>
+ <name>ImportImageMacro</name>
+ <message>
+ <source>Import</source>
+ <translation>Importer</translation>
+ </message>
+ </context>
+ <context>
+ <name>ImportImageMacro:file_path</name>
+ <message>
+ <source>Import image file</source>
+ <translation>Fichier de l'image à importer</translation>
+ </message>
+ </context>
+ <context>
+ <name>ImportImageMacro:target_part</name>
+ <message>
+ <source>Import to</source>
+ <translation>Importer vers</translation>
+ </message>
+ </context>
<!-- Export part -->
<context>