GraphiteEditor/Graphite

Drawing by appending to the selected layer fails on empty layers

开放

#2,584 创建于 2025年4月16日

 (0 条评论) (0 个反应) (0 位负责人)Rust (1,176 个派生)batch import
Good First Issue

仓库指标

星标
 (25,662 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

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

贡献者指南