Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2018-09-13 11:16:06 +0300
committerCampbell Barton <ideasman42@gmail.com>2018-09-13 11:16:06 +0300
commita6fc7180297f855c2592b20b26f96eb8e5a9e0ca (patch)
treeca62e3e1c301e42814a76f522975855bc1d6ceea /release/scripts/modules/rna_info.py
parent9900addf11d9a5b964aa745cf141998195f7c8db (diff)
PyAPI: add API call to get an operators type
Getting the instance leaks memory and was only meant to be used for generating docs.
Diffstat (limited to 'release/scripts/modules/rna_info.py')
-rw-r--r--release/scripts/modules/rna_info.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/release/scripts/modules/rna_info.py b/release/scripts/modules/rna_info.py
index 53d2e2d0151..535f2cda626 100644
--- a/release/scripts/modules/rna_info.py
+++ b/release/scripts/modules/rna_info.py
@@ -731,14 +731,14 @@ def BuildRNAInfo():
operators = dir(op_mod)
for op in sorted(operators):
try:
- rna_prop = getattr(op_mod, op).get_rna()
+ rna_prop = getattr(op_mod, op).get_rna_type()
except AttributeError:
rna_prop = None
except TypeError:
rna_prop = None
if rna_prop:
- GetInfoOperatorRNA(rna_prop.bl_rna)
+ GetInfoOperatorRNA(rna_prop)
for rna_info in InfoOperatorRNA.global_lookup.values():
rna_info.build()