forked from bartvdbraak/blender
bugfix for [#6818] object_find.py assumes active uv layer is set
was assuming meshes had UVs
This commit is contained in:
parent
4d2cbdb038
commit
22e6e836fa
@ -41,9 +41,16 @@ import BPyMessages
|
||||
|
||||
def get_object_images(ob):
|
||||
# Could optimize this
|
||||
if ob.type == 'Mesh':
|
||||
unique_images = {}
|
||||
if ob.type != 'Mesh':
|
||||
return []
|
||||
|
||||
me = ob.getData(mesh=1)
|
||||
|
||||
if not me.faceUV:
|
||||
return []
|
||||
|
||||
unique_images = {}
|
||||
|
||||
orig_uvlayer = me.activeUVLayer
|
||||
|
||||
for uvlayer in me.getUVLayerNames():
|
||||
|
Loading…
Reference in New Issue
Block a user