diff options
author | William Reynish <billreynish> | 2018-09-11 09:49:52 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-09-11 09:52:18 +0300 |
commit | a0581daf753a81ac1e410c6aa0c9cfd233b04793 (patch) | |
tree | 3a1fc763e6d92fa754c8e73e4f9b7c99461ca78a /release/scripts/startup/bl_ui/properties_object.py | |
parent | 17e57859e734681f33dc20bed76881a4e8ee47f5 (diff) |
UI: use property split for motion paths
Diffstat (limited to 'release/scripts/startup/bl_ui/properties_object.py')
-rw-r--r-- | release/scripts/startup/bl_ui/properties_object.py | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/release/scripts/startup/bl_ui/properties_object.py b/release/scripts/startup/bl_ui/properties_object.py index 4f95f1fbf05..65126691d8c 100644 --- a/release/scripts/startup/bl_ui/properties_object.py +++ b/release/scripts/startup/bl_ui/properties_object.py @@ -328,6 +328,7 @@ class OBJECT_PT_duplication(ObjectButtonsPanel, Panel): from .properties_animviz import ( MotionPathButtonsPanel, + MotionPathButtonsPanel_display, OnionSkinButtonsPanel, ) @@ -351,6 +352,26 @@ class OBJECT_PT_motion_paths(MotionPathButtonsPanel, Panel): self.draw_settings(context, avs, mpath) +class OBJECT_PT_motion_paths_display(MotionPathButtonsPanel_display, Panel): + #bl_label = "Object Motion Paths" + bl_context = "object" + bl_parent_id = "OBJECT_PT_motion_paths" + bl_options = {'DEFAULT_CLOSED'} + + @classmethod + def poll(cls, context): + return (context.object) + + def draw(self, context): + # layout = self.layout + + ob = context.object + avs = ob.animation_visualization + mpath = ob.motion_path + + self.draw_settings(context, avs, mpath) + + class OBJECT_PT_onion_skinning(OnionSkinButtonsPanel): # , Panel): # inherit from panel when ready #bl_label = "Object Onion Skinning" bl_context = "object" @@ -381,6 +402,7 @@ classes = ( OBJECT_PT_duplication, OBJECT_PT_display, OBJECT_PT_motion_paths, + OBJECT_PT_motion_paths_display, OBJECT_PT_custom_props, ) |