don-tnowe / godot-sprite-painter

Image editor right inside Godot 4.
MIT License
84 stars 8 forks source link

Tools with shader preview show old image if it's replaced #11

Open don-tnowe opened 1 year ago

don-tnowe commented 1 year ago

Found in this video. (thanks Mike!)

When an image is replaced, Script tool still shows the old image. This is super apparent when the image is resized upwards/leftwards - it appears as though it was resized in the opposite direction instead. In the video above, it also shows a different image once the tool is selected, and applying the script modifies and shows the old image.

Workaround: change tool to another, then change it back. Also, avoid resizing while using Script or Gradient.

I couldn't immediately find a fix, so leaving this here.