Non-crashing critical error: Condition "!f.has("texture")" is true. Continuing.

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By jerryjrowe

I am getting this odd error:

MyFunction: Condition "!f.has("texture")" is true. Continuing.

I am not sure what is happening. All my sprites are loading and animating.
I am using beta 13. I’ve been having this problem more than once but it mysteriously disappears after a while.

I manually reimported all of my spriteframes. This didn’t do anything, and I am not certain what else to try.

Is this something anyone else is running into?

:bust_in_silhouette: Reply From: jerryjrowe

Well…I found a solution. This sort of thing has happened many times recently.
It may be a 4.0 beta issue, but…I’ve notice this sort of thing “fixes” random weird stuff for Godot from time to time.

Manually reimporting the sprite sheet (x.png file) is necessary, but it is not sufficient, to fix the problem.
I also had to open the sprite frames resource that I’d made with it (x.tres). I didn’t have to DO anything to it, I just had to open it.

Sometimes it seems as though Godot will only use a cached version of a thing until you force it to look ‘close enough’ at something to re-cache it.

The error does go away.
(edit for clarity)

can confirm this works, you also get this behaviour with other resource plugins like the tilemap editor

chrysopoeia | 2023-04-29 12:13