diff options
author | Stephen Leger <stephen@3dservices.ch> | 2017-08-01 04:48:42 +0300 |
---|---|---|
committer | Stephen Leger <stephen@3dservices.ch> | 2017-08-01 04:51:01 +0300 |
commit | 45cad6756f10eb708d1a17dae4a70723accc1928 (patch) | |
tree | 48e189c5e9053f6c72547ebf425fbbd4966ef840 /archipack/archipack_handle.py | |
parent | 15ce79c680dd63e5d54cc8ec28ad2c4d87a813ac (diff) |
archipack: update to 1.2.8 add roof and freeform floors
Diffstat (limited to 'archipack/archipack_handle.py')
-rw-r--r-- | archipack/archipack_handle.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/archipack/archipack_handle.py b/archipack/archipack_handle.py index 852fe2b6..fcdb570e 100644 --- a/archipack/archipack_handle.py +++ b/archipack/archipack_handle.py @@ -29,6 +29,7 @@ import bpy def create_handle(context, parent, mesh): + old = context.active_object handle = bpy.data.objects.new("Handle", mesh) handle['archipack_handle'] = True context.scene.objects.link(handle) @@ -37,6 +38,11 @@ def create_handle(context, parent, mesh): modif.levels = 1 handle.parent = parent handle.matrix_world = parent.matrix_world.copy() + context.scene.objects.active = handle + m = handle.archipack_material.add() + m.category = 'handle' + m.material = 'DEFAULT' + context.scene.objects.active = old return handle |