mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-02-17 01:11:45 +00:00
Report bad mdl files.
This commit is contained in:
parent
9a4e5aef53
commit
67ba9129ed
1 changed files with 3 additions and 2 deletions
|
@ -392,8 +392,9 @@ def import_mdl(operator, context, filepath):
|
|||
|
||||
mdl = MDL()
|
||||
if not mdl.read(filepath):
|
||||
#FIXME report?
|
||||
return {'CANCELED'}
|
||||
operator.report({'ERROR'},
|
||||
"Unrecognized format: %s %d" % (mdl.ident, mdl.version))
|
||||
return {'CANCELLED'}
|
||||
faces, uvs = make_faces (mdl)
|
||||
verts = make_verts (mdl, 0)
|
||||
mdl.mesh = bpy.data.meshes.new(mdl.name)
|
||||
|
|
Loading…
Reference in a new issue