Hi folks!
Im running into an issue of something that USED to work, but suddenly I dont understand why its not working anymore. Maybe you have some insight on this:
Im using this static to set up animation curves internally
{
if !animcurve_really_exists(__ac_curve) return self
if !animcurve_channel_exists(__ac_curve,__ac_channel) return self
stencil_profile ??= animcurve_create()
animcurve_channel_copy(__ac_curve,__ac_channel,stencil_profile,0)
stencil_mode= _mode
return self
}
but my legit animation curve is being bumped off by animcurve_really_exists :
function animcurve_really_exists(curve)
{
if !is_real(curve) && !is_struct(curve) return false
if !animcurve_exists(curve) return false
return true
}
(Basically it allows to check for a curve without a crash if the variable is the wrong type)
Problem is, its getting transformed into the wrong type, I think?
If I remove this line if !is_real(curve) && !is_struct(curve) return false then I get a crash for passing the wrong type into animcurve_exists ...
Any ideas?

