Simplify repr() function
This commit is contained in:
@@ -130,11 +130,10 @@ View3DInventorViewerPy::~View3DInventorViewerPy()
|
||||
|
||||
Py::Object View3DInventorViewerPy::repr()
|
||||
{
|
||||
std::ostringstream s_out;
|
||||
if (!_viewer)
|
||||
throw Py::RuntimeError("Cannot print representation of deleted object");
|
||||
s_out << "View3DInventorViewer";
|
||||
return Py::String(s_out.str());
|
||||
|
||||
return Py::String("View3DInventorViewer");
|
||||
}
|
||||
|
||||
View3DInventorViewerPy::method_varargs_handler View3DInventorViewerPy::pycxx_handler = nullptr;
|
||||
@@ -635,4 +634,4 @@ Py::Object View3DInventorViewerPy::getNavigationStyle(const Py::Tuple& args)
|
||||
return Py::asObject(navigationStyle->getPyObject());
|
||||
}
|
||||
return Py::None();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user