Page MenuHome

Grease pencil gizmo of a separated stroke not selectable by cursor
Closed, ResolvedPublic

Description

Windows 10
GTX660TI-DC2

blender 2.8 a421cfa8d31

Grease Pencil gizmo of a separated stroke not selectable by cursor, selection by Select Box works.

1: Add a Grease Pencil stroke, or a blank Grease Pencil and then draw a stroke.

2: Enter Edit mode, select all and duplicate (shift+D), then select only one stroke and P to Separate-Selected Points

3: Go to Object Mode. You can't select the gizmo of the newly created object, you can select it by using Select Box but if you go in edit mode it makes you edit the original stroke.

Event Timeline

Antonio Vazquez (antoniov) triaged this task as Confirmed, Medium priority.

@Philipp Oeser (lichtwerk) I have been testing an the new object is created, but you cannot select with the mouse.

If you select with Box or in outliner, you can, but if you try to edit the object, it looks the object is not there.

Could you take a look to function gp_stroke_separate_exec(). It looks something related to depsgraph and some copy_on_write step missing?

To replicate:

  1. Add a stroke object
  2. Enter in edit mode
  3. Select some points
  4. Press P -> Points
  5. Back to object mode
  6. Try to select both objects (old and new one)

@Philipp Oeser (lichtwerk) I have seen that the new object is not selecteable in the outliner and when you select the line, the object panel is not updated, but if you select the object in the panel below, then all fixed.

@Philipp Oeser (lichtwerk) The bug was stupid... the object was duplicated in Edit Mode and this made it unselectable.