Load model before opening window

This commit is contained in:
Thomas FORGIONE 2017-01-13 14:39:03 +01:00
parent 68b4f6b615
commit 23a3b4535d
No known key found for this signature in database
GPG Key ID: 2A210FFC062E00C3
1 changed files with 5 additions and 3 deletions

View File

@ -70,6 +70,11 @@ def main(args):
def log(*args, **kwargs):
pass
# Load and parse the model
log('Loading model...', file=sys.stderr, end='')
model = load_model(args.input, up_conversion)
log(' done!\,Initialiazing OpenGL Context', file=sys.stderr, end='')
camera = Camera(Vector(0,0,5), Vector(0,0,0))
controls = OrbitControls()
@ -93,9 +98,6 @@ def main(args):
running = True
# Load and parse the model
log('Loading model...', file=sys.stderr, end='')
model = load_model(args.input, up_conversion)
log(' done!\nInitializing OpenGL textures...', file=sys.stderr, end='')
# Initializes OpenGL textures