GraphiteEditor / GraphiteEditor/Graphite

Drawing by appending to the selected layer fails on empty layers

Offen
#2,584 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Good First Issue
Vorherrschende Sprache
Rust
Sterne
27.2k
Forks
1.3k
Ø Merge
20 Std. 5 Min.
Gemergte PRs (30 T.)
57

Beschreibung

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)

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.