From 5b64b41c61abc1bcff07d8d7970912710fe83254 Mon Sep 17 00:00:00 2001 From: azv Date: Wed, 8 Dec 2021 14:30:06 +0300 Subject: [PATCH] Fix crash on export to CAD format a feature but not its result --- src/ExchangePlugin/ExchangePlugin_ExportFeature.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ExchangePlugin/ExchangePlugin_ExportFeature.cpp b/src/ExchangePlugin/ExchangePlugin_ExportFeature.cpp index 1da829a6f..32d52205c 100644 --- a/src/ExchangePlugin/ExchangePlugin_ExportFeature.cpp +++ b/src/ExchangePlugin/ExchangePlugin_ExportFeature.cpp @@ -211,7 +211,7 @@ void ExchangePlugin_ExportFeature::exportFile(const std::string& theFileName, /// do not export pictures ResultPtr aBodyContext = std::dynamic_pointer_cast(anAttrSelection->context()); - if (aBodyContext->hasTexture()) + if (aBodyContext.get() && aBodyContext->hasTexture()) continue; std::shared_ptr aCurShape = anAttrSelection->value(); -- 2.39.2