forked from bartvdbraak/blender
Cleanup: remove unused layers property from template
Also remove unused imports.
This commit is contained in:
parent
af37c3e8f1
commit
c6ddb68b7a
@ -2,6 +2,9 @@ import bpy
|
||||
import bmesh
|
||||
from bpy_extras.object_utils import AddObjectHelper
|
||||
|
||||
from bpy.props import (
|
||||
FloatProperty,
|
||||
)
|
||||
|
||||
def add_box(width, height, depth):
|
||||
"""
|
||||
@ -36,15 +39,6 @@ def add_box(width, height, depth):
|
||||
return verts, faces
|
||||
|
||||
|
||||
from bpy.props import (
|
||||
BoolProperty,
|
||||
BoolVectorProperty,
|
||||
EnumProperty,
|
||||
FloatProperty,
|
||||
FloatVectorProperty,
|
||||
)
|
||||
|
||||
|
||||
class AddBox(bpy.types.Operator, AddObjectHelper):
|
||||
"""Add a simple box mesh"""
|
||||
bl_idname = "mesh.primitive_box_add"
|
||||
@ -69,12 +63,6 @@ class AddBox(bpy.types.Operator, AddObjectHelper):
|
||||
min=0.01, max=100.0,
|
||||
default=1.0,
|
||||
)
|
||||
layers: BoolVectorProperty(
|
||||
name="Layers",
|
||||
description="Object Layers",
|
||||
size=20,
|
||||
options={'HIDDEN', 'SKIP_SAVE'},
|
||||
)
|
||||
|
||||
def execute(self, context):
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user