Created a new gizmo for flattening an object

This commit is contained in:
Lukas Matena 2018-08-09 16:55:43 +02:00
parent a06b6716ea
commit 25a6c7e30e
5 changed files with 211 additions and 3 deletions

View file

@ -141,8 +141,9 @@ sub new {
# callback to react to gizmo rotate
my $on_gizmo_rotate = sub {
my ($angle_z) = @_;
my ($angle_z, $angle_y) = @_;
$self->rotate(rad2deg($angle_z), Z, 'absolute');
$self->rotate(rad2deg($angle_y), Y, 'absolute');
};
# callback to update object's geometry info while using gizmos