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:
Campbell Barton 2006-07-28 08:17:04 +00:00
parent cac265f7b6
commit a7a3285235
3 changed files with 1551 additions and 1562 deletions

@ -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,\