Page MenuHome

GPencil: Draw mode not saved when scene is not the active one
Confirmed, NormalPublicBUG

Description

System Information
Operating system: Linux-5.11.0-7614-generic-x86_64-with-glibc2.32 64 Bits
Graphics card: NVIDIA GeForce GTX 1060 6GB/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 465.31

Blender Version
Broken: version: 3.0.0 Alpha, branch: master, commit date: 2021-06-28 12:05, hash: rB9c6a382f9540
Broken: version: 2.93 LTS
Broken: version: 2.83 LTS (without error, quiet)
Worked: -

Short description of error
Blender does not save the active mode of a grease pencil object correctly if that object is not in the active scene.

Exact steps for others to reproduce the error

  1. Open Blender with the default layout template
  2. Create a full copy of the scene
  3. Add an empty grease pencil object in the newly created scene
  4. Switch to draw mode
  5. Go back to the first scene
  6. Save the file
  7. Quit Blender and open the file again
  8. Go to the second scene, notice that GP is not in Draw Mode
  9. Try switching to Draw Mode -> an error occurs Error: Unable to execute 'Strokes Paint Mode Toggle', error changing modes

Event Timeline

Antonio Vazquez (antoniov) changed the task status from Needs Triage to Confirmed.EditedJun 28 2021, 4:44 PM

Confirmed. If you select first Edit Mode and later Draw mode works.

@Campbell Barton (campbellbarton) could you help us here? you know better than us how works the mode change code.

Note: I have seen also that changing the scene from copied scene to default gets an assert:

BLI_assert failed: D:\MyBlender\BlenderDEV\blender\source\blender\windowmanager\intern\wm_toolsystem.c:86, WM_toolsystem_ref_from_context(), at 'tref == area->runtime.tool'

Antonio Vazquez (antoniov) changed the subtype of this task from "Report" to "Bug".Jun 28 2021, 5:10 PM