diff options
Diffstat (limited to 'add_mesh_extra_objects/add_mesh_menger_sponge.py')
-rw-r--r-- | add_mesh_extra_objects/add_mesh_menger_sponge.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/add_mesh_extra_objects/add_mesh_menger_sponge.py b/add_mesh_extra_objects/add_mesh_menger_sponge.py index df4fcb21..20b0d102 100644 --- a/add_mesh_extra_objects/add_mesh_menger_sponge.py +++ b/add_mesh_extra_objects/add_mesh_menger_sponge.py @@ -169,7 +169,7 @@ class AddMengerSponge(bpy.types.Operator): name="Rotation", subtype='EULER', ) - layers = BoolVectorProperty( + layers: BoolVectorProperty( name="Layers", size=20, subtype='LAYER', @@ -184,7 +184,7 @@ class AddMengerSponge(bpy.types.Operator): mesh = bpy.data.meshes.new(name='Sponge') mesh.from_pydata(vertices, [], faces) uvs = [(0.0, 0.0), (0.0, 1.0), (1.0, 1.0), (1.0, 0.0)] - mesh.uv_textures.new() + mesh.uv_layers.new() for i, uvloop in enumerate(mesh.uv_layers.active.data): uvloop.uv = uvs[i % 4] |