patuwwy/ShaderToy-Chrome-Plugin

[BUG] Import button creates multiple Image passes:

Closed this issue · 3 comments

Describe the bug
I import my shader and it creates additional Image pass tabs.
This is bad because I can't manually delete the additional Image pass tabs, so they get saved when I save my shader!
E.g. I saved this shader here, and I still can't remove the additional image passes:
https://www.shadertoy.com/view/tdVfz3

To Reproduce
Steps to reproduce the behavior:

  1. Go to /new
  2. Click on Import, and import the attached shader
  3. See 2 image pass tabs
  4. Again: Click on Import, and import the attached shader
  5. See 3 image pass tabs
    .. Repeat: See more and more image pass tabs ..

Note: It's impossible to import the attached shader so that it only has 1 image pass tab.

Expected behavior
Replace the image pass.

Screenshots
image

Desktop (please complete the following information):

  • OS: Manjaro
  • Browser chromium
  • Version 86.0.4240.75 (Official Build) (64-bit)

Additional context
Import this shader.json:

raymarch.zip

Btw, the same happens when I fork another shader! It has an additional image pass tab.

This is the same bug: #127