diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-10-05 07:39:22 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-10-05 07:39:22 +0400 |
commit | f7737153e6c052c53d638d7bce986e4acbf47aad (patch) | |
tree | a1a456a6ea8e1a349c4ae9e36140915e17aa8aff /release/scripts | |
parent | 3b8de8db31a98ee2cabf783c5d58888cadab1d53 (diff) |
filter RNA classes for translation (removes over 1300 lines from messages.txt)
- omit operators tagged as INTERNAL
- omit classes for internal use: Event, Context, Property, Function, Window.
Diffstat (limited to 'release/scripts')
-rw-r--r-- | release/scripts/modules/bpy/ops.py | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/release/scripts/modules/bpy/ops.py b/release/scripts/modules/bpy/ops.py index 64c5a1a5f5f..ba9f6dafd19 100644 --- a/release/scripts/modules/bpy/ops.py +++ b/release/scripts/modules/bpy/ops.py @@ -27,6 +27,7 @@ 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_instance = ops_module.get_instance class BPyOps(object): @@ -184,11 +185,13 @@ class BPyOpsSubModOp(object): return ret def get_rna(self): - ''' - currently only used for 'bl_rna' - ''' + """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 idname = self.idname() |