Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/transform/transform.c
| Show First 20 Lines • Show All 71 Lines • ▼ Show 20 Lines | |||||
| // #define USE_NUM_NO_ZERO | // #define USE_NUM_NO_ZERO | ||||
| static void drawTransformApply(const struct bContext *C, ARegion *region, void *arg); | static void drawTransformApply(const struct bContext *C, ARegion *region, void *arg); | ||||
| static void initSnapSpatial(TransInfo *t, float r_snap[3]); | static void initSnapSpatial(TransInfo *t, float r_snap[3]); | ||||
| bool transdata_check_local_islands(TransInfo *t, short around) | bool transdata_check_local_islands(TransInfo *t, short around) | ||||
| { | { | ||||
| return ((around == V3D_AROUND_LOCAL_ORIGINS) && ((ELEM(t->obedit_type, OB_MESH)))); | return ((around == V3D_AROUND_LOCAL_ORIGINS) && ((ELEM(t->obedit_type, OB_MESH, OB_GPENCIL)))); | ||||
| } | } | ||||
| /* ************************** SPACE DEPENDENT CODE **************************** */ | /* ************************** SPACE DEPENDENT CODE **************************** */ | ||||
| void setTransformViewMatrices(TransInfo *t) | void setTransformViewMatrices(TransInfo *t) | ||||
| { | { | ||||
| if (t->spacetype == SPACE_VIEW3D && t->region && t->region->regiontype == RGN_TYPE_WINDOW) { | if (t->spacetype == SPACE_VIEW3D && t->region && t->region->regiontype == RGN_TYPE_WINDOW) { | ||||
| RegionView3D *rv3d = t->region->regiondata; | RegionView3D *rv3d = t->region->regiondata; | ||||
| ▲ Show 20 Lines • Show All 2,235 Lines • Show Last 20 Lines | |||||