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:
Bozo the Builder
2023-08-21 06:01:25 -07:00
parent 6e754fbf6d
commit cb1994195e
30 changed files with 1892 additions and 299 deletions

View File

@@ -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;
}