fix default model box

This commit is contained in:
Garux 2021-04-14 16:44:01 +03:00
parent 05f4c6639b
commit 89110afef6
2 changed files with 8 additions and 8 deletions

View File

@ -546,12 +546,12 @@ inline void Model_constructNull( Model& model ){
surface.indices().reserve( 36 ); surface.indices().reserve( 36 );
RenderIndex indices[36] = { RenderIndex indices[36] = {
0, 1, 2, 0, 2, 3, 0, 1, 2, 0, 2, 3,
4, 5, 6, 4, 6, 7, 4, 5, 6, 4, 6, 7,
8, 9, 10, 8, 10, 11, 8, 9, 10, 8, 10, 11,
12, 13, 14, 12, 14, 15, 12, 13, 14, 12, 14, 15,
16, 17, 18, 16, 18, 19, 16, 17, 18, 16, 18, 19,
20, 21, 22, 10, 22, 23, 20, 21, 22, 20, 22, 23,
}; };
for ( RenderIndex* i = indices; i != indices + ( sizeof( indices ) / sizeof( RenderIndex ) ); ++i ) for ( RenderIndex* i = indices; i != indices + ( sizeof( indices ) / sizeof( RenderIndex ) ); ++i )

View File

@ -288,12 +288,12 @@ private:
m_indices.resize( 36 ); m_indices.resize( 36 );
RenderIndex indices[36] = { RenderIndex indices[36] = {
0, 1, 2, 0, 2, 3, 0, 1, 2, 0, 2, 3,
4, 5, 6, 4, 6, 7, 4, 5, 6, 4, 6, 7,
8, 9, 10, 8, 10, 11, 8, 9, 10, 8, 10, 11,
12, 13, 14, 12, 14, 15, 12, 13, 14, 12, 14, 15,
16, 17, 18, 16, 18, 19, 16, 17, 18, 16, 18, 19,
20, 21, 22, 10, 22, 23, 20, 21, 22, 20, 22, 23,
}; };