GraphiteEditor / GraphiteEditor/Graphite

Drawing by appending to the selected layer fails on empty layers

オープン
#2,584 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
Good First Issue
主要言語
Rust
スター
27.2k
フォーク
1.3k
平均マージ
20時間 5分
マージ済み PR(30日)
57

説明

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)

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

調査の方向性

新しい空のレイヤー上で Shift を押しながら Pen、Spline、または Freehand ツールを使って問題を再現し、その後、modifier ノードを含む空のレイヤーで繰り返します。append-drawing の処理を追跡し、空のレイヤーが Flatten Vector Elements ではなく Path ノードと Stroke ノードを作成し、modifier ノードを保持することを確認します。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
rust
領域
computer-graphics
issue の種類
バグ
難易度
3/5
見積もり時間
1〜2日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
45/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。