Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2010-01-15 15:21:33 +0300
committerCampbell Barton <ideasman42@gmail.com>2010-01-15 15:21:33 +0300
commit3ff987c46a284c6fe7acb574d42a25c32ee29f7a (patch)
treec0caa1696d4532ea16a639408cd0347e91c37afb /release/scripts/op
parent39ff5d7eb978d16370c37508c012bd9d319ac348 (diff)
bugfix [#20688] Mesh with no materials fails to export UV layout
Diffstat (limited to 'release/scripts/op')
-rw-r--r--release/scripts/op/uv.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/release/scripts/op/uv.py b/release/scripts/op/uv.py
index 476d3ab44c3..1ca369abe64 100644
--- a/release/scripts/op/uv.py
+++ b/release/scripts/op/uv.py
@@ -88,7 +88,7 @@ class ExportUVLayout(bpy.types.Operator):
# svg colors
fill_settings = []
- for mat in mesh.materials:
+ for mat in mesh.materials if mesh.materials else [None]:
if mat:
fill_settings.append('fill="rgb(%d, %d, %d)"' % tuple(int(c*255) for c in mat.diffuse_color))
else: