2.5
Fix: popup menus were not freeing operators. Made a new Popup menu call for this case: uiPupmenuOperator(C, maxrow, op, propname, menustr); It will set enum "propname" to the menu item and call operator, register it optionally and free it. Use it in "invoke" calls. Next: automatic menu generating for enum properties!
This commit is contained in:
@@ -110,7 +110,7 @@ static PyObject * pyop_func_call(BPy_OperatorFunc * self, PyObject *args, PyObje
|
||||
}
|
||||
}
|
||||
|
||||
WM_operator_call(self->C, self->name, WM_OP_DEFAULT, properties);
|
||||
WM_operator_name_call(self->C, self->name, WM_OP_DEFAULT, properties);
|
||||
|
||||
if (properties) {
|
||||
IDP_FreeProperty(properties);
|
||||
|
Reference in New Issue
Block a user