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:
authorJacques Lucke <mail@jlucke.com>2019-01-21 16:35:46 +0300
committerJacques Lucke <mail@jlucke.com>2019-01-21 16:35:46 +0300
commit80562a80306ae9abc5eaa7cd24ab70b09213a213 (patch)
tree53155ba2509554d263d7e902e433fd91e1ea64f0 /add_mesh_extra_objects
parent73f88be5067be19aa2c1af75ee9566d41f69a5c0 (diff)
Fix calls to object.transform_ apply due to API changes
The parameter defaults were changed in rB0c829e8240eebd7ce4ed9d61f8682c0d6bf534f4
Diffstat (limited to 'add_mesh_extra_objects')
-rw-r--r--add_mesh_extra_objects/mesh_discombobulator.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/add_mesh_extra_objects/mesh_discombobulator.py b/add_mesh_extra_objects/mesh_discombobulator.py
index f168e32b..4fcbf593 100644
--- a/add_mesh_extra_objects/mesh_discombobulator.py
+++ b/add_mesh_extra_objects/mesh_discombobulator.py
@@ -339,7 +339,7 @@ def doodads(object1, mesh1, dmin, dmax):
# First we have to apply scaling and rotation to the mesh
bpy.ops.object.select_pattern(pattern=bpy.context.scene.discomb.DISC_doodads[type_dood], extend=False)
bpy.context.scene.objects.active = bpy.data.objects[bpy.context.scene.discomb.DISC_doodads[type_dood]]
- bpy.ops.object.transform_apply(rotation=True, scale=True)
+ bpy.ops.object.transform_apply(location=False, rotation=True, scale=True)
for polygon in bpy.data.objects[bpy.context.scene.discomb.DISC_doodads[type_dood]].data.polygons:
polygons_add.append(polygon.vertices)