Sketcher: Replace C cast
This commit is contained in:
committed by
Chris Hennes
parent
03cba01da4
commit
734dfc47c6
@@ -160,7 +160,7 @@ PyObject* SketchPy::movePoint(PyObject *args)
|
||||
return nullptr;
|
||||
Base::Vector3d* toPoint = static_cast<Base::VectorPy*>(pcObj)->getVectorPtr();
|
||||
|
||||
return Py::new_reference_to(Py::Long(getSketchPtr()->movePoint(index1,(Sketcher::PointPos)index2,*toPoint,(relative>0))));
|
||||
return Py::new_reference_to(Py::Long(getSketchPtr()->movePoint(index1,static_cast<Sketcher::PointPos>(index2),*toPoint,(relative>0))));
|
||||
}
|
||||
|
||||
// +++ attributes implementer ++++++++++++++++++++++++++++++++++++++++++++++++
|
||||
|
||||
Reference in New Issue
Block a user