[Bf-extensions-cvs] SVN commit: /data/svn/bf-extensions [4602] contrib/py/scripts/addons/ uv_texture_atlas.py: [TextureAtlas] fix for pep8.
paul geraskin
paul_geraskin at mail.ru
Tue Jun 25 17:40:55 CEST 2013
Revision: 4602
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-extensions&revision=4602
Author: mifth
Date: 2013-06-25 15:40:55 +0000 (Tue, 25 Jun 2013)
Log Message:
-----------
[TextureAtlas] fix for pep8.
Modified Paths:
--------------
contrib/py/scripts/addons/uv_texture_atlas.py
Modified: contrib/py/scripts/addons/uv_texture_atlas.py
===================================================================
--- contrib/py/scripts/addons/uv_texture_atlas.py 2013-06-25 15:36:45 UTC (rev 4601)
+++ contrib/py/scripts/addons/uv_texture_atlas.py 2013-06-25 15:40:55 UTC (rev 4602)
@@ -51,7 +51,7 @@
bpy.ops.object.select_all(action='DESELECT')
for thisObject in bpy.data.groups[group.name].objects:
isThisObjectVisible = False
- #scene.objects.active = thisObject
+ # scene.objects.active = thisObject
for thisLayerNumb in range(20):
if thisObject.layers[thisLayerNumb] is True and scene.layers[thisLayerNumb] is True:
isThisObjectVisible = True
@@ -173,7 +173,7 @@
def execute(self, context):
scene = context.scene
- #old_context = context.area.type
+ # old_context = context.area.type
# Check if group exists
if check_group_exist(self, context) is False:
@@ -351,7 +351,6 @@
if check_group_exist(self, context) is False:
return {'CANCELLED'}
-
if scene.objects.active is not None:
bpy.ops.object.mode_set(mode='OBJECT', toggle=False)
@@ -488,7 +487,8 @@
# Create/Update Image
image = bpy.data.images.get(self.group_name)
if image is None:
- image = bpy.data.images.new(name=self.group_name, width=self.resolution, height=self.resolution)
+ image = bpy.data.images.new(
+ name=self.group_name, width=self.resolution, height=self.resolution)
image.generated_type = 'COLOR_GRID'
image.generated_width = self.resolution
@@ -508,7 +508,7 @@
tex = object.data.uv_textures[self.group_name]
tex.active = True
tex.active_render = True
-
+
for face_tex in tex.data:
face_tex.image = image
return{'FINISHED'}
@@ -576,7 +576,6 @@
object.hide = True
object.select = False
-
# remove unused UV
# remove UVs
UVLIST = []
@@ -593,7 +592,8 @@
# create vertex groups for each selected object
scene.objects.active = bpy.data.objects[activeNowObject.name]
vgroup = activeNowObject.vertex_groups.new(name=object.name)
- vgroup.add(list(range(len(activeNowObject.data.vertices))), weight=1.0, type='ADD')
+ vgroup.add(
+ list(range(len(activeNowObject.data.vertices))), weight=1.0, type='ADD')
# save object name and object location in merged object
item = ob_merge.ms_merged_objects.add()
@@ -728,7 +728,8 @@
bpy.utils.register_class(MSGroups)
bpy.utils.register_class(MSMergedObjects)
- bpy.types.Object.ms_merged_objects = CollectionProperty(type=MSMergedObjects)
+ bpy.types.Object.ms_merged_objects = CollectionProperty(
+ type=MSMergedObjects)
bpy.utils.register_class(MSLightmapGroups)
bpy.types.Scene.ms_lightmap_groups = CollectionProperty(
More information about the Bf-extensions-cvs
mailing list