Skip to content

Commit

Permalink
spread null agent object when parsing frames (#395)
Browse files Browse the repository at this point in the history
  • Loading branch information
interim17 authored Jun 10, 2024
1 parent 5eb515f commit b817c4f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/simularium/VisData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class VisData {
let j = AGENTS_OFFSET;
for (let i = 0; i < expectedNumAgents; i++) {
//TODO use visType in AgentData and convert from "vis-type" here at parse time
const agentData: AgentData = NULL_AGENT;
const agentData: AgentData = { ...NULL_AGENT };

for (let k = 0; k < AGENT_OBJECT_KEYS.length; ++k) {
agentData[AGENT_OBJECT_KEYS[k]] = floatView[j++];
Expand Down

0 comments on commit b817c4f

Please sign in to comment.