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-11-16 15:54:44 +0300
committerCampbell Barton <ideasman42@gmail.com>2010-11-16 15:54:44 +0300
commit92ee3658d359e2c2f65ae439fd9178146a7eba8d (patch)
treef823a59279d22310fdcf30580aea4f023b6b5546 /release
parenta58dcca5ded15b294594e98e575db58bcce7a92b (diff)
UV Layout Export was missing UV Layer check.
Diffstat (limited to 'release')
-rw-r--r--release/scripts/op/uv.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/release/scripts/op/uv.py b/release/scripts/op/uv.py
index 597421f305a..baac3a279e9 100644
--- a/release/scripts/op/uv.py
+++ b/release/scripts/op/uv.py
@@ -258,7 +258,7 @@ class ExportUVLayout(bpy.types.Operator):
@classmethod
def poll(cls, context):
obj = context.active_object
- return (obj and obj.type == 'MESH')
+ return (obj and obj.type == 'MESH' and obj.data.uv_textures)
def _space_image(self, context):
space_data = context.space_data
@@ -353,7 +353,6 @@ class ExportUVLayout(bpy.types.Operator):
else:
return False
-
def invoke(self, context, event):
import os
self.size = self._image_size(context)