GraphiteEditor / GraphiteEditor/Graphite
Drawing by appending to the selected layer fails on empty layers
- Langage dominant
- Rust
- Étoiles
- 27.2k
- Forks
- 1.3k
- Merge moyen
- 20 h 5 min
- PR mergées (30 j)
- 57
Description
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:

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

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:

Currently, append-drawing results in this:

But the desired output in this case should be:

Guide de contribution
Aucun guide de contribution indexé pour ce dépôt
Piste de recherche
Reproduisez le problème avec l’outil Pen, Spline ou Freehand tout en maintenant la touche Shift enfoncée sur un nouveau calque vide, puis recommencez avec un calque vide contenant des nœuds modifier. Suivez le traitement de append-drawing et vérifiez que les calques vides créent des nœuds Path et Stroke plutôt que Flatten Vector Elements, tout en conservant les nœuds modifier.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- rust
- Domaine
- computer-graphics
- Type d'issue
- Bug
- Difficulté
- 3/5
- Temps estimé
- 1-2 jours
- Activité
- À l'abandon
- Clarté
- Plutôt claire
- Accessibilité débutants
- 45/100