fix a bug in CreateCircle3DByIndexTrianges of InlineGeometry.cpp, that it's vertex_count error.

This commit is contained in:
hyzboy 2025-01-25 14:59:04 +08:00
parent d73966b1d0
commit 39aa63aa0a
3 changed files with 9 additions and 9 deletions

14
.gitmodules vendored
View File

@ -1,21 +1,21 @@
[submodule "CMCMakeModule"] [submodule "CMCMakeModule"]
path = CMCMakeModule path = CMCMakeModule
url = https://github.com/hyzboy/CMCMakeModule url = http://www.hyzgame.com:3000/hyzboy/CMCMakeModule
[submodule "CMCore"] [submodule "CMCore"]
path = CMCore path = CMCore
url = https://github.com/hyzboy/CMCore url = http://www.hyzgame.com:3000/hyzboy/CMCore
[submodule "CMPlatform"] [submodule "CMPlatform"]
path = CMPlatform path = CMPlatform
url = https://github.com/hyzboy/CMPlatform url = http://www.hyzgame.com:3000/hyzboy/CMPlatform
[submodule "CMAssetsManage"] [submodule "CMAssetsManage"]
path = CMAssetsManage path = CMAssetsManage
url = https://github.com/hyzboy/CMAssetsManage.git url = http://www.hyzgame.com:3000/hyzboy/CMAssetsManage.git
[submodule "res"] [submodule "res"]
path = res path = res
url = https://github.com/hyzboy/RuntimeData.git url = http://www.hyzgame.com:3000/hyzboy/RuntimeData.git
[submodule "CMSceneGraph"] [submodule "CMSceneGraph"]
path = CMSceneGraph path = CMSceneGraph
url = https://github.com/hyzboy/CMSceneGraph.git url = http://www.hyzgame.com:3000/hyzboy/CMSceneGraph.git
[submodule "CMUtil"] [submodule "CMUtil"]
path = CMUtil path = CMUtil
url = https://github.com/hyzboy/CMUtil.git url = http://www.hyzgame.com:3000/hyzboy/CMUtil.git

2
res

@ -1 +1 @@
Subproject commit e1a36d78f0eead5f6bb65493432c4690637b991d Subproject commit 008dbd5353e6afe7add287333cbda1b5c5fffdec

View File

@ -267,7 +267,7 @@ namespace hgl
uint vertex_count; uint vertex_count;
uint index_count; uint index_count;
vertex_count=cci->field_count; vertex_count=cci->field_count+1;
index_count=(vertex_count-2)*3; index_count=(vertex_count-2)*3;
if(!pc->Init("Circle",vertex_count,index_count))return(nullptr); if(!pc->Init("Circle",vertex_count,index_count))return(nullptr);