From c21919a2105bd1ed4f060be149624d064739a36c Mon Sep 17 00:00:00 2001 From: bobzel Date: Mon, 7 Mar 2022 12:14:39 -0500 Subject: got rid of include cycles for Scripting globals to make hot updates work better. --- src/fields/ObjectField.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/fields/ObjectField.ts') diff --git a/src/fields/ObjectField.ts b/src/fields/ObjectField.ts index 461e247db..daa8a7777 100644 --- a/src/fields/ObjectField.ts +++ b/src/fields/ObjectField.ts @@ -1,5 +1,6 @@ -import { Copy, OnUpdate, Parent, ToScriptString, ToString } from "./FieldSymbols"; import { RefField } from "./RefField"; +import { OnUpdate, Parent, Copy, ToScriptString, ToString } from "./FieldSymbols"; +import { ScriptingGlobals } from "../client/util/ScriptingGlobals"; export abstract class ObjectField { public [OnUpdate]?: (diff?: any) => void; @@ -15,3 +16,5 @@ export namespace ObjectField { return field?.[Copy](); } } + +ScriptingGlobals.add(ObjectField); \ No newline at end of file -- cgit v1.2.3-70-g09d2