Fix T58335: Grease Pencil Objects in Edit Mode have transform gizmos in wrong location

Original fix P874 with changes from @brecht
This commit is contained in:
Charlie Jolly 2018-12-18 19:18:32 +00:00
parent 74b3b81903
commit 5638db7495
Notes: blender-bot 2023-02-14 04:51:55 +01:00
Referenced by issue #58335, Grease Pencil Objects in Edit Mode have transform gizmos in wrong location
1 changed files with 2 additions and 1 deletions

View File

@ -782,9 +782,10 @@ int ED_transform_calc_gizmo_stats(
if (is_gp_edit) {
float diff_mat[4][4];
const bool use_mat_local = true;
for (bGPDlayer *gpl = gpd->layers.first; gpl; gpl = gpl->next) {
/* only editable and visible layers are considered */
const bool use_mat_local = gpl->parent != NULL;
if (gpencil_layer_is_editable(gpl) && (gpl->actframe != NULL)) {
/* calculate difference matrix */