From 89110afef6b101c24dd976ee25d62a6405093318 Mon Sep 17 00:00:00 2001 From: Garux Date: Wed, 14 Apr 2021 16:44:01 +0300 Subject: [PATCH] fix default model box --- plugins/md3model/model.h | 8 ++++---- plugins/model/model.cpp | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/plugins/md3model/model.h b/plugins/md3model/model.h index 69841190..3df3d4cc 100644 --- a/plugins/md3model/model.h +++ b/plugins/md3model/model.h @@ -546,12 +546,12 @@ inline void Model_constructNull( Model& model ){ surface.indices().reserve( 36 ); RenderIndex indices[36] = { - 0, 1, 2, 0, 2, 3, - 4, 5, 6, 4, 6, 7, - 8, 9, 10, 8, 10, 11, + 0, 1, 2, 0, 2, 3, + 4, 5, 6, 4, 6, 7, + 8, 9, 10, 8, 10, 11, 12, 13, 14, 12, 14, 15, 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 ) diff --git a/plugins/model/model.cpp b/plugins/model/model.cpp index 81ae8ae0..efdf938c 100644 --- a/plugins/model/model.cpp +++ b/plugins/model/model.cpp @@ -288,12 +288,12 @@ private: m_indices.resize( 36 ); RenderIndex indices[36] = { - 0, 1, 2, 0, 2, 3, - 4, 5, 6, 4, 6, 7, - 8, 9, 10, 8, 10, 11, + 0, 1, 2, 0, 2, 3, + 4, 5, 6, 4, 6, 7, + 8, 9, 10, 8, 10, 11, 12, 13, 14, 12, 14, 15, 16, 17, 18, 16, 18, 19, - 20, 21, 22, 10, 22, 23, + 20, 21, 22, 20, 22, 23, };