tinks, model_viewer & action_nitro: print model loading errors and fix one
[nit.git] / contrib / model_viewer / src / model_viewer.nit
index 347b565..b93bea4 100644 (file)
@@ -67,8 +67,10 @@ redef class App
                world_camera.near = 0.1
                world_camera.far = 100.0
 
-               for model in models do model.load
-               for texture in asset_textures_by_name.values do texture.load
+               for model in models do
+                       model.load
+                       if model.errors.not_empty then print_error model.errors.join("\n")
+               end
 
                # Display the first model
                model = models[model_index]