From: Peter Schaefer Date: Wed, 30 Mar 2016 11:26:43 +0000 (+0200) Subject: fixed missing BBox X-Git-Url: https://git.leopard-lacewing.eu/?a=commitdiff_plain;h=0364ff0c9bebace6356c92b82e50e35239099a66;p=cgue_weave.git fixed missing BBox --- diff --git a/Weave/Graphix/Model/BBox.cpp b/Weave/Graphix/Model/BBox.cpp index 0833b7a..fb26910 100644 --- a/Weave/Graphix/Model/BBox.cpp +++ b/Weave/Graphix/Model/BBox.cpp @@ -8,7 +8,7 @@ BBox::BBox() { numvertices = 8; - float vertex[] { -.5f, -.5f, -.5f, .5f, -.5f, -.5f, .5f, .5f, -.5f, -.5f, .5f, -.5f, -.5f, -.5f, .5f, .5f, -.5f, .5f, .5f, .5f, .5f, -.5f, .5f, .5f }; + vertex = new float[numvertices * 3] { -.5f, -.5f, -.5f, .5f, -.5f, -.5f, .5f, .5f, -.5f, -.5f, .5f, -.5f, -.5f, -.5f, .5f, .5f, -.5f, .5f, .5f, .5f, .5f, -.5f, .5f, .5f }; //import("skybox.dae", numvertices, numfaces, vertex, uvs, normals, index, 0);