diff options
Diffstat (limited to 'source/blender/editors/transform/transform.c')
-rw-r--r-- | source/blender/editors/transform/transform.c | 27 |
1 files changed, 1 insertions, 26 deletions
diff --git a/source/blender/editors/transform/transform.c b/source/blender/editors/transform/transform.c index d05fc058184..f27887a2aa2 100644 --- a/source/blender/editors/transform/transform.c +++ b/source/blender/editors/transform/transform.c @@ -1776,32 +1776,7 @@ static void drawHelpline(bContext *C, int x, int y, void *customdata) (float)t->mval[1], }; - /* grease pencil only can edit one object at time because GP has - * multiframe edition that replaces multiobject edition. - * If multiobject edition is added, maybe this code will need - * an update - */ - if ((t->flag & T_POINTS) && (t->options & CTX_GPENCIL_STROKES) && - (t->around != V3D_AROUND_ACTIVE)) - { - Object *ob = CTX_data_active_object(C); - if ((ob) && (ob->type == OB_GPENCIL)) { - FOREACH_TRANS_DATA_CONTAINER(t, tc) { - float vecrot[3]; - copy_v3_v3(vecrot, t->center_global); - mul_m4_v3(ob->obmat, vecrot); - projectFloatViewEx(t, vecrot, cent, V3D_PROJ_TEST_CLIP_ZERO); - } - } - else { - /* normally, never must be used */ - projectFloatViewEx(t, t->center_global, cent, V3D_PROJ_TEST_CLIP_ZERO); - } - } - else { - projectFloatViewEx(t, t->center_global, cent, V3D_PROJ_TEST_CLIP_ZERO); - } - + projectFloatViewEx(t, t->center_global, cent, V3D_PROJ_TEST_CLIP_ZERO); /* Offset the values for the area region. */ const float offset[2] = { t->ar->winrct.xmin, |