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:
Diffstat (limited to 'release/scripts/startup/bl_ui/space_dopesheet.py')
-rw-r--r--release/scripts/startup/bl_ui/space_dopesheet.py22
1 files changed, 19 insertions, 3 deletions
diff --git a/release/scripts/startup/bl_ui/space_dopesheet.py b/release/scripts/startup/bl_ui/space_dopesheet.py
index 3d792eec3e0..a2e691c2d9f 100644
--- a/release/scripts/startup/bl_ui/space_dopesheet.py
+++ b/release/scripts/startup/bl_ui/space_dopesheet.py
@@ -15,6 +15,8 @@ from bl_ui.properties_grease_pencil_common import (
GreasePencilLayerDisplayPanel,
)
+from rna_prop_ui import PropertyPanel
+
#######################################
# DopeSheet Filtering - Header Buttons
@@ -544,16 +546,29 @@ class DopesheetActionPanelBase:
col.prop(action, "use_cyclic")
+class DOPESHEET_PT_custom_props_action(PropertyPanel, Panel):
+ bl_space_type = 'DOPESHEET_EDITOR'
+ bl_category = "Action"
+ bl_region_type = 'UI'
+ bl_context = 'data'
+ _context_path = "active_action"
+ _property_type = bpy.types.Action
+
+ @classmethod
+ def poll(cls, context):
+ return bool(context.active_action)
+
+
class DOPESHEET_PT_action(DopesheetActionPanelBase, Panel):
bl_space_type = 'DOPESHEET_EDITOR'
- bl_category = "Item"
+ bl_category = "Action"
@classmethod
def poll(cls, context):
- return bool(context.selected_visible_actions)
+ return bool(context.active_action)
def draw(self, context):
- action = context.selected_visible_actions[0]
+ action = context.active_action
self.draw_generic_panel(context, self.layout, action)
@@ -817,6 +832,7 @@ classes = (
DOPESHEET_PT_gpencil_layer_adjustments,
DOPESHEET_PT_gpencil_layer_relations,
DOPESHEET_PT_gpencil_layer_display,
+ DOPESHEET_PT_custom_props_action,
)
if __name__ == "__main__": # only for live edit.