Skip to content

Commit

Permalink
Update LightsFactory.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
MegaMech authored Aug 17, 2024
1 parent 5d49976 commit d5a27c7
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/factories/LightsFactory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -111,13 +111,11 @@ ExportResult LightsBinaryExporter::Export(std::ostream &write, std::shared_ptr<I
WriteHeader(writer, Torch::ResourceType::Lights, 0);

writer.Write(reinterpret_cast<char*>(light.a.l.col), 3);
writer.Write(reinterpret_cast<char*>(light.a.l.colc), 3);

writer.Write(static_cast<uint32_t>(size));

for(size_t i = 0; i < size; i++) {
writer.Write(reinterpret_cast<char*>(light.l[i].l.col), 3);
writer.Write(reinterpret_cast<char*>(light.l[i].l.colc), 3);
writer.Write(reinterpret_cast<char*>(light.l[i].l.dir), 3);
}
writer.Finish(write);
Expand Down

0 comments on commit d5a27c7

Please sign in to comment.