Browse Source

Print message when no models are loaded;

unknown 3 years ago
parent
commit
3fd8d56293
1 changed files with 2 additions and 0 deletions
  1. 2 0
      examples/Interaction/Controller_Models/main.lua

+ 2 - 0
examples/Interaction/Controller_Models/main.lua

@@ -3,6 +3,8 @@ function lovr.load()
     left = lovr.headset.newModel('hand/left'),
     right = lovr.headset.newModel('hand/right')
   }
+
+  if not next(models) then print('No models loaded') end
 end
 
 function lovr.draw()