From b817c4fe8f634436981f1e90e05094be11ea92bb Mon Sep 17 00:00:00 2001 From: Joe Heffernan Date: Mon, 10 Jun 2024 16:45:09 -0700 Subject: [PATCH] spread null agent object when parsing frames (#395) --- src/simularium/VisData.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/simularium/VisData.ts b/src/simularium/VisData.ts index c025f96b..4f808a13 100644 --- a/src/simularium/VisData.ts +++ b/src/simularium/VisData.ts @@ -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++];