GraphiteEditor / GraphiteEditor/Graphite
Drawing by appending to the selected layer fails on empty layers
- 主要言語
- 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:

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:

コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
調査の方向性
新しい空のレイヤー上で Shift を押しながら Pen、Spline、または Freehand ツールを使って問題を再現し、その後、modifier ノードを含む空のレイヤーで繰り返します。append-drawing の処理を追跡し、空のレイヤーが Flatten Vector Elements ではなく Path ノードと Stroke ノードを作成し、modifier ノードを保持することを確認します。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- rust
- 領域
- computer-graphics
- issue の種類
- バグ
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 45/100