Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormeta-androcto <meta.androcto1@gmail.com>2015-10-19 10:13:25 +0300
committermeta-androcto <meta.androcto1@gmail.com>2015-10-19 10:13:25 +0300
commita30fcae56017330c183dff013fff3b4e375699fb (patch)
treeb3d5cee852010ec0dff5716d117393d6d4222213 /add_mesh_extra_objects
parent870571b1073897430f85066d2cda08adad5e97b3 (diff)
reported in irc, fix for commit rBc34993160da76b6f84f06dc0aa703d09cdfd45ca
added: layers = BoolVectorProperty
Diffstat (limited to 'add_mesh_extra_objects')
-rw-r--r--add_mesh_extra_objects/add_mesh_honeycomb.py7
-rw-r--r--add_mesh_extra_objects/add_mesh_menger_sponge.py9
2 files changed, 13 insertions, 3 deletions
diff --git a/add_mesh_extra_objects/add_mesh_honeycomb.py b/add_mesh_extra_objects/add_mesh_honeycomb.py
index df60671b..3e30afe7 100644
--- a/add_mesh_extra_objects/add_mesh_honeycomb.py
+++ b/add_mesh_extra_objects/add_mesh_honeycomb.py
@@ -192,7 +192,12 @@ class add_mesh_honeycomb(bpy.types.Operator):
name = 'Num of cols', default = 2,
min = 1, max = 100,
description='Number of the columns')
-
+ layers = BoolVectorProperty(
+ name="Layers",
+ size=20,
+ subtype='LAYER',
+ options={'HIDDEN', 'SKIP_SAVE'},
+ )
def fix_edge(self, context):
m = edge_max(self.diam)
if self.edge > m: self.edge = m
diff --git a/add_mesh_extra_objects/add_mesh_menger_sponge.py b/add_mesh_extra_objects/add_mesh_menger_sponge.py
index 43c8c57d..1e58ebce 100644
--- a/add_mesh_extra_objects/add_mesh_menger_sponge.py
+++ b/add_mesh_extra_objects/add_mesh_menger_sponge.py
@@ -4,7 +4,7 @@
import bpy
-from bpy.props import IntProperty, BoolProperty, FloatVectorProperty, FloatProperty
+from bpy.props import IntProperty, BoolProperty, BoolVectorProperty, FloatVectorProperty, FloatProperty
import bpy
import mathutils
@@ -166,7 +166,12 @@ class AddMengerSponge(bpy.types.Operator):
name="Rotation",
subtype='EULER',
)
-
+ layers = BoolVectorProperty(
+ name="Layers",
+ size=20,
+ subtype='LAYER',
+ options={'HIDDEN', 'SKIP_SAVE'},
+ )
def execute(self, context):
sponger = MengerSponge(self.level)
vertices, faces = sponger.create(self.radius * 2, self.radius * 2)