Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/transform/transform.c
| Show First 20 Lines • Show All 1,713 Lines • ▼ Show 20 Lines | if (t->helpline != HLP_NONE) { | ||||
| if (t->flag & T_EDIT) { | if (t->flag & T_EDIT) { | ||||
| Object *ob = t->obedit; | Object *ob = t->obedit; | ||||
| if (ob) mul_m4_v3(ob->obmat, vecrot); | if (ob) mul_m4_v3(ob->obmat, vecrot); | ||||
| } | } | ||||
| else if (t->flag & T_POSE) { | else if (t->flag & T_POSE) { | ||||
| Object *ob = t->poseobj; | Object *ob = t->poseobj; | ||||
| if (ob) mul_m4_v3(ob->obmat, vecrot); | if (ob) mul_m4_v3(ob->obmat, vecrot); | ||||
| } | } | ||||
| else if ((t->flag & T_POINTS) && (t->options & CTX_GPENCIL_STROKES)) { | |||||
| Object *ob = t->obedit; | |||||
| if ((ob) && (ob->type == OB_GPENCIL)) { | |||||
| mul_m4_v3(ob->obmat, vecrot); | |||||
| } | |||||
| } | |||||
| projectFloatViewEx(t, vecrot, cent, V3D_PROJ_TEST_CLIP_ZERO); | projectFloatViewEx(t, vecrot, cent, V3D_PROJ_TEST_CLIP_ZERO); | ||||
| gpuPushMatrix(); | gpuPushMatrix(); | ||||
| /* Dashed lines first. */ | /* Dashed lines first. */ | ||||
| if (ELEM(t->helpline, HLP_SPRING, HLP_ANGLE)) { | if (ELEM(t->helpline, HLP_SPRING, HLP_ANGLE)) { | ||||
| const uint shdr_pos = GWN_vertformat_attr_add(immVertexFormat(), "pos", GWN_COMP_F32, 2, GWN_FETCH_FLOAT); | const uint shdr_pos = GWN_vertformat_attr_add(immVertexFormat(), "pos", GWN_COMP_F32, 2, GWN_FETCH_FLOAT); | ||||
| ▲ Show 20 Lines • Show All 6,960 Lines • Show Last 20 Lines | |||||