]> git.tdb.fi Git - libs/gl.git/commitdiff
Auto smooth angle is stored in radians, not degrees
authorMikko Rasa <tdb@tdb.fi>
Fri, 3 May 2013 22:09:18 +0000 (01:09 +0300)
committerMikko Rasa <tdb@tdb.fi>
Fri, 3 May 2013 22:09:18 +0000 (01:09 +0300)
This probably got changed since Blender 2.4, but had gone unnoticed.

blender/io_mspgl/mesh.py

index fc31a1252a630fa0ef03fff894b7b735d31e2a78..a41cbc1311c8a9c077ff78980ecfb1e48a37b4e3 100644 (file)
@@ -158,7 +158,7 @@ class Mesh:
                self.lines = [Line(e) for e in self.edges.values() if not e.faces]
 
                if self.use_auto_smooth:
-                       smooth_limit = math.cos(self.auto_smooth_angle*math.pi/180)
+                       smooth_limit = math.cos(self.auto_smooth_angle)
                else:
                        smooth_limit = -1