Start: set specific zoom level for new BIM projects (#20271)
* Gui: allow viewDefaultOrientation function to accept the None value, as per the docstring * Start, BIM: set specific zoom level for new BIM projects
This commit is contained in:
@@ -553,7 +553,7 @@ Py::Object View3DInventorPy::viewDefaultOrientation(const Py::Tuple& args)
|
||||
{
|
||||
char* view = nullptr;
|
||||
double scale = -1.0;
|
||||
if (!PyArg_ParseTuple(args.ptr(), "|sd", &view, &scale))
|
||||
if (!PyArg_ParseTuple(args.ptr(), "|zd", &view, &scale))
|
||||
throw Py::Exception();
|
||||
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user