Fix T61401: Failure to register a `GizmoGroup` after unregistering it

It does not seem right to rely on the python code to fix problems in the C code.
But this already works like this with the other Python Classes.
This commit is contained in:
Germano Cavalcante 2019-07-08 13:48:01 -03:00
parent ff91f605f0
commit fa27d81937
Notes: blender-bot 2023-05-22 12:40:41 +02:00
Referenced by issue #61401, You can't register a `GizmoGroup` after unregistering it
1 changed files with 6 additions and 0 deletions

View File

@ -655,6 +655,12 @@ class Gizmo(StructRNA):
return (batch, shader)
# Dummy class to keep the reference in `bpy_types_dict` and avoid
# erros like: "TypeError: expected GizmoGroup subclass of class ..."
class GizmoGroup(StructRNA):
__slots__ = ()
# Only defined so operators members can be used by accessing self.order
# with doc generation 'self.properties.bl_rna.properties' can fail
class Operator(StructRNA, metaclass=RNAMeta):