diff options
author | mano-wii <germano.costa@ig.com.br> | 2019-07-08 19:48:01 +0300 |
---|---|---|
committer | mano-wii <germano.costa@ig.com.br> | 2019-07-08 19:48:01 +0300 |
commit | fa27d81937ebed6283f329024951ab6aa82dd2d4 (patch) | |
tree | 32bd1d0b6c03d4897a39fecdd98c841c9aa15d40 /release/scripts/modules/bpy_types.py | |
parent | ff91f605f0aa8854621e4099ffebe9fb568d4dc5 (diff) |
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.
Diffstat (limited to 'release/scripts/modules/bpy_types.py')
-rw-r--r-- | release/scripts/modules/bpy_types.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/release/scripts/modules/bpy_types.py b/release/scripts/modules/bpy_types.py index 3970517a211..ec016d364c6 100644 --- a/release/scripts/modules/bpy_types.py +++ b/release/scripts/modules/bpy_types.py @@ -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): |