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:
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
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue