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-01-10 02:44:01 +0300
committerCampbell Barton <ideasman42@gmail.com>2010-01-10 02:44:01 +0300
commit08c9ecb3b043322f34e55f335f76dc2657c187ef (patch)
tree8dc0954f4bd0ca83c76afa407aa7b5ffb1e9de38 /release/scripts/ui/space_nla.py
parent99b713e8b0fc7a395515c32616b47b8209dcd0c2 (diff)
RNA/Py API
change how data is added. eg. bpy.data.add_mesh(name) --> bpy.data.meshes.new(name) bpy.data.remove_lamp(lamp) --> bpy.data.lamps.remove(lamp) image and texture stil use add_* funcs
Diffstat (limited to 'release/scripts/ui/space_nla.py')
-rw-r--r--release/scripts/ui/space_nla.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/release/scripts/ui/space_nla.py b/release/scripts/ui/space_nla.py
index 285ada5f46e..0060941b476 100644
--- a/release/scripts/ui/space_nla.py
+++ b/release/scripts/ui/space_nla.py
@@ -60,10 +60,7 @@ class NLA_MT_view(bpy.types.Menu):
layout.separator()
layout.prop(st, "show_cframe_indicator")
- if st.show_seconds:
- layout.operator("anim.time_toggle", text="Show Frames")
- else:
- layout.operator("anim.time_toggle", text="Show Seconds")
+ layout.operator("anim.time_toggle", text="Show Frames" if st.show_seconds else "Show Seconds")
layout.prop(st, "show_strip_curves")