diff options
author | Maurice Raybaud <mauriceraybaud@hotmail.fr> | 2019-10-05 23:45:28 +0300 |
---|---|---|
committer | Maurice Raybaud <mauriceraybaud@hotmail.fr> | 2019-10-05 23:45:28 +0300 |
commit | a3b6421c35d486cf709085c1348939ffced589f5 (patch) | |
tree | ea49697541b996f66a9597438b635022be05aea0 /render_povray | |
parent | 85ff380af2843d4773a3daea3e3834bac5496c70 (diff) |
Fixed more POV primitives
Prism , lathe, Isosurface sphere and cube , blob, Sphere sweep
Diffstat (limited to 'render_povray')
-rw-r--r-- | render_povray/primitives.py | 24 |
1 files changed, 12 insertions, 12 deletions
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'} |