Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/transform/transform_manipulator_3d.c
| Context not available. | |||||
| const Object *ob_eval = NULL; | const Object *ob_eval = NULL; | ||||
| const Object *obedit_eval = NULL; | const Object *obedit_eval = NULL; | ||||
| bGPdata *gpd = CTX_data_gpencil_data(C); | bGPdata *gpd = CTX_data_gpencil_data(C); | ||||
| const bool is_gp_edit = ((gpd) && (gpd->flag & GP_DATA_STROKE_EDITMODE)); | const bool is_gp_edit = GPENCIL_ANY_MODE(gpd); | ||||
| int a, totsel = 0; | int a, totsel = 0; | ||||
| /* transform widget matrix */ | /* transform widget matrix */ | ||||
| Context not available. | |||||
| /* only editable and visible layers are considered */ | /* only editable and visible layers are considered */ | ||||
| if (gpencil_layer_is_editable(gpl) && (gpl->actframe != NULL)) { | if (gpencil_layer_is_editable(gpl) && (gpl->actframe != NULL)) { | ||||
| /* calculate difference matrix if parent object */ | /* calculate difference matrix */ | ||||
| if (gpl->parent != NULL) { | ED_gpencil_parent_location(ob, gpd, gpl, diff_mat); | ||||
| ED_gpencil_parent_location(gpl, diff_mat); | |||||
| } | |||||
| for (bGPDstroke *gps = gpl->actframe->strokes.first; gps; gps = gps->next) { | for (bGPDstroke *gps = gpl->actframe->strokes.first; gps; gps = gps->next) { | ||||
| /* skip strokes that are invalid for current view */ | /* skip strokes that are invalid for current view */ | ||||
| Context not available. | |||||