Anim: rearrange the motion paths panel

Move the "Calculation Range" property above the "Frame Range" properties,
as you have to select the former before adjusting the latter.
This commit is contained in:
Sybren A. Stüvel
2022-12-22 11:10:35 +01:00
parent 0bcfe2788d
commit b617ddc004

View File

@@ -18,13 +18,15 @@ class MotionPathButtonsPanel:
mps = avs.motion_path
# Display Range
layout.use_property_split = True
layout.use_property_decorate = False
# Display Range
col = layout.column(align=True)
col.prop(mps, "type")
range_group = col.column(align=True)
range_group.active = mps.type == 'RANGE'
range_group.prop(mps, "range", text="Calculation Range")
if mps.type == 'CURRENT_FRAME':
col = layout.column(align=True)
col.prop(mps, "frame_before", text="Frame Range Before")
@@ -38,10 +40,6 @@ class MotionPathButtonsPanel:
start_end_group.prop(mps, "frame_end", text="End")
col.prop(mps, "frame_step", text="Step")
# Calculation Range
col = layout.column(align=True)
col.prop(mps, "range", text="Calculation Range")
if mpath:
col = layout.column(align=True)
row = col.row(align=True)