# HG changeset patch # User John Tsiombikas # Date 1393706269 -7200 # Node ID 0b863938da04ecd3b4da49b552ebdba7f3fdfc20 # Parent be9754def417e761eebafc18919aad1a3ea8f997 I don't remember diff -r be9754def417 -r 0b863938da04 src/scene.cc --- a/src/scene.cc Thu Feb 27 02:19:16 2014 +0200 +++ b/src/scene.cc Sat Mar 01 22:37:49 2014 +0200 @@ -40,6 +40,7 @@ return false; } + // load all the meshes int num_meshes = goat3d_get_mesh_count(goat); for(int i=0; idraw(msec); } + // if there are no objects in the scene, just draw the meshes instead if(objects.empty()) { for(size_t i=0; idraw(); diff -r be9754def417 -r 0b863938da04 src/scene.h --- a/src/scene.h Thu Feb 27 02:19:16 2014 +0200 +++ b/src/scene.h Sat Mar 01 22:37:49 2014 +0200 @@ -12,6 +12,11 @@ std::vector objects; std::vector meshes; std::vector curves; + std::vector lights; + std::vector cameras; + + // nodes can be objects, lights, cameras, or just dummy nodes + std::vector nodes; ~Scene(); void destroy();