From 5a4b4da59f6550e5bf985c1747055643be33645c Mon Sep 17 00:00:00 2001 From: jriegel Date: Wed, 15 Jan 2014 19:23:56 +0100 Subject: [PATCH] Fix for Python binding in FEM result objects --- src/Mod/Fem/App/FemResultValue.cpp | 2 +- src/Mod/Fem/App/FemResultVector.cpp | 2 +- src/Mod/Fem/Gui/AppFemGui.cpp | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Mod/Fem/App/FemResultValue.cpp b/src/Mod/Fem/App/FemResultValue.cpp index b882fe676..24d4a598b 100644 --- a/src/Mod/Fem/App/FemResultValue.cpp +++ b/src/Mod/Fem/App/FemResultValue.cpp @@ -64,7 +64,7 @@ namespace App { /// @cond DOXERR PROPERTY_SOURCE_TEMPLATE(Fem::FemResultValuePython, Fem::FemResultValue) template<> const char* Fem::FemResultValuePython::getViewProviderName(void) const { - return "FemGui::ViewProviderFemResultValuePython"; + return "FemGui::ViewProviderResultPython"; } /// @endcond diff --git a/src/Mod/Fem/App/FemResultVector.cpp b/src/Mod/Fem/App/FemResultVector.cpp index 1196ecbae..680aa0172 100644 --- a/src/Mod/Fem/App/FemResultVector.cpp +++ b/src/Mod/Fem/App/FemResultVector.cpp @@ -64,7 +64,7 @@ namespace App { /// @cond DOXERR PROPERTY_SOURCE_TEMPLATE(Fem::FemResultVectorPython, Fem::FemResultVector) template<> const char* Fem::FemResultVectorPython::getViewProviderName(void) const { - return "FemGui::ViewProviderFemResultVectorPython"; + return "FemGui::ViewProviderResultPython"; } /// @endcond diff --git a/src/Mod/Fem/Gui/AppFemGui.cpp b/src/Mod/Fem/Gui/AppFemGui.cpp index 1edd9bcb5..45518d124 100755 --- a/src/Mod/Fem/Gui/AppFemGui.cpp +++ b/src/Mod/Fem/Gui/AppFemGui.cpp @@ -96,6 +96,7 @@ void FemGuiExport initFemGui() FemGui::ViewProviderFemConstraintGear ::init(); FemGui::ViewProviderFemConstraintPulley ::init(); FemGui::ViewProviderResult ::init(); + FemGui::ViewProviderResultPython ::init(); Base::Interpreter().loadModule("MechanicalAnalysis"); Base::Interpreter().loadModule("MechanicalMaterial");