Base: Standardize on Py::Long type for Python bindings.
This commit is contained in:
@@ -356,7 +356,7 @@ ViewProviderFeaturePythonImp::setEdit(int ModNum)
|
||||
try {
|
||||
if (has__object__) {
|
||||
Py::Tuple args(1);
|
||||
args.setItem(0, Py::Int(ModNum));
|
||||
args.setItem(0, Py::Long(ModNum));
|
||||
Py::Object ret(Base::pyCall(py_setEdit.ptr(),args.ptr()));
|
||||
if (ret.isNone())
|
||||
return NotImplemented;
|
||||
@@ -367,7 +367,7 @@ ViewProviderFeaturePythonImp::setEdit(int ModNum)
|
||||
else {
|
||||
Py::Tuple args(2);
|
||||
args.setItem(0, Py::Object(object->getPyObject(), true));
|
||||
args.setItem(1, Py::Int(ModNum));
|
||||
args.setItem(1, Py::Long(ModNum));
|
||||
Py::Object ret(Base::pyCall(py_setEdit.ptr(),args.ptr()));
|
||||
if (ret.isNone())
|
||||
return NotImplemented;
|
||||
@@ -397,7 +397,7 @@ ViewProviderFeaturePythonImp::unsetEdit(int ModNum)
|
||||
try {
|
||||
if (has__object__) {
|
||||
Py::Tuple args(1);
|
||||
args.setItem(0, Py::Int(ModNum));
|
||||
args.setItem(0, Py::Long(ModNum));
|
||||
Py::Object ret(Base::pyCall(py_unsetEdit.ptr(),args.ptr()));
|
||||
if (ret.isNone())
|
||||
return NotImplemented;
|
||||
@@ -408,7 +408,7 @@ ViewProviderFeaturePythonImp::unsetEdit(int ModNum)
|
||||
else {
|
||||
Py::Tuple args(2);
|
||||
args.setItem(0, Py::Object(object->getPyObject(), true));
|
||||
args.setItem(1, Py::Int(ModNum));
|
||||
args.setItem(1, Py::Long(ModNum));
|
||||
Py::Object ret(Base::pyCall(py_unsetEdit.ptr(),args.ptr()));
|
||||
if (ret.isNone())
|
||||
return NotImplemented;
|
||||
@@ -439,7 +439,7 @@ ViewProviderFeaturePythonImp::setEditViewer(View3DInventorViewer *viewer, int Mo
|
||||
Py::Tuple args(3);
|
||||
args.setItem(0, Py::Object(object->getPyObject(),true));
|
||||
args.setItem(1, Py::Object(viewer->getPyObject(),true));
|
||||
args.setItem(2, Py::Int(ModNum));
|
||||
args.setItem(2, Py::Long(ModNum));
|
||||
Py::Object ret(Base::pyCall(py_setEditViewer.ptr(),args.ptr()));
|
||||
return ret.isTrue()?Accepted:Rejected;
|
||||
}
|
||||
@@ -681,7 +681,7 @@ void ViewProviderFeaturePythonImp::finishRestoring()
|
||||
Py::Object vp = Proxy.getValue();
|
||||
if (vp.isNone()) {
|
||||
object->show();
|
||||
Proxy.setValue(Py::Int(1));
|
||||
Proxy.setValue(Py::Long(1));
|
||||
} else {
|
||||
_FC_PY_CALL_CHECK(finishRestoring,return);
|
||||
Base::pyCall(py_finishRestoring.ptr());
|
||||
|
||||
Reference in New Issue
Block a user