GP: Hide the origin when enable origins

This commit is contained in:
Antonioya
2018-10-03 20:30:13 +02:00
parent 5f4d2be735
commit 5a4ff142de

View File

@@ -2374,6 +2374,13 @@ static void DRW_shgroup_object_center(OBJECT_StorageList *stl, Object *ob, ViewL
return;
}
/* grease pencil in draw mode hide always */
if ((OBACT(view_layer)) &&
(OBACT(view_layer)->mode == OB_MODE_GPENCIL_PAINT))
{
return;
}
const bool is_library = ob->id.us > 1 || ID_IS_LINKED(ob);
DRWShadingGroup *shgroup;