GraphiteEditor/Graphite

Drawing by appending to the selected layer fails on empty layers

Open

#2.584 geöffnet am 16. Apr. 2025

Auf GitHub ansehen
 (0 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)Rust (1.176 Forks)batch import
Good First Issue

Repository-Metriken

Stars
 (25.662 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 6T 9h) (65 gemergte PRs in 30 T)

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

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

Image

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

Currently, append-drawing results in this:

Image

But the desired output in this case should be:

Image

Contributor Guide