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:
authorLuca Bonavita <mindrones@gmail.com>2010-07-15 22:34:25 +0400
committerLuca Bonavita <mindrones@gmail.com>2010-07-15 22:34:25 +0400
commit7df9df137391509a4795b7770e2e964379bffd15 (patch)
tree58b06d5986f2b248c10a1cc95bc1d1f7f5189f9a /source/blender
parent68c59beefdd19fb9140852da8c879ad5d8876101 (diff)
== rna cleanup ==
- after talking with brecht, changes keys prefixes with "is_pressed_alt" and so on if readonly and "pressed_alt" if not readonly - updated the rna_cleaner.py with real prefixes and keywords so it's clear what it is being used kw_prefixes = [ 'active','apply','bl','exclude','has','invert','is','lock', \ 'pressed','show','show_only','use','use_only','layers','states'] kw = ['active','hide','invert','select','layers','mute','states','use','lock']
Diffstat (limited to 'source/blender')
-rw-r--r--source/blender/makesrna/rna_cleanup/rna_booleans.txt18
-rwxr-xr-xsource/blender/makesrna/rna_cleanup/rna_cleaner.py7
2 files changed, 12 insertions, 13 deletions
diff --git a/source/blender/makesrna/rna_cleanup/rna_booleans.txt b/source/blender/makesrna/rna_cleanup/rna_booleans.txt
index ac3da595ee4..51be6427c88 100644
--- a/source/blender/makesrna/rna_cleanup/rna_booleans.txt
+++ b/source/blender/makesrna/rna_cleanup/rna_booleans.txt
@@ -237,10 +237,10 @@ EnvironmentMap.ignore_layers -> layers_ignore: boolean Hide objects on the
EnvironmentMapTexture.use_filter_size_min -> use_minimum_filter_size: boolean Use Filter Size as a minimal filter value in pixels
EnvironmentMapTexture.mipmap -> use_mipmap: boolean Uses auto-generated MIP maps for the image
EnvironmentMapTexture.mipmap_gauss -> use_mipmap_gauss: boolean Uses Gauss filter to sample down MIP maps
-Event.alt -> alt: boolean, (read-only) True when the Alt/Option key is held
-Event.ctrl -> ctrl: boolean, (read-only) True when the Ctrl key is held
-Event.oskey -> oskey: boolean, (read-only) True when the Cmd key is held
-Event.shift -> shift: boolean, (read-only) True when the Shift key is held
+Event.alt -> is_pressed_alt: boolean, (read-only) True when the Alt/Option key is held
+Event.ctrl -> is_pressed_ctrl: boolean, (read-only) True when the Ctrl key is held
+Event.oskey -> is_pressed_cmd: boolean, (read-only) True when the Cmd key is held
+Event.shift -> is_pressed_shift: boolean, (read-only) True when the Shift key is held
ExplodeModifier.alive -> show_alive: boolean Show mesh when particles are alive
ExplodeModifier.dead -> show_dead: boolean Show mesh when particles are dead
ExplodeModifier.size -> use_size: boolean Use particle size for the shrapnel
@@ -394,12 +394,12 @@ KeyMap.items_expanded -> show_expanded_items: boolean Expanded in the user
KeyMap.modal -> is_modal: boolean, (read-only) Indicates that a keymap is used for translate modal events for an operator
KeyMap.user_defined -> is_user_defined: boolean Keymap is defined by the user
KeyMapItem.active -> active: boolean Activate or deactivate item
-KeyMapItem.alt -> alt: boolean Alt key pressed
-KeyMapItem.any -> any: boolean Any modifier keys pressed
-KeyMapItem.ctrl -> ctrl: boolean Control key pressed
+KeyMapItem.alt -> pressed_alt: boolean Alt key pressed
+KeyMapItem.any -> pressed_any: boolean Any modifier keys pressed
+KeyMapItem.ctrl -> pressed_ctrl: boolean Control key pressed
KeyMapItem.expanded -> show_expanded: boolean Show key map event and property details in the user interface
-KeyMapItem.oskey -> oskey: boolean Operating system key pressed
-KeyMapItem.shift -> shift: boolean Shift key pressed
+KeyMapItem.oskey -> pressed_cmd: boolean Operating system key pressed
+KeyMapItem.shift -> pressed_shift: boolean Shift key pressed
KeyboardSensor.all_keys -> use_all_keys: boolean Trigger this sensor on any keystroke
KeyingSet.absolute -> use_absolute: boolean Keying Set defines specific paths/settings to be keyframed (i.e. is not reliant on context info)
KeyingSet.insertkey_needed -> use_insertkey_needed: boolean Only insert keyframes where they're needed in the relevant F-Curves
diff --git a/source/blender/makesrna/rna_cleanup/rna_cleaner.py b/source/blender/makesrna/rna_cleanup/rna_cleaner.py
index f39ee586237..dbc27c8e5d5 100755
--- a/source/blender/makesrna/rna_cleanup/rna_cleaner.py
+++ b/source/blender/makesrna/rna_cleanup/rna_cleaner.py
@@ -268,10 +268,9 @@ def main():
sort_choices = ['note','changed','class','from','to','kw']
default_sort_choice = sort_choices[0]
- #kw_prefixes = ['invert','is','lock','show','show_only','use','use_only']
- #kw = ['hide','select','layer','state']
- kw_prefixes = ['has','invert','is','lock','layers','show','show_only','states','use','use_only']
- kw = ['layers','states','value']
+ kw_prefixes = [ 'active','apply','bl','exclude','has','invert','is','lock', \
+ 'pressed','show','show_only','use','use_only','layers','states']
+ kw = ['active','hide','invert','select','layers','mute','states','use','lock']
input_filename, sort_priority = check_commandline()
props_list,props_length_max = get_props(input_filename)