diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-09-13 13:10:56 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-09-13 13:10:56 +0300 |
commit | 254067106e58736298b73353281992638d2951ac (patch) | |
tree | 42685d7aaf5751cadd54430c587d4ead005378c3 /release/scripts/modules | |
parent | ff432a410a46da33203dfbf79ad49a37bc9310b3 (diff) |
PyAPI: remove operator methods that leak memory
Diffstat (limited to 'release/scripts/modules')
-rw-r--r-- | release/scripts/modules/bl_i18n_utils/utils.py | 2 | ||||
-rw-r--r-- | release/scripts/modules/bpy/ops.py | 10 |
2 files changed, 1 insertions, 11 deletions
diff --git a/release/scripts/modules/bl_i18n_utils/utils.py b/release/scripts/modules/bl_i18n_utils/utils.py index 4be7ccf3356..55a210c56ed 100644 --- a/release/scripts/modules/bl_i18n_utils/utils.py +++ b/release/scripts/modules/bl_i18n_utils/utils.py @@ -208,7 +208,7 @@ def enable_addons(addons=None, support=None, disable=False, check_only=False): for cat in dir(bpy.ops): cat = getattr(bpy.ops, cat) for op in dir(cat): - getattr(cat, op).get_rna() + getattr(cat, op).get_rna_type() return ret diff --git a/release/scripts/modules/bpy/ops.py b/release/scripts/modules/bpy/ops.py index 664dc79b28b..fcba6b3aafc 100644 --- a/release/scripts/modules/bpy/ops.py +++ b/release/scripts/modules/bpy/ops.py @@ -26,9 +26,7 @@ op_dir = ops_module.dir op_poll = ops_module.poll op_call = ops_module.call op_as_string = ops_module.as_string -op_get_rna = ops_module.get_rna op_get_rna_type = ops_module.get_rna_type -op_get_instance = ops_module.get_instance class BPyOps: @@ -207,14 +205,6 @@ class BPyOpsSubModOp: """Internal function for introspection""" return op_get_rna_type(self.idname()) - def get_rna(self): - """Internal function for introspection""" - return op_get_rna(self.idname()) - - def get_instance(self): - """Internal function for introspection""" - return op_get_instance(self.idname()) - def __repr__(self): # useful display, repr(op) # import bpy return op_as_string(self.idname()) |