From: mpv Date: Mon, 30 May 2016 08:06:35 +0000 (+0300) Subject: Fix for the issue #1504 : parameter in Part may refer to any parameter in PartSet X-Git-Tag: V_2.3.1~35 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=4b617d3f22cc8851b0188e6a6f7c42df3dcaf69c;p=modules%2Fshaper.git Fix for the issue #1504 : parameter in Part may refer to any parameter in PartSet --- diff --git a/src/ModelAPI/ModelAPI_Tools.cpp b/src/ModelAPI/ModelAPI_Tools.cpp index 1270db2ec..922bad719 100755 --- a/src/ModelAPI/ModelAPI_Tools.cpp +++ b/src/ModelAPI/ModelAPI_Tools.cpp @@ -159,14 +159,9 @@ bool findVariable(FeaturePtr theSearcher, const std::string& theName, double& ou return true; DocumentPtr aRootDocument = aSession->moduleDocument(); if (aDocument != aRootDocument) { - ResultPtr aPartResult = findPartResult(aRootDocument, aDocument); - if (aPartResult.get()) { - FeaturePtr aPartFeature; - if (theSearcher.get()) // only if the relative search is needed - aPartFeature = aRootDocument->feature(aPartResult); - if (findVariable(aRootDocument, aPartFeature, theName, outValue, theParam)) - return true; - } + // any parameters in PartSet is okindependently on the Part position (issu #1504) + if (findVariable(aRootDocument, FeaturePtr(), theName, outValue, theParam)) + return true; } return false; }