App: use Python number protocol in Expression
This adds support to do mul/div with matrix and vector, as well as Python formated string with operator %.
This commit is contained in:
@@ -705,7 +705,7 @@ void Sheet::updateProperty(CellAddress key)
|
||||
Base::PyGILStateLocker lock;
|
||||
auto py_expr = freecad_dynamic_cast<PyObjectExpression>(output.get());
|
||||
if(py_expr)
|
||||
setObjectProperty(key, py_expr->getPyObject());
|
||||
setObjectProperty(key, py_expr->getPyValue());
|
||||
else
|
||||
setObjectProperty(key, Py::Object());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user