]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Issue #1648: Dump Python in the High Level Parameterized Geometry API
authordbv <dbv@opencascade.com>
Thu, 11 Aug 2016 10:32:57 +0000 (13:32 +0300)
committerdbv <dbv@opencascade.com>
Thu, 11 Aug 2016 10:33:14 +0000 (13:33 +0300)
Fix for result taking.

src/ModelHighAPI/ModelHighAPI_Interface.cpp

index a9af48585c157315d9e037715c63a41162e4f4ba..3d351650bb60e978d73b914c4f5ac5de593304b8 100644 (file)
@@ -57,6 +57,8 @@ std::list<ModelHighAPI_Selection> ModelHighAPI_Interface::result() const
 
 std::shared_ptr<ModelAPI_Result> ModelHighAPI_Interface::defaultResult() const
 {
+  const_cast<ModelHighAPI_Interface*>(this)->execute();
+
   return feature()->lastResult();
 }