Skip to content

Graph Node Argument Pins Bug: "missing cast method SAMPLE to FLOAT" #605

@cullumi

Description

@cullumi

Describe the bug
Smoothstep sometimes (but not always) throws the following error.
As it turns out, this error is very common in general, and lies in the way pins are assigned and then not accounted for when arguments on a graph node change positions.

Error: ERROR: Could not get data from previous node, missing cast method from SAMPLE to FLOAT

Happens more often with Operation nodes due to #606 .

To Reproduce
Steps to reproduce the behavior:

  1. Open the Gaea panel.
  2. Add a Noise3D node.
  3. Add a Scalar SampleOp node; it should default to the Add operation.
  4. Connect Noise3D Noise pin to the SampleOp node's A pin.
  5. Click eye icon to display preview. Results are correct, no errors.
  6. Select Smoothstep in the SampleOp's dropdown.
  7. Set from argument to 0.4 and to argument to 0.6
  8. Reconnect Noise3D Noise pin to the SampleOp node's (now repositioned) A pin.
  9. Click eye icon to display preview. Results are not correct, and there is a Cast error in the Output panel.
  10. Repeat steps, skipping step 5 and 6. Results are correct, no errors.

Screenshots

Image

Godot Version
v4.6.1 (stable win64)

Gaea Version
v2.0.0-beta6

Additional context
Also reported by @JaydenO in the Discord.

Metadata

Metadata

Assignees

No one assigned

    Labels

    topic: graph-nodesNew nodes or changes related to GaeaNodeResource.🐞 bugSomething isn't working

    Type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions