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:
Diffstat (limited to 'add_mesh_extra_objects/Wallfactory.py')
-rw-r--r--add_mesh_extra_objects/Wallfactory.py14
1 files changed, 13 insertions, 1 deletions
diff --git a/add_mesh_extra_objects/Wallfactory.py b/add_mesh_extra_objects/Wallfactory.py
index 6d74725e..865f9150 100644
--- a/add_mesh_extra_objects/Wallfactory.py
+++ b/add_mesh_extra_objects/Wallfactory.py
@@ -55,8 +55,9 @@ from .Blocks import (
stepBack,
)
from bpy_extras import object_utils
+from . import utils
-class add_mesh_wallb(Operator):
+class add_mesh_wallb(Operator, object_utils.AddObjectHelper):
bl_idname = "mesh.wall_add"
bl_label = "Add a Masonry Wall"
bl_description = "Create a block (masonry) wall mesh"
@@ -639,6 +640,13 @@ class add_mesh_wallb(Operator):
row.prop(self, "StepOnly", toggle=True)
col.prop(self, "StepBack", toggle=True)
+ if self.change == False:
+ # generic transform props
+ box = layout.box()
+ box.prop(self, 'align')
+ box.prop(self, 'location')
+ box.prop(self, 'rotation')
+
# Respond to UI - get the properties set by user.
# Check and process UI settings to generate masonry
@@ -889,6 +897,8 @@ class add_mesh_wallb(Operator):
mesh = bpy.data.meshes.new("Wall")
mesh.from_pydata(verts_array, [], faces_array)
obj = object_utils.object_data_add(context, mesh, operator=None)
+
+ utils.setlocation(self, context)
mesh.update()
@@ -910,6 +920,8 @@ class add_mesh_wallb(Operator):
context.active_object.name = name_active_object
bpy.ops.object.mode_set(mode='EDIT')
+ utils.setlocation(self, context)
+
return {'FINISHED'}
def WallParameters():