Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/transform/transform_gizmo_3d.c
| Show First 20 Lines • Show All 698 Lines • ▼ Show 20 Lines | if (is_gp_edit) { | ||||
| float diff_mat[4][4]; | float diff_mat[4][4]; | ||||
| const bool use_mat_local = true; | const bool use_mat_local = true; | ||||
| LISTBASE_FOREACH (bGPDlayer *, gpl, &gpd->layers) { | LISTBASE_FOREACH (bGPDlayer *, gpl, &gpd->layers) { | ||||
| /* only editable and visible layers are considered */ | /* only editable and visible layers are considered */ | ||||
| if (BKE_gpencil_layer_is_editable(gpl) && (gpl->actframe != NULL)) { | if (BKE_gpencil_layer_is_editable(gpl) && (gpl->actframe != NULL)) { | ||||
| /* calculate difference matrix */ | /* calculate difference matrix */ | ||||
| BKE_gpencil_parent_matrix_get(depsgraph, ob, gpl, diff_mat); | BKE_gpencil_layer_transform_matrix_get(depsgraph, ob, gpl, diff_mat); | ||||
| LISTBASE_FOREACH (bGPDstroke *, gps, &gpl->actframe->strokes) { | LISTBASE_FOREACH (bGPDstroke *, gps, &gpl->actframe->strokes) { | ||||
| /* skip strokes that are invalid for current view */ | /* skip strokes that are invalid for current view */ | ||||
| if (ED_gpencil_stroke_can_use(C, gps) == false) { | if (ED_gpencil_stroke_can_use(C, gps) == false) { | ||||
| continue; | continue; | ||||
| } | } | ||||
| if (is_curve_edit) { | if (is_curve_edit) { | ||||
| ▲ Show 20 Lines • Show All 1,770 Lines • Show Last 20 Lines | |||||