File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ Size=1441,1038
56
56
Collapsed =0
57
57
58
58
[Docking] [Data]
59
- DockSpace ID =0x3BC79352 Window =0x4647B76E Pos =853,537 Size =1920,1054 Split =X Selected =0x13926F0B
59
+ DockSpace ID =0x3BC79352 Window =0x4647B76E Pos =87,147 Size =1920,1054 Split =X Selected =0x13926F0B
60
60
DockNode ID =0x00000003 Parent =0x3BC79352 SizeRef =1388,527 Split =Y Selected =0x13926F0B
61
61
DockNode ID =0x00000005 Parent =0x00000003 SizeRef =1387,772 CentralNode =1 Selected =0x13926F0B
62
62
DockNode ID =0x00000006 Parent =0x00000003 SizeRef =1387,280 Selected =0xBF096F38
Original file line number Diff line number Diff line change @@ -144,7 +144,8 @@ class Transform3D {
144
144
glm::vec2 arrow (model_view_projection * axis);
145
145
arrow = glm::normalize (arrow);
146
146
float delta_transformation = glm::dot (arrow, transform_vector);
147
- rendering->last_selected_object ->rotation *= glm::angleAxis (delta_transformation * VELOCITY_ROTATION, glm::vec3 (axis));
147
+ glm::vec3 rotated_axis = rendering->last_selected_object ->rotation * glm::vec3 (axis);
148
+ rendering->last_selected_object ->rotation = glm::angleAxis (delta_transformation * VELOCITY_ROTATION, rotated_axis) * rendering->last_selected_object ->rotation ;
148
149
rendering->last_selected_object ->set_model_matrices_standard ();
149
150
}
150
151
else { // SCALING
You can’t perform that action at this time.
0 commit comments