This check is to round with a circle the outliner icon when is in Edit mode
Details
Details
Diff Detail
Diff Detail
Event Timeline
| source/blender/editors/space_outliner/outliner_draw.c | ||
|---|---|---|
| 120–125 | I think this can be simplified to: if (id_type == ID_GD && obact && obact->data == id) {
bGPdata *gpd = (bGPdata *)id;
return GPENCIL_EDIT_MODE(gpd);
}Comparing name to check if it's the same datablock is wrong in case there are linked datablocks with the same name, and it's simpler to compare pointers anyway. | |