From f65dc91f3aeca9379c591053ebd5d805d37e724e Mon Sep 17 00:00:00 2001 From: hybridherbst Date: Mon, 18 Nov 2024 14:34:01 +0100 Subject: [PATCH] fix: pointer/interpolate uses "value", not "val" --- src/BasicBehaveEngine/nodes/pointer/PointerInterpolate.ts | 4 ++-- src/authoring/AuthoringNodeSpecs.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/BasicBehaveEngine/nodes/pointer/PointerInterpolate.ts b/src/BasicBehaveEngine/nodes/pointer/PointerInterpolate.ts index 30ce016..09c8100 100644 --- a/src/BasicBehaveEngine/nodes/pointer/PointerInterpolate.ts +++ b/src/BasicBehaveEngine/nodes/pointer/PointerInterpolate.ts @@ -2,7 +2,7 @@ import {BehaveEngineNode, IBehaviourNodeProps} from "../../BehaveEngineNode"; export class PointerInterpolate extends BehaveEngineNode { REQUIRED_CONFIGURATIONS = [{id: "pointer"}] - REQUIRED_VALUES = [{id: "val"}, {id: "duration"}, {id: "p1"}, {id: "p2"}] + REQUIRED_VALUES = [{id: "value"}, {id: "duration"}, {id: "p1"}, {id: "p2"}] _pointer: string; _pointerVals: { id: string }[]; @@ -55,7 +55,7 @@ export class PointerInterpolate extends BehaveEngineNode { const requiredVals = this.evaluateAllValues([...this.REQUIRED_VALUES].map(val => val.id)); const populatedPath = this.populatePath(this._pointer, configVals) const {p1, p2} = this.evaluateAllValues(["p1", "p2"]); - const targetValue = requiredVals.val; + const targetValue = requiredVals.value; const duration = requiredVals.duration; this.graphEngine.processNodeStarted(this); diff --git a/src/authoring/AuthoringNodeSpecs.ts b/src/authoring/AuthoringNodeSpecs.ts index 7cabb1e..1262abc 100644 --- a/src/authoring/AuthoringNodeSpecs.ts +++ b/src/authoring/AuthoringNodeSpecs.ts @@ -162,7 +162,7 @@ export const pointerNodeSpecs: IAuthoringNode[] = [ types: ["float"] }, { - id: "val", + id: "value", types: [ "int", "float",