[Bf-extensions-cvs] [a3b6421c] master: Fixed more POV primitives

Maurice Raybaud noreply at git.blender.org
Sat Oct 5 22:45:37 CEST 2019


Commit: a3b6421c35d486cf709085c1348939ffced589f5
Author: Maurice Raybaud
Date:   Sat Oct 5 22:45:28 2019 +0200
Branches: master
https://developer.blender.org/rBAa3b6421c35d486cf709085c1348939ffced589f5

Fixed more POV primitives

Prism , lathe, Isosurface sphere and cube , blob, Sphere sweep

===================================================================

M	render_povray/primitives.py

===================================================================

diff --git a/render_povray/primitives.py b/render_povray/primitives.py
index 6f29b2d9..6ab1040d 100644
--- a/render_povray/primitives.py
+++ b/render_povray/primitives.py
@@ -969,9 +969,9 @@ class POVRAY_OT_isosurface_box_add(bpy.types.Operator):
 
 
     def execute(self,context):
-        layers = 20*[False]
-        layers[0] = True
-        bpy.ops.mesh.primitive_cube_add(layers = layers)
+        #layers = 20*[False]
+        #layers[0] = True
+        bpy.ops.mesh.primitive_cube_add()
         ob = context.object
         bpy.ops.object.mode_set(mode="EDIT")
         self.report({'INFO'}, "This native POV-Ray primitive "
@@ -991,9 +991,9 @@ class POVRAY_OT_isosurface_sphere_add(bpy.types.Operator):
 
 
     def execute(self,context):
-        layers = 20*[False]
-        layers[0] = True
-        bpy.ops.mesh.primitive_ico_sphere_add(subdivisions=4,layers=layers)
+        #layers = 20*[False]
+        #layers[0] = True
+        bpy.ops.mesh.primitive_ico_sphere_add(subdivisions=4)
         ob = context.object
         bpy.ops.object.mode_set(mode="EDIT")
         self.report({'INFO'}, "This native POV-Ray primitive "
@@ -1013,9 +1013,9 @@ class POVRAY_OT_sphere_sweep_add(bpy.types.Operator):
     bl_options = {'REGISTER', 'UNDO'}
 
     def execute(self,context):
-        layers = 20*[False]
-        layers[0] = True
-        bpy.ops.curve.primitive_nurbs_curve_add(layers = layers)
+        #layers = 20*[False]
+        #layers[0] = True
+        bpy.ops.curve.primitive_nurbs_curve_add()
         ob = context.object
         ob.name = ob.data.name = "PovSphereSweep"
         ob.pov.curveshape = "sphere_sweep"
@@ -1033,9 +1033,9 @@ class POVRAY_OT_blob_add(bpy.types.Operator):
     bl_options = {'REGISTER', 'UNDO'}
 
     def execute(self,context):
-        layers = 20*[False]
-        layers[0] = True
-        bpy.ops.object.metaball_add(type = 'BALL',layers = layers)
+        #layers = 20*[False]
+        #layers[0] = True
+        bpy.ops.object.metaball_add(type = 'BALL')
         ob = context.object
         ob.name = "PovBlob"
         return {'FINISHED'}



More information about the Bf-extensions-cvs mailing list