[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [33099] trunk/blender/release/scripts/op/ uv.py: UV Layout Export was missing UV Layer check.

Campbell Barton ideasman42 at gmail.com
Tue Nov 16 13:54:44 CET 2010


Revision: 33099
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=33099
Author:   campbellbarton
Date:     2010-11-16 13:54:44 +0100 (Tue, 16 Nov 2010)

Log Message:
-----------
UV Layout Export was missing UV Layer check.

Modified Paths:
--------------
    trunk/blender/release/scripts/op/uv.py

Modified: trunk/blender/release/scripts/op/uv.py
===================================================================
--- trunk/blender/release/scripts/op/uv.py	2010-11-16 12:29:30 UTC (rev 33098)
+++ trunk/blender/release/scripts/op/uv.py	2010-11-16 12:54:44 UTC (rev 33099)
@@ -258,7 +258,7 @@
     @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 @@
         else:
             return False
 
-
     def invoke(self, context, event):
         import os
         self.size = self._image_size(context)





More information about the Bf-blender-cvs mailing list