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:
authormifth <paulgeraskin@gmail.com>2014-06-20 13:08:03 +0400
committermifth <paulgeraskin@gmail.com>2014-06-20 13:08:03 +0400
commitd4189ac1dbd4a7dd7a6e174b479064c5229c5aac (patch)
treece0bdddf7215d07538cbaa9b3de25580b02dcf6b /uv_texture_atlas.py
parent33e14d9ba528d2d5a611118d23b2061f150e9e18 (diff)
[TextureAtlas] Fix for duplicated objects.
Diffstat (limited to 'uv_texture_atlas.py')
-rw-r--r--uv_texture_atlas.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/uv_texture_atlas.py b/uv_texture_atlas.py
index afbfd318..cfeb611f 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