Resizing camera target image causes stretching #10665
Labels
A-Assets
Load files from disk to use for things like images, models, and sounds
A-Rendering
Drawing game state to the screen
C-Bug
An unexpected or incorrect behavior
Bevy version
0.12.0
What you did
I creating an image and use it as camera target to render previews.
What went wrong
But the image becomes stretched, I wouldn't expect it:
But there is a workaround - send
AssetEvent::Modified
event:Additional information
Here is a minimal project to reproduce the problem: assets_render.zip
The logic iterates over all gltf models and loads them for preview. If you comment out lines 90-93 in
preview.rs
, the image will be stretched.In some previous version it just crashed, see #5595.
The text was updated successfully, but these errors were encountered: