forked from bartvdbraak/blender
Much needed update to flt_import.py
* NMesh to Mesh * Optimized vertex importing * Import NGons properly and make them blender FGons * lots of other small updates image_bake_from_uvs - ignore meshes without faceUV's
This commit is contained in:
parent
cac265f7b6
commit
a7a3285235
@ -250,7 +250,8 @@ class FileFinder:
|
||||
return t
|
||||
|
||||
# Ask user where it is.
|
||||
self.user_input = Blender.Draw.PupStrInput(filename + "? ", '', 100)
|
||||
#self.user_input = Blender.Draw.PupStrInput(filename + "? ", '', 100)
|
||||
self.user_input = None
|
||||
if self.user_input != None:
|
||||
t = Blender.sys.join(self.user_input, filename)
|
||||
if Blender.sys.exists(t):
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -170,7 +170,7 @@ def main():
|
||||
act_ob= scn.getActiveObject()
|
||||
obsel= [ob for ob in Blender.Object.GetSelected() if ob.getType()=='Mesh']
|
||||
|
||||
if not act_ob or act_ob.getType() != 'Mesh':
|
||||
if not act_ob or act_ob.getType() != 'Mesh' or not act_ob.getData(mesh=1).faceUV:
|
||||
Blender.Draw.PupMenu('Error, no active mesh selected.')
|
||||
return
|
||||
|
||||
@ -218,7 +218,7 @@ def main():
|
||||
else:
|
||||
# Make double sure datas unique
|
||||
me_s = dict([(ob.getData(name_only=1), ob.getData(mesh=1)) for ob in obsel]).values()
|
||||
|
||||
me_s = [me for me in me_s if me.faceUV]
|
||||
|
||||
vcol2image(me_s,\
|
||||
PREF_IMAGE_PATH.val,\
|
||||
|
Loading…
Reference in New Issue
Block a user