Skip to content

Commit

Permalink
Revert "编辑器模式下物体缩放轴的vertex_data_size计算中多加了8,有一个多余的白色方块"
Browse files Browse the repository at this point in the history
This reverts commit 89f1ddd.
  • Loading branch information
kwbm committed Oct 23, 2023
1 parent 89f1ddd commit 92a171e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion engine/source/editor/source/axis.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ namespace Piccolo
uint32_t stride = sizeof(MeshVertexDataDefinition);

// vertex
size_t vertex_data_size = ((2 * segments + 8) * 3) * stride;
size_t vertex_data_size = ((2 * segments + 8) * 3 + 8) * stride;
m_mesh_data.m_static_mesh_data.m_vertex_buffer = std::make_shared<BufferData>(vertex_data_size);
uint8_t* vertex_data = static_cast<uint8_t*>(m_mesh_data.m_static_mesh_data.m_vertex_buffer->m_data);

Expand Down

0 comments on commit 92a171e

Please sign in to comment.