From e366a3cfabb68c03381296bb597adce38786bcf2 Mon Sep 17 00:00:00 2001 From: Shai Seger Date: Thu, 19 Oct 2017 23:40:27 +0300 Subject: [PATCH] Finally! the PathSim object is visible at freecad --- .../PathSimulator/App/AppPathSimulator.cpp | 2 +- .../Path/PathSimulator/App/PathSimPyImp.cpp | 21 +++++++++++++++++++ 2 files changed, 22 insertions(+), 1 deletion(-) diff --git a/src/Mod/Path/PathSimulator/App/AppPathSimulator.cpp b/src/Mod/Path/PathSimulator/App/AppPathSimulator.cpp index c6d90d1603..60cc760025 100644 --- a/src/Mod/Path/PathSimulator/App/AppPathSimulator.cpp +++ b/src/Mod/Path/PathSimulator/App/AppPathSimulator.cpp @@ -76,7 +76,6 @@ PyMOD_INIT_FUNC(PathSimulator) // PyObject* mod = PathSimulator::initModule(); Base::Console().Log("Loading PathSimulator module.... done\n"); - PyMOD_Return(mod); // Add Types to module Base::Interpreter().addType(&PathSimulator::PathSimPy::Type, mod, "PathSim"); @@ -86,4 +85,5 @@ PyMOD_INIT_FUNC(PathSimulator) // This function is responsible for adding inherited slots from a type's base class. PathSimulator::PathSim::init(); + PyMOD_Return(mod); } diff --git a/src/Mod/Path/PathSimulator/App/PathSimPyImp.cpp b/src/Mod/Path/PathSimulator/App/PathSimPyImp.cpp index 915b7ef82f..c5767ba70a 100644 --- a/src/Mod/Path/PathSimulator/App/PathSimPyImp.cpp +++ b/src/Mod/Path/PathSimulator/App/PathSimPyImp.cpp @@ -1,3 +1,24 @@ +/*************************************************************************** +* Copyright (c) 2017 Shai Seger * +* * +* This file is part of the FreeCAD CAx development system. * +* * +* This library is free software; you can redistribute it and/or * +* modify it under the terms of the GNU Library General Public * +* License as published by the Free Software Foundation; either * +* version 2 of the License, or (at your option) any later version. * +* * +* This library is distributed in the hope that it will be useful, * +* but WITHOUT ANY WARRANTY; without even the implied warranty of * +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * +* GNU Library General Public License for more details. * +* * +* You should have received a copy of the GNU Library General Public * +* License along with this library; see the file COPYING.LIB. If not, * +* write to the Free Software Foundation, Inc., 59 Temple Place, * +* Suite 330, Boston, MA 02111-1307, USA * +* * +***************************************************************************/ #include "PreCompiled.h"