Yellow-Dog-Man / Resonite-Issues

Issue repository for Resonite.
https://resonite.com
135 stars 2 forks source link

Auto-casting does not work for packed datatypes #1380

Open epicEaston197 opened 7 months ago

epicEaston197 commented 7 months ago

Describe the bug?

When attempting to connect a Float2 output into a int2 input it does not properly cast

To Reproduce

In my case bring out a value field of type float2 then make another value field of type int2 the int being the drive the float2 being the source

Expected behavior

Generic data types should be able to cast to one another automatically without me having to go to core/casts

Screenshots

I had to manually do this cast image

Resonite Version Number

2024.2.12.1430

What Platforms does this occur on?

Windows

What headset if any do you use?

desktop

Log Files

This has me loading into my home world then creating an empty object creating two int2 value fields type float and int then grabbing the float2 as a source and grabbing the int2 as a drive then attempting to cast the float2 to the int2 DESKTOP-DAN95E7 - 2024.2.12.1430 - 2024-02-19 18_23_16.log

Additional Context

This might be a bigger issue with explicit cast not getting the casts from core/casts

Reporters

@epicEaston197

shiftyscales commented 7 months ago

Some additional testing: Explicit casts for unpacked nodes (e.g. float to int) has a context menu pop up and works as intended.

Implicit casts for unpacked nodes (e.g. int to float) doesn't have the context menu pop up and works as intended.

Explicit casts for packed nodes (e.g. float2 to int2) has a context menu pop up and doesn't work as intended.

Implicit casts for packed nodes (e.g. int2 to float2) has the explicit cast context menu pop up and doesn't work as expected.

It appears that packed datatypes just can't be auto-cast in general.

Seeking input from @Frooxius or @ProbablePrime.

SHIFTY-LAPTOP - 2024.2.12.1430 - 2024-02-20 12_43_48.log