bitbof / klecks

Community funded painting tool powering Kleki.com
https://klecks.org
MIT License
232 stars 74 forks source link

Layers disappear when merged #101

Open SentretSparkle opened 12 months ago

SentretSparkle commented 12 months ago

Sometimes when merging layers, the layer I'm merging will randomly disappear or become invisible. Yes, I'm using the correct merge/layer type.

bitbof commented 12 months ago

potentially connected to https://github.com/bitbof/klecks/issues/2 and https://github.com/bitbof/klecks/issues/98 but to be investigated

Any Undo strangeness?

SplatSys commented 11 months ago

Also experiencing this. Undo seems to work fine. For me, I've only noticed this happening when a layer is copied then merged, and it happens regardless of the layer being merged. Give me just a second, I'll do a screen recording of it occuring.

SplatSys commented 11 months ago

Excuse the DDR thing, lol https://github.com/bitbof/klecks/assets/131989784/6015fe8a-129f-4e3d-af75-29f89d8e17ed Strangely enough, it only happens on occasion. After having looked, it seems like it could be something with the "source atop" merging mode, as it happens most frequently when using that mode. I have, however, experienced it when merging normally.

I noticed something else while writing this comment; Screenshot 2023-11-18 6 34 50 PM This first image is of two unmerged layers. The white streaks are the layers in question. The first layer is the original layer, and the second layer is a duplicate of the first.

Screenshot 2023-11-18 6 34 54 PM This happened after using the 'Normal' merge mode.

image For reference, this is the first layer. It seems like the site is acting as if the second layer didn't contain anything when it was merged, or it gets erased while being merged. I'm not sure which it would be.

SplatSys commented 11 months ago

Update: Layers that are duplicates are randomly disappearing after undoing and do not come back after redoing. Undoing a few extra times seems to bring them back.