mirror of
https://github.com/Kbz-8/42_vox.git
synced 2026-01-11 22:53:35 +00:00
working on scene management
This commit is contained in:
@@ -117,7 +117,7 @@ void Chunk::GenerateMesh()
|
||||
|
||||
void Chunk::UploadMesh()
|
||||
{
|
||||
if(p_actor)
|
||||
if(p_actor || m_mesh_data.empty() || m_mesh_index_data.empty())
|
||||
return;
|
||||
std::shared_ptr<Scop::Mesh> mesh = std::make_shared<Scop::Mesh>();
|
||||
mesh->AddSubMesh({ std::move(m_mesh_data), std::move(m_mesh_index_data) });
|
||||
|
||||
Reference in New Issue
Block a user