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:
mano-wii
2019-07-08 13:48:01 -03:00
parent ff91f605f0
commit fa27d81937

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):