Lay flat - icons and invalidation improvement

This commit is contained in:
Lukas Matena 2018-08-20 11:27:25 +02:00
parent db9580f40b
commit b0dd328fde
8 changed files with 23 additions and 9 deletions

View file

@ -143,7 +143,7 @@ sub new {
my $on_gizmo_rotate = sub {
my ($angle_z, $angle_y) = @_;
$self->rotate(rad2deg($angle_z), Z, 'absolute');
$self->rotate(rad2deg($angle_y), Y, 'absolute');
$self->rotate(rad2deg($angle_y), Y, 'absolute') if $angle_y != 0;
};
# callback to update object's geometry info while using gizmos