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:
authorStephen Leger <stephen@3dservices.ch>2017-08-03 16:59:40 +0300
committerStephen Leger <stephen@3dservices.ch>2017-08-04 06:13:39 +0300
commit00b84551cf7798c402508bce9458a2ed2ca1fc77 (patch)
tree786d56eb32024f5fa2a6c84f12afbcc7a1e824e2 /archipack/archipack_floor.py
parent83e5b12b75643ea5f71a5de40533d82d9179ab2a (diff)
archipack: thumb generator to replace static thumbs, revert _preset to preset according to talk with ideasman42
Diffstat (limited to 'archipack/archipack_floor.py')
-rw-r--r--archipack/archipack_floor.py9
1 files changed, 3 insertions, 6 deletions
diff --git a/archipack/archipack_floor.py b/archipack/archipack_floor.py
index 29957716..9899905d 100644
--- a/archipack/archipack_floor.py
+++ b/archipack/archipack_floor.py
@@ -806,9 +806,6 @@ class FloorGenerator(CutAblePolygon, CutAbleGenerator):
m.set_pts([pt1, pt2, pt3])
def generate_pattern(self, d, verts, faces, matids, uvs):
- # clear data before refreshing it
-
- self.uv_factor = 1 / max(self.xmax, self.ymax) # automatically scale to keep within reasonable bounds
if d.pattern == "boards":
self.boards(d, verts, faces, matids, uvs)
@@ -1225,14 +1222,14 @@ class archipack_floor(ArchipackObject, Manipulable, PropertyGroup):
vary_materials = BoolProperty(
name="Vary Material?",
- default=False,
+ default=True,
description="Vary Material indexes",
update=update)
matid = IntProperty(
name="#variations",
min=1,
max=10,
- default=1,
+ default=7,
description="Material index maxi",
update=update)
auto_update = BoolProperty(
@@ -1815,7 +1812,7 @@ class ARCHIPACK_OT_floor(ArchipackCreateTool, Operator):
# activate manipulators at creation time
o.select = True
context.scene.objects.active = o
- bpy.ops.archipack.floor_manipulate()
+ self.manipulate()
return {'FINISHED'}
else:
self.report({'WARNING'}, "Option only valid in Object mode")