fix python get value rotation are a Long .

remove old check python >=3.5 -> freecad require python 3.6
This commit is contained in:
mos
2023-11-15 11:55:12 +01:00
committed by wwmayer
parent bd5cdc3bc1
commit 66070c662f
2 changed files with 1 additions and 3 deletions

View File

@@ -635,7 +635,7 @@ PyObject* RotationPy::number_power_handler(PyObject* self, PyObject* other, PyOb
}
Rotation a = static_cast<RotationPy*>(self)->value();
long b = Py::Int(other);
long b = Py::Long(other);
Vector3d axis;
double rfAngle {};

View File

@@ -465,10 +465,8 @@ PyNumberMethods @self.export.Name@::Number[] = { {
nullptr, /*nb_inplace_floor_divide*/
nullptr, /*nb_inplace_true_divide*/
nullptr /*nb_index*/
#if PY_VERSION_HEX >= 0x03050000
,nullptr /*nb_matrix_multiply*/
,nullptr /*nb_inplace_matrix_multiply*/
#endif
} };
-