import common classes from bpy.types, saves ~1000 python getattrs on startup.

This commit is contained in:
2011-08-12 06:57:00 +00:00
parent 8fd246cb70
commit b374ab919a
59 changed files with 624 additions and 565 deletions

View File

@@ -18,9 +18,10 @@
# <pep8 compliant>
import bpy
from bpy.types import Header, Menu
class TIME_HT_header(bpy.types.Header):
class TIME_HT_header(Header):
bl_space_type = 'TIMELINE'
def draw(self, context):
@@ -91,7 +92,7 @@ class TIME_HT_header(bpy.types.Header):
row.operator("anim.keyframe_delete", text="", icon='KEY_DEHLT')
class TIME_MT_view(bpy.types.Menu):
class TIME_MT_view(Menu):
bl_label = "View"
def draw(self, context):
@@ -116,7 +117,7 @@ class TIME_MT_view(bpy.types.Menu):
layout.operator("marker.camera_bind")
class TIME_MT_cache(bpy.types.Menu):
class TIME_MT_cache(Menu):
bl_label = "Cache"
def draw(self, context):
@@ -136,7 +137,7 @@ class TIME_MT_cache(bpy.types.Menu):
col.prop(st, "cache_smoke")
class TIME_MT_frame(bpy.types.Menu):
class TIME_MT_frame(Menu):
bl_label = "Frame"
def draw(self, context):
@@ -162,7 +163,7 @@ class TIME_MT_frame(bpy.types.Menu):
sub.menu("TIME_MT_autokey")
class TIME_MT_playback(bpy.types.Menu):
class TIME_MT_playback(Menu):
bl_label = "Playback"
def draw(self, context):
@@ -187,7 +188,7 @@ class TIME_MT_playback(bpy.types.Menu):
layout.prop(scene, "use_audio_scrub")
class TIME_MT_autokey(bpy.types.Menu):
class TIME_MT_autokey(Menu):
bl_label = "Auto-Keyframing Mode"
def draw(self, context):