Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/transform/transform_gizmo_2d.c
| Show First 20 Lines • Show All 677 Lines • ▼ Show 20 Lines | static void gizmo2d_xform_invoke_prepare(const bContext *C, | ||||
| float nw[3] = {min[0], max[1], 0.0f}; | float nw[3] = {min[0], max[1], 0.0f}; | ||||
| float ne[3] = {max[0], max[1], 0.0f}; | float ne[3] = {max[0], max[1], 0.0f}; | ||||
| float sw[3] = {min[0], min[1], 0.0f}; | float sw[3] = {min[0], min[1], 0.0f}; | ||||
| float se[3] = {max[0], min[1], 0.0f}; | float se[3] = {max[0], min[1], 0.0f}; | ||||
| float c[3] = {mid[0], mid[1], 0.0f}; | float c[3] = {mid[0], mid[1], 0.0f}; | ||||
| float orient_matrix[3][3]; | float orient_matrix[3][3]; | ||||
| unit_m3(orient_matrix); | |||||
| ScrArea *area = CTX_wm_area(C); | ScrArea *area = CTX_wm_area(C); | ||||
| if (ggd->rotation != 0.0f && area->spacetype == SPACE_SEQ) { | if (ggd->rotation != 0.0f && area->spacetype == SPACE_SEQ) { | ||||
| float origin[3]; | float origin[3]; | ||||
| Scene *scene = CTX_data_scene(C); | Scene *scene = CTX_data_scene(C); | ||||
| seq_get_strip_pivot_median(scene, origin); | seq_get_strip_pivot_median(scene, origin); | ||||
| /* We need to rotate the cardinal points so they align with the rotated bounding box. */ | /* We need to rotate the cardinal points so they align with the rotated bounding box. */ | ||||
| ▲ Show 20 Lines • Show All 359 Lines • Show Last 20 Lines | |||||