From: rraphael Date: Mon, 14 Dec 2020 10:40:35 +0000 (+0100) Subject: import image: add texture to transformations X-Git-Tag: V9_7_0a1~13^2~15 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=457c98578c719f2401a93a70a90cb6e59189209d;p=modules%2Fshaper.git import image: add texture to transformations --- diff --git a/src/PartSet/PartSet_Module.cpp b/src/PartSet/PartSet_Module.cpp index 8f79985da..5b8075e7a 100644 --- a/src/PartSet/PartSet_Module.cpp +++ b/src/PartSet/PartSet_Module.cpp @@ -1420,7 +1420,6 @@ double getResultTransparency(const ResultPtr& theResult) return aTransparency; } - //****************************************************** void PartSet_Module::setTexture(const std::string & theTextureFile, const AISObjectPtr& thePrs) { @@ -1456,11 +1455,8 @@ void PartSet_Module::setTexture(const std::string & theTextureFile, const AISObj anAISShape->SetDisplayMode(AIS_Shaded); } } - } - - //****************************************************** void PartSet_Module::customizePresentation(const ObjectPtr& theObject, const AISObjectPtr& thePrs) const @@ -1490,8 +1486,7 @@ void PartSet_Module::customizePresentation(const ObjectPtr& theObject, thePrs->setTransparency(getResultTransparency(aResult)); /// set texture parameters - if(aResult->hasTextureFile()) - { + if(aResult->hasTextureFile()){ setTexture(aResult->getTextureFile(), thePrs); } }