Sketcher: Replace C cast

This commit is contained in:
marioalexis
2022-06-17 12:13:54 -03:00
committed by Chris Hennes
parent 03cba01da4
commit 734dfc47c6
7 changed files with 45 additions and 45 deletions

View File

@@ -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 ++++++++++++++++++++++++++++++++++++++++++++++++