[Bf-extensions-cvs] [3c62f2f8] master: Fixed 4 POV primitives
Maurice Raybaud
noreply at git.blender.org
Sat Oct 5 10:38:10 CEST 2019
Commit: 3c62f2f88809d2429843a2508ca3cea9119cab9d
Author: Maurice Raybaud
Date: Sat Oct 5 10:38:02 2019 +0200
Branches: master
https://developer.blender.org/rBA3c62f2f88809d2429843a2508ca3cea9119cab9d
Fixed 4 POV primitives
Cone , Torus, Superquadric , Supertorus all needed mesh.validate "verbose" to be a keyword argument since 2.8
===================================================================
M render_povray/primitives.py
===================================================================
diff --git a/render_povray/primitives.py b/render_povray/primitives.py
index ad775b22..750d8959 100644
--- a/render_povray/primitives.py
+++ b/render_povray/primitives.py
@@ -51,7 +51,7 @@ def pov_define_mesh(mesh, verts, edges, faces, name, hide_geometry=True):
mesh = bpy.data.meshes.new(name)
mesh.from_pydata(verts, edges, faces)
mesh.update()
- mesh.validate(False) # Set it to True to see debug messages (helps ensure you generate valid geometry).
+ mesh.validate(verbose = False) # Set it to True to see debug messages (helps ensure you generate valid geometry).
if hide_geometry:
mesh.vertices.foreach_set("hide", [True] * len(mesh.vertices))
mesh.edges.foreach_set("hide", [True] * len(mesh.edges))
More information about the Bf-extensions-cvs
mailing list