diff options
author | mifth <paulgeraskin@gmail.com> | 2014-06-20 13:08:03 +0400 |
---|---|---|
committer | mifth <paulgeraskin@gmail.com> | 2014-06-20 13:08:03 +0400 |
commit | d4189ac1dbd4a7dd7a6e174b479064c5229c5aac (patch) | |
tree | ce0bdddf7215d07538cbaa9b3de25580b02dcf6b /uv_texture_atlas.py | |
parent | 33e14d9ba528d2d5a611118d23b2061f150e9e18 (diff) |
[TextureAtlas] Fix for duplicated objects.
Diffstat (limited to 'uv_texture_atlas.py')
-rw-r--r-- | uv_texture_atlas.py | 6 |
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 |