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>2010-04-17 23:05:53 +0400
committerCampbell Barton <ideasman42@gmail.com>2010-04-17 23:05:53 +0400
commit4cf697de8913e91e9091a12afbd37f5ebd4c9940 (patch)
tree3ab3ea56d24c12abfcb9dd027b8a917f2bff639b /release/scripts/modules/rna_info.py
parent392e1da1790d252f0f156379c1d5507959a4e17a (diff)
- for BGE mouse and keyboard events use tuples rather then lists
- pep8 corrections
Diffstat (limited to 'release/scripts/modules/rna_info.py')
-rw-r--r--release/scripts/modules/rna_info.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/release/scripts/modules/rna_info.py b/release/scripts/modules/rna_info.py
index 15500c94b66..d0a9de329c1 100644
--- a/release/scripts/modules/rna_info.py
+++ b/release/scripts/modules/rna_info.py
@@ -27,6 +27,7 @@ script_paths = bpy.utils.script_paths()
_FAKE_STRUCT_SUBCLASS = True
+
def _get_direct_attr(rna_type, attr):
props = getattr(rna_type, attr)
base = rna_type.base
@@ -45,6 +46,7 @@ def get_direct_properties(rna_type):
def get_direct_functions(rna_type):
return _get_direct_attr(rna_type, "functions")
+
def rna_id_ignore(rna_id):
if rna_id == "rna_type":
return True
@@ -61,6 +63,7 @@ def rna_id_ignore(rna_id):
return True
return False
+
def range_str(val):
if val < -10000000:
return '-inf'
@@ -393,6 +396,7 @@ def GetInfoFunctionRNA(bl_rna, parent_id):
def GetInfoOperatorRNA(bl_rna):
return _GetInfoRNA(bl_rna, InfoOperatorRNA)
+
def BuildRNAInfo():
# Use for faster lookups
# use rna_struct.identifier as the key for each dict
@@ -402,7 +406,6 @@ def BuildRNAInfo():
rna_references_dict = {} # store a list of rna path strings that reference this type
# rna_functions_dict = {} # store all functions directly in this type (not inherited)
-
def full_rna_struct_path(rna_struct):
'''
Needed when referencing one struct from another