Fixed POV-Ray Box

Layers prevented POV Box from working
This commit is contained in:
Maurice Raybaud 2019-10-05 03:38:39 +02:00
parent 1e5f561a7e
commit 04bee5da6b
1 changed files with 3 additions and 3 deletions

View File

@ -615,9 +615,9 @@ class POVRAY_OT_box_add(bpy.types.Operator):
bl_options = {'REGISTER', 'UNDO'}
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
ob.name = ob.data.name = 'PovBox'
bpy.ops.object.mode_set(mode="EDIT")