Merge branch 'blender-v2.93-release'
This commit is contained in:
commit
ff35332610
|
@ -52,12 +52,16 @@ static const EnumPropertyItem *geometry_attribute_domain_itemf(bContext *C,
|
|||
PropertyRNA *UNUSED(prop),
|
||||
bool *r_free)
|
||||
{
|
||||
Object *ob = ED_object_context(C);
|
||||
if (ob != NULL) {
|
||||
return rna_enum_attribute_domain_itemf(ob->data, r_free);
|
||||
if (C == NULL) {
|
||||
return DummyRNA_NULL_items;
|
||||
}
|
||||
|
||||
return DummyRNA_NULL_items;
|
||||
Object *ob = ED_object_context(C);
|
||||
if (ob == NULL) {
|
||||
return DummyRNA_NULL_items;
|
||||
}
|
||||
|
||||
return rna_enum_attribute_domain_itemf(ob->data, r_free);
|
||||
}
|
||||
|
||||
static int geometry_attribute_add_exec(bContext *C, wmOperator *op)
|
||||
|
|
|
@ -3985,6 +3985,10 @@ static const EnumPropertyItem *vgroup_itemf(bContext *C,
|
|||
PropertyRNA *UNUSED(prop),
|
||||
bool *r_free)
|
||||
{
|
||||
if (C == NULL) {
|
||||
return DummyRNA_NULL_items;
|
||||
}
|
||||
|
||||
Object *ob = ED_object_context(C);
|
||||
EnumPropertyItem tmp = {0, "", 0, "", ""};
|
||||
EnumPropertyItem *item = NULL;
|
||||
|
|
Loading…
Reference in New Issue