Page MenuHome

Removing a Grease Pencil Object's Material Slot deletes the strokes assigned to it
Closed, ResolvedPublic

Description

version: 2.80 (sub 74), branch: blender2.7, commit date: 2019-06-11 21:45, hash: d93a7290e506, type: Release
build date: 2019-06-11, 23:26:36
platform: Linux

This one is easy to reproduce:

  1. Add a Grease Pencil Object (the Monkey will do)
  2. Go to the object's material slots
  3. Remove a slot used by a stroke

This deletes the slot AND the strokes! This cannot be intentional. Mesh Material Slots do not behave this way, and neither should Grease Pencil Slots.

Event Timeline

Why not delete the strokes? If you remove the material is the same if you remove a layer.

This was a design decision of the GP Team, it's not a bug. Maybe, you have a different opinion, but this was decided after reviewing the subject carefully.

@Matias Mendiola (mendio) @Daniel Martinez Lara (pepeland) What do you think?

Don't remember this was a decision @Antonio Vazquez (antoniov). Maybe this is legacy from the all color system.
For me this behavior is not correct, we should kept the strokes even if they do not have assigned material, same as meshes:

  • Assign all the strokes using the deleted material to the next material in the slot
  • If there is no material at all (empty material list) the stroke should use a SOLID BLACK material by default
Antonio Vazquez (antoniov) lowered the priority of this task from Needs Triage by Developer to Confirmed, Medium.Jun 12 2019, 1:55 PM