mirror of
https://github.com/blender/blender
synced 2026-09-29 04:37:17 +03:00
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
1 changed files with 6 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue