Implemented serialization for text color and trajectory rendering #381

Merged
Xenosas1337 merged 10 commits from SP3-1-Rendering into main 2023-03-02 12:47:35 +08:00
1 changed files with 6 additions and 1 deletions
Showing only changes of commit 848123c138 - Show all commits

View File

@ -84,6 +84,12 @@ namespace SHADE
// If has positions, feed data to buffer.
if (comp.HasPositions())
{
auto meshHandle = comp.GetMesh();
// dont do anything if no mesh
if (!meshHandle)
continue;
SHTransformComponent* transform = SHComponentManager::GetComponent_s<SHTransformComponent>(comp.GetEID());
if (transform)
{
@ -104,7 +110,6 @@ namespace SHADE
// Will be used for baseInstance later
uint32_t oldTransformDataSize = transformData.size();
auto meshHandle = comp.GetMesh();
auto const& positions = comp.GetPositions();
for (auto& pos : positions)