Skip to content

Commit

Permalink
fix: pointer/interpolate uses "value", not "val"
Browse files Browse the repository at this point in the history
  • Loading branch information
hybridherbst committed Nov 18, 2024
1 parent d05a489 commit f65dc91
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/BasicBehaveEngine/nodes/pointer/PointerInterpolate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 }[];
Expand Down Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion src/authoring/AuthoringNodeSpecs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ export const pointerNodeSpecs: IAuthoringNode[] = [
types: ["float"]
},
{
id: "val",
id: "value",
types: [
"int",
"float",
Expand Down

0 comments on commit f65dc91

Please sign in to comment.