mirror of
https://github.com/mcneel/opennurbs.git
synced 2026-03-28 22:20:05 +08:00
Sync changes from upstream repository
Co-authored-by: Andrew Le Bihan <andy@mcneel.com> Co-authored-by: Bozo <bozo@mcneel.com> Co-authored-by: Bozo the Builder <bozo@mcneel.com> Co-authored-by: croudyj <croudyj@gmail.com> Co-authored-by: Dale Lear <dalelear@mcneel.com> Co-authored-by: piac <giulio@mcneel.com>
This commit is contained in:
@@ -2420,7 +2420,7 @@ void ON_Texture::SetRotation(double rotation)
|
||||
|
||||
m_uvw.DecomposeTextureMapping(offset, repeat, r);
|
||||
|
||||
m_uvw = ON_Xform::TextureMapping(offset, repeat, ON_3dPoint(0.0, 0.0, rotation));
|
||||
m_uvw = ON_Xform::TextureMapping(offset, repeat, ON_3dPoint(0.0, 0.0, rotation * ON_DEGREES_TO_RADIANS));
|
||||
}
|
||||
|
||||
double ON_Texture::Rotation() const
|
||||
@@ -2429,7 +2429,7 @@ double ON_Texture::Rotation() const
|
||||
|
||||
m_uvw.DecomposeTextureMapping(offset, repeat, rotation);
|
||||
|
||||
return rotation.z;
|
||||
return rotation.z * ON_RADIANS_TO_DEGREES;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user