Page MenuHome

Grease Pencil Object Line Art type='<UNKNOWN ENUM>'
Closed, ResolvedPublicBUG


System Information
Operating system: Windows-10-10.0.19041-SP0 64 Bits
Graphics card: GeForce GTX 1060 6GB/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 461.09

Blender Version
Broken: version: 2.93.0 Alpha, branch: master, commit date: 2021-03-21 03:51, hash: rBdcf1a1045dfe
New feature.

Short description of error
When you add a Grease pencil object of type Object Line art, then the info editor prints the type as UNKNOWN ENUM

As a consequence this makes it impossible to use this operator elsewhere in the UI.
row.operator("object.gpencil_add", text="", icon='MONKEY').type= 'LRT_OBJECT'
will throw an error that the type LRT_OBJECT is not found in the enum.

Exact steps for others to reproduce the error

  • Open Blender
  • Go to Add menu and add a grease pencil object of type Object Line Art to the default cube.
  • Have a look in the Info Editor for the name of the enum that is used for this operator.

Event Timeline

Antonio Vazquez (antoniov) changed the task status from Needs Triage to Confirmed.Mar 24 2021, 1:08 PM
Antonio Vazquez (antoniov) changed the subtype of this task from "Report" to "Bug".

@YimingWu (NicksBest) Could take a look?

Yeah this is probably a bug where that option is only available when you have an active object selected in scene. Let me try to fix this.