Fix missing owner_id values from 919558854d
This prevented dynamic enum callbacks being called.
This commit is contained in:
parent
fa4b2d25cb
commit
0bf630493f
|
@ -1621,7 +1621,7 @@ int WM_operator_name_call_with_properties(struct bContext *C,
|
|||
{
|
||||
PointerRNA props_ptr;
|
||||
wmOperatorType *ot = WM_operatortype_find(opstring, false);
|
||||
RNA_pointer_create(NULL, ot->srna, properties, &props_ptr);
|
||||
RNA_pointer_create(G_MAIN->wm.first, ot->srna, properties, &props_ptr);
|
||||
return WM_operator_name_call_ptr(C, ot, context, &props_ptr);
|
||||
}
|
||||
|
||||
|
|
|
@ -252,7 +252,7 @@ void WM_operatortype_props_advanced_end(wmOperatorType *ot)
|
|||
return;
|
||||
}
|
||||
|
||||
RNA_pointer_create(NULL, ot->srna, NULL, &struct_ptr);
|
||||
WM_operator_properties_create_ptr(&struct_ptr, ot);
|
||||
|
||||
RNA_STRUCT_BEGIN (&struct_ptr, prop) {
|
||||
counter++;
|
||||
|
|
|
@ -1207,7 +1207,7 @@ IDProperty *WM_operator_last_properties_ensure_idprops(wmOperatorType *ot)
|
|||
void WM_operator_last_properties_ensure(wmOperatorType *ot, PointerRNA *ptr)
|
||||
{
|
||||
IDProperty *props = WM_operator_last_properties_ensure_idprops(ot);
|
||||
RNA_pointer_create(NULL, ot->srna, props, ptr);
|
||||
RNA_pointer_create(G_MAIN->wm.first, ot->srna, props, ptr);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue