~siretart/ubuntu/utopic/blender/libav10

« back to all changes in this revision

Viewing changes to release/scripts/addons/io_import_scene_mhx.py

  • Committer: Package Import Robot
  • Author(s): Matteo F. Vescovi
  • Date: 2012-05-12 20:02:22 UTC
  • mfrom: (14.2.16 sid)
  • Revision ID: package-import@ubuntu.com-20120512200222-lznjs2cxzaq96wua
Tags: 2.63a-1
* New upstream bugfix release
  + debian/patches/: re-worked since source code changed

Show diffs side-by-side

added added

removed removed

Lines of Context:
194
194
#
195
195
 
196
196
def readMhxFile(filePath):
197
 
    global todo, nErrors, theScale, defaultScale, One, toggle, warnedVersion, BMeshAware, theMessage
 
197
    global todo, nErrors, theScale, defaultScale, One, toggle, warnedVersion, theMessage
198
198
 
199
 
    print("Blender r%s" % bpy.app.build_revision)
200
 
    BMeshAware = (int(bpy.app.build_revision) > 44136)    
201
199
    defaultScale = theScale
202
200
    One = 1.0/theScale
203
201
    warnedVersion = False
1191
1189
#
1192
1190
 
1193
1191
def parseMesh (args, tokens):
1194
 
    global todo
 
1192
    global todo, BMeshAware
1195
1193
    if verbosity > 2:
1196
1194
        print( "Parsing mesh %s" % args )
1197
1195
 
1220
1218
        me.from_pydata(verts, edges, [])
1221
1219
    me.update()
1222
1220
    linkObject(ob, me)
 
1221
    
 
1222
    if faces:
 
1223
        try:
 
1224
            me.polygons
 
1225
            BMeshAware = True
 
1226
            print("Using BMesh")
 
1227
        except:
 
1228
            BMeshAware = False
 
1229
            print("Not using BMesh")
1223
1230
        
1224
1231
    mats = []
1225
1232
    nuvlayers = 0