Skip to content

Commit

Permalink
fix python get value rotation are a Long .
Browse files Browse the repository at this point in the history
remove old check python >=3.5 -> freecad require python 3.6
  • Loading branch information
mosfet80 authored and wwmayer committed Nov 16, 2023
1 parent 68728f7 commit c25500f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion src/Base/RotationPyImp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 {};
Expand Down
2 changes: 0 additions & 2 deletions src/Tools/generateTemplates/templateClassPyExport.py
Original file line number Diff line number Diff line change
Expand Up @@ -465,10 +465,8 @@ class @self.export.Namespace.replace("::","_")@Export @self.export.Name@ : publi
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
} };
-
Expand Down

0 comments on commit c25500f

Please sign in to comment.