Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/gpencil/gpencil_brush.c
| Show First 20 Lines • Show All 200 Lines • ▼ Show 20 Lines | switch (axis) { | ||||
| { | { | ||||
| /* compute a plane with cursor normal and position of the point | /* compute a plane with cursor normal and position of the point | ||||
| before do the sculpt */ | before do the sculpt */ | ||||
| const float scale[3] = { 1.0f, 1.0f, 1.0f }; | const float scale[3] = { 1.0f, 1.0f, 1.0f }; | ||||
| float plane_normal[3] = { 0.0f, 0.0f, 1.0f }; | float plane_normal[3] = { 0.0f, 0.0f, 1.0f }; | ||||
| float plane[4]; | float plane[4]; | ||||
| float mat[4][4]; | float mat[4][4]; | ||||
| float r_close[3]; | float r_close[3]; | ||||
| loc_eul_size_to_mat4(mat, | loc_eul_size_to_mat4(mat, | ||||
| cursor->location, | cursor->location, | ||||
| cursor->rotation_euler, | cursor->rotation_euler, | ||||
| scale); | scale); | ||||
| mul_mat3_m4_v3(mat, plane_normal); | mul_mat3_m4_v3(mat, plane_normal); | ||||
| plane_from_point_normal_v3(plane, save_pt, plane_normal); | plane_from_point_normal_v3(plane, save_pt, plane_normal); | ||||
| ▲ Show 20 Lines • Show All 1,956 Lines • Show Last 20 Lines | |||||