[Bf-extensions-cvs] [d4189ac] master: [TextureAtlas] Fix for duplicated objects.
mifth
noreply at git.blender.org
Fri Jun 20 11:08:06 CEST 2014
Commit: d4189ac1dbd4a7dd7a6e174b479064c5229c5aac
Author: mifth
Date: Fri Jun 20 13:08:03 2014 +0400
https://developer.blender.org/rBAd4189ac1dbd4a7dd7a6e174b479064c5229c5aac
[TextureAtlas] Fix for duplicated objects.
===================================================================
M uv_texture_atlas.py
===================================================================
diff --git a/uv_texture_atlas.py b/uv_texture_atlas.py
index afbfd31..cfeb611 100644
--- a/uv_texture_atlas.py
+++ b/uv_texture_atlas.py
@@ -568,8 +568,12 @@ class TexAtl_MergeObjects(Operator):
bpy.ops.object.select_all(action='DESELECT')
+ # We do the MergeList beacuse we will duplicate grouped objects
+ mergeList = []
for object in bpy.data.groups[self.group_name].objects:
+ mergeList.append(object)
+ for object in mergeList:
# make object temporary unhidden
isObjHideSelect = object.hide_select
object.hide = False
@@ -638,6 +642,8 @@ class TexAtl_MergeObjects(Operator):
scene.objects.active = ob_merge
bpy.ops.object.join()
+ mergeList.clear() # Clear Merge List
+
# make Unwrap
bpy.ops.object.select_all(action='DESELECT')
ob_merge.select = True
More information about the Bf-extensions-cvs
mailing list