UI: Improve Movie Clip Display Aspect Ratio
- Disable animation support (consistent with image editor) - Use property split layout
This commit is contained in:
@@ -71,7 +71,10 @@ class CLIP_PT_clip_display(Panel):
|
||||
clip = sc.clip
|
||||
if clip:
|
||||
col = layout.column()
|
||||
col.prop(clip, "display_aspect", text="Display Aspect Ratio")
|
||||
col.use_property_split = True
|
||||
col.use_property_decorate = False
|
||||
col.separator()
|
||||
col.prop(clip, "display_aspect", text="Aspect Ratio")
|
||||
|
||||
|
||||
class CLIP_HT_header(Header):
|
||||
|
||||
@@ -355,6 +355,7 @@ static void rna_def_movieclip(BlenderRNA *brna)
|
||||
RNA_def_property_array(prop, 2);
|
||||
RNA_def_property_range(prop, 0.1f, FLT_MAX);
|
||||
RNA_def_property_ui_range(prop, 0.1f, 5000.0f, 1, 2);
|
||||
RNA_def_property_clear_flag(prop, PROP_ANIMATABLE);
|
||||
RNA_def_property_ui_text(
|
||||
prop, "Display Aspect", "Display Aspect for this clip, does not affect rendering");
|
||||
RNA_def_property_update(prop, NC_MOVIECLIP | ND_DISPLAY, nullptr);
|
||||
|
||||
Reference in New Issue
Block a user