GraphiteEditor / GraphiteEditor/Graphite

Drawing by appending to the selected layer fails on empty layers

Open
#2,584 0 comments 0 reactions 0 assignees View on GitHub
Good First Issue
Dominant language
Rust
Stars
27.2k
Forks
1.3k
Avg merge
20h 5m
Merged PRs (30d)
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:

![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)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.