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:
authorBrecht Van Lommel <brechtvanlommel@gmail.com>2019-05-15 18:55:28 +0300
committerBrecht Van Lommel <brechtvanlommel@gmail.com>2019-05-15 19:05:28 +0300
commit8c37a7fe4a81e89c2400d4264b7fea8e89b56638 (patch)
tree6a21e76f5821b1f1f734f294c6a875211c48a159 /add_mesh_BoltFactory
parent467303ba70d6f406a1942321f1962d2ce2491928 (diff)
Update for object add align property changes
Diffstat (limited to 'add_mesh_BoltFactory')
-rw-r--r--add_mesh_BoltFactory/Boltfactory.py21
1 files changed, 2 insertions, 19 deletions
diff --git a/add_mesh_BoltFactory/Boltfactory.py b/add_mesh_BoltFactory/Boltfactory.py
index c021f111..2f1f6bfc 100644
--- a/add_mesh_BoltFactory/Boltfactory.py
+++ b/add_mesh_BoltFactory/Boltfactory.py
@@ -237,23 +237,6 @@ class add_mesh_bolt(Operator, AddObjectHelper):
description='Flat distance of the Hex Nut'
)
- # generic transform props
- view_align: BoolProperty(
- name="Align to View",
- default=False,
- update=AddObjectHelper.view_align_update_callback,
- )
-
- location: FloatVectorProperty(
- name="Location",
- subtype='TRANSLATION',
- )
-
- rotation: FloatVectorProperty(
- name="Rotation",
- subtype='EULER',
- )
-
def draw(self, context):
layout = self.layout
col = layout.column()
@@ -314,7 +297,7 @@ class add_mesh_bolt(Operator, AddObjectHelper):
# generic transform props
col.separator()
- col.prop(self, 'view_align')
+ col.prop(self, 'align')
col.prop(self, 'location')
col.prop(self, 'rotation')
@@ -355,4 +338,4 @@ def unregister():
from bpy.utils import unregister_class
for cls in reversed(classes):
unregister_class(cls)
- bpy.types.VIEW3D_MT_mesh_add.remove(menu_func_bolt) \ No newline at end of file
+ bpy.types.VIEW3D_MT_mesh_add.remove(menu_func_bolt)