fixes #0003027: if type(App.Vector) in originSketch.Geometry: newSketch.Geometry = originSketch.Geometry Raises types in list must be

This commit is contained in:
wmayer
2017-11-26 22:55:26 +01:00
parent d72791e8d0
commit df427de3ee

View File

@@ -119,6 +119,7 @@
#include <Mod/Part/App/ConePy.h>
#include <Mod/Part/App/CylinderPy.h>
#include <Mod/Part/App/OffsetSurfacePy.h>
#include <Mod/Part/App/PointPy.h>
#include <Mod/Part/App/PlateSurfacePy.h>
#include <Mod/Part/App/PlanePy.h>
#include <Mod/Part/App/RectangularTrimmedSurfacePy.h>
@@ -341,7 +342,7 @@ void GeomPoint::Restore(Base::XMLReader &reader)
PyObject *GeomPoint::getPyObject(void)
{
return new Base::VectorPy(getPoint());
return new PointPy(new GeomPoint(getPoint()));
}
// -------------------------------------------------