diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-09-16 09:42:22 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-09-16 09:42:25 +0300 |
commit | 330a37f3897d051ac7a81f13ffb69cc78c617e54 (patch) | |
tree | fb166078d49f1488f19fd95aa1fb523cf4ca5d07 /release/scripts | |
parent | f97eb0e338723882215b85237d58297074607f5a (diff) |
Revert "PyAPI: expose OperatorType.modal_keymap"
This reverts commit b53ee963b16d817a6367bd7c73b866036868b2e2.
Full support for defining modal enums and access through events
is more involved, revert for now.
Diffstat (limited to 'release/scripts')
-rw-r--r-- | release/scripts/modules/bpy_types.py | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/release/scripts/modules/bpy_types.py b/release/scripts/modules/bpy_types.py index 6c5cd01ffc2..29470895079 100644 --- a/release/scripts/modules/bpy_types.py +++ b/release/scripts/modules/bpy_types.py @@ -555,16 +555,6 @@ class RNAMetaPropGroup(StructMetaPropGroup, RNAMeta): pass -class RNAMetaOperator(RNAMeta): - @property - def modal_keymap(cls): - return _bpy.ops.modal_keymap_get(cls.bl_idname) - - @modal_keymap.setter - def modal_keymap(cls, keymap): - _bpy.ops.modal_keymap_set(cls.bl_idname, keymap) - - # Same as 'Operator' # only without 'as_keywords' class Gizmo(StructRNA): @@ -674,7 +664,7 @@ class GizmoGroup(StructRNA): # 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=RNAMetaOperator): +class Operator(StructRNA, metaclass=RNAMeta): __slots__ = () def __getattribute__(self, attr): |