Fix missing owner_id values from 919558854d

This prevented dynamic enum callbacks being called.
This commit is contained in:
Campbell Barton 2021-04-17 01:20:02 +10:00
parent fa4b2d25cb
commit 0bf630493f
3 changed files with 3 additions and 3 deletions

View File

@ -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);
}

View File

@ -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++;

View File

@ -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);
}
/**