diff options
author | Richard Antalik <richardantalik@gmail.com> | 2019-05-23 21:50:15 +0300 |
---|---|---|
committer | Richard Antalik <richardantalik@gmail.com> | 2019-05-23 21:50:15 +0300 |
commit | 1fd7b380f4cf8a0489b405de2819f228a4da5ea2 (patch) | |
tree | a829fdf55a649e1c1d6ebca9a6006ad08e415755 /release/scripts | |
parent | a3bc8690387b53234234d1c8f993fa04974d3034 (diff) |
VSE: remove lazy loading for strip crop and transform
Lazy loading prevented showing values in UI.
Now we just gray them out if not used.
Diffstat (limited to 'release/scripts')
-rw-r--r-- | release/scripts/startup/bl_ui/space_sequencer.py | 25 |
1 files changed, 10 insertions, 15 deletions
diff --git a/release/scripts/startup/bl_ui/space_sequencer.py b/release/scripts/startup/bl_ui/space_sequencer.py index 14c5eb6aa22..134995bf469 100644 --- a/release/scripts/startup/bl_ui/space_sequencer.py +++ b/release/scripts/startup/bl_ui/space_sequencer.py @@ -847,13 +847,10 @@ class SEQUENCER_PT_adjust_offset(SequencerButtonsPanel, Panel): layout.use_property_split = True layout.use_property_decorate = False - if strip.use_translation: - col = layout.column(align=True) - col.prop(strip.transform, "offset_x", text="Position X") - col.prop(strip.transform, "offset_y", text="Y") - col.active = strip.use_translation - else: - layout.separator() + col = layout.column(align=True) + col.prop(strip.transform, "offset_x", text="Position X") + col.prop(strip.transform, "offset_y", text="Position Y") + col.active = strip.use_translation class SEQUENCER_PT_adjust_crop(SequencerButtonsPanel, Panel): @@ -877,14 +874,12 @@ class SEQUENCER_PT_adjust_crop(SequencerButtonsPanel, Panel): layout.use_property_split = True layout.use_property_decorate = False - if strip.use_crop: - col = layout.column(align=True) - col.prop(strip.crop, "min_x") - col.prop(strip.crop, "max_x") - col.prop(strip.crop, "max_y") - col.prop(strip.crop, "min_y") - else: - layout.separator() + col = layout.column(align=True) + col.prop(strip.crop, "min_x") + col.prop(strip.crop, "max_x") + col.prop(strip.crop, "max_y") + col.prop(strip.crop, "min_y") + col.active = strip.use_crop class SEQUENCER_PT_effect(SequencerButtonsPanel, Panel): |