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
Broken: version: 2.93.0 Alpha, branch: master, commit date: 2021-03-21 03:51, hash: rBdcf1a1045dfe
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.