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:
authorJoshua Leung <aligorith@gmail.com>2012-05-17 14:10:11 +0400
committerJoshua Leung <aligorith@gmail.com>2012-05-17 14:10:11 +0400
commitc7c937547b0ceb622262ea064db71364f61669c6 (patch)
tree85fd6d69e1201997f0ccbeb7ef2abcb95b55003c /release/scripts/startup/bl_ui/properties_scene.py
parentc406ce29742fd44995f29768e593f00a7805df2c (diff)
KeyingSets UI stuff - Replaced names used in RNA enum instead of redefining
manually in UI files
Diffstat (limited to 'release/scripts/startup/bl_ui/properties_scene.py')
-rw-r--r--release/scripts/startup/bl_ui/properties_scene.py12
1 files changed, 2 insertions, 10 deletions
diff --git a/release/scripts/startup/bl_ui/properties_scene.py b/release/scripts/startup/bl_ui/properties_scene.py
index 329dc6d6a01..af8fcc6cbdc 100644
--- a/release/scripts/startup/bl_ui/properties_scene.py
+++ b/release/scripts/startup/bl_ui/properties_scene.py
@@ -93,14 +93,6 @@ class SCENE_PT_unit(SceneButtonsPanel, Panel):
row.prop(unit, "use_separate")
-def draw_keyingset_options(data, layout):
- # NOTE: keep in sync with rna_def_common_keying_flags() in rna_animation.c
- # These are defined out like this because the standard names are too long
- layout.prop_enum(data, "bl_options", text="Only Needed", value='INSERTKEY_NEEDED')
- layout.prop_enum(data, "bl_options", text="Visual Keying", value='INSERTKEY_VISUAL')
- layout.prop_enum(data, "bl_options", text="XYZ=RGB Coloring", value='INSERTKEY_XYZ_TO_RGB')
-
-
class SCENE_PT_keying_sets(SceneButtonsPanel, Panel):
bl_label = "Keying Sets"
COMPAT_ENGINES = {'BLENDER_RENDER', 'BLENDER_GAME'}
@@ -132,7 +124,7 @@ class SCENE_PT_keying_sets(SceneButtonsPanel, Panel):
col = row.column(align=True)
col.label(text="Keyframing Settings:")
- draw_keyingset_options(ks, col)
+ col.prop(ks, "bl_options")
class SCENE_PT_keying_set_paths(SceneButtonsPanel, Panel):
@@ -188,7 +180,7 @@ class SCENE_PT_keying_set_paths(SceneButtonsPanel, Panel):
col = row.column(align=True)
col.label(text="Keyframing Settings:")
- draw_keyingset_options(ks, col)
+ col.prop(ksp, "bl_options")
class SCENE_PT_physics(SceneButtonsPanel, Panel):