GraphiteEditor / GraphiteEditor/Graphite

Drawing by appending to the selected layer fails on empty layers

Aperta
#2,584 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Good First Issue
Lingua principale
Rust
Stelle
27.2k
Fork
1.3k
Merge medio
20h 5m
PR unite (30g)
57

Descrizione

You can use the Pen, Spline, or Freehand tool to draw while holding Shift to append to an existing selected layer of vector content. But if you create a brand new layer and draw on it with Shift held, this is the result:

![Image](https://github.com/user-attachments/assets/d1b723c0-98e7-44c8-8bec-953397a46b76)

Whereas this is the normal result of drawing (where a new layer appears):

![Image](https://github.com/user-attachments/assets/79e70028-7ee8-41a5-85c4-c325e09c0152)

So we need to detect if no existing vector data is there, and if so, add the Path and Stroke nodes instead of the Flatten Vector Elements node.

It also needs to work on "empty" layers that do contain modifier nodes, like this:

![Image](https://github.com/user-attachments/assets/0acc3a83-a994-4285-bc90-d6691f4f5c99)

Currently, append-drawing results in this:

![Image](https://github.com/user-attachments/assets/070203ca-93be-474c-a808-d3c8e2c3ae62)

But the desired output in this case should be:

![Image](https://github.com/user-attachments/assets/0e935a76-b0e5-4bac-a146-10f16ae8d944)

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.