godotengine / godotengine/godot

Setting a CanvasTexture inside AnimatedTexture spams debug with errors

Open
#89,972 2 comments 0 reactions 0 assignees View on GitHub
bug needs testing topic:rendering
Dominant language
C++
Stars
117k
Forks
26.8k
PR merge metrics
PR metrics pending

Description

### Tested versions

Reproducible in 4.2.1 and 4.3 dev 4

### System information

Godot v4.3.dev4 - Windows 10.0.19045 - Vulkan (Forward+) - dedicated AMD Radeon RX 7800 XT (Advanced Micro Devices, Inc.; 31.0.24002.92) - AMD Ryzen 5 5600X 6-Core Processor (12 Threads)

### Issue description

Trying to set an empty CanvasTexture as the first frame in a AnimatedTexture resource spams the console with errors:
![image](https://github.com/godotengine/godot/assets/47953199/62908222-6341-4860-8517-47ba147a5be3)

### Steps to reproduce

1. Add a Sprite2D node
2. Set the texture to AnimatedTexture
3. Set `Frame 0` texture to CanvasTexture

![image](https://github.com/godotengine/godot/assets/47953199/0edb62d9-7454-46fa-aa6b-41357fe23c3d)

### Minimal reproduction project (MRP)

N/A

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.