LibOverride: Massive edits to 'editable' IDs checks in editors code.
Add new `BKE_id_is_editable` helper in `BKE_lib_id.h`, that supercedes
previous check (simple `ID_IS_LINKED()` macro) for many editing cases.
This allows to also take into account 'system override' (aka
non-editable override) case.
Ref: {T95707}.
This commit is contained in:
@@ -5406,10 +5406,10 @@ static bool particle_edit_toggle_poll(bContext *C)
|
||||
Object *ob = CTX_data_active_object(C);
|
||||
|
||||
if (ob == NULL || ob->type != OB_MESH) {
|
||||
return 0;
|
||||
return false;
|
||||
}
|
||||
if (!ob->data || ID_IS_LINKED(ob->data)) {
|
||||
return 0;
|
||||
if (!ob->data || ID_IS_LINKED(ob->data) || ID_IS_OVERRIDE_LIBRARY(ob->data)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return ED_object_particle_edit_mode_supported(ob);
|
||||
|
||||
Reference in New Issue
Block a user