Changeset View
Changeset View
Standalone View
Standalone View
release/scripts/startup/bl_ui/space_dopesheet.py
| Show First 20 Lines • Show All 543 Lines • ▼ Show 20 Lines | def draw_generic_panel(cls, _context, layout, action): | ||||
| row.prop(action, "frame_end", text="End") | row.prop(action, "frame_end", text="End") | ||||
| col.prop(action, "use_cyclic") | col.prop(action, "use_cyclic") | ||||
| class DOPESHEET_PT_custom_props_action(PropertyPanel, Panel): | class DOPESHEET_PT_custom_props_action(PropertyPanel, Panel): | ||||
| bl_space_type = 'DOPESHEET_EDITOR' | bl_space_type = 'DOPESHEET_EDITOR' | ||||
| bl_region_type = 'UI' | bl_region_type = 'UI' | ||||
| bl_category = "Item" | |||||
| bl_context = 'data' | bl_context = 'data' | ||||
| _context_path = "active_object.animation_data.action" | _context_path = "selected_visible_actions[0]" | ||||
| _property_type = bpy.types.Action | _property_type = bpy.types.Action | ||||
| @classmethod | @classmethod | ||||
| def poll(cls, context): | def poll(cls, context): | ||||
| return context.active_object \ | return bool(context.selected_visible_actions) | ||||
| and context.active_object.animation_data \ | |||||
| and context.active_object.animation_data.action | |||||
| class DOPESHEET_PT_action(DopesheetActionPanelBase, Panel): | class DOPESHEET_PT_action(DopesheetActionPanelBase, Panel): | ||||
| bl_space_type = 'DOPESHEET_EDITOR' | bl_space_type = 'DOPESHEET_EDITOR' | ||||
| bl_category = "Item" | bl_category = "Item" | ||||
| @classmethod | @classmethod | ||||
| def poll(cls, context): | def poll(cls, context): | ||||
| ▲ Show 20 Lines • Show All 274 Lines • Show Last 20 Lines | |||||