GPv3: Preparation for retrieving falloff factor in multi frame editing mode #118108

Merged
Falk David merged 5 commits from SietseB/blender:gpv3-calculate-multi-frame-falloff into main 2024-02-13 12:04:54 +01:00
1 changed files with 22 additions and 1 deletions
Showing only changes of commit 63a3f8179a - Show all commits

View File

@ -839,7 +839,7 @@ class VIEW3D_HT_header(Header):
sub = row.row(align=True)
sub.enabled = tool_settings.use_grease_pencil_multi_frame_editing
sub.popover(
panel="VIEW3D_PT_gpencil_multi_frame",
panel="VIEW3D_PT_grease_pencil_multi_frame",
text="Multiframe",
)
@ -7997,6 +7997,26 @@ class VIEW3D_PT_gpencil_multi_frame(Panel):
bl_region_type = 'HEADER'
bl_label = "Multi Frame"
def draw(self, context):
layout = self.layout
tool_settings = context.tool_settings
gpd = context.gpencil_data
settings = tool_settings.gpencil_sculpt
col = layout.column(align=True)
col.prop(settings, "use_multiframe_falloff")
# Falloff curve
if gpd.use_multiedit and settings.use_multiframe_falloff:
layout.template_curve_mapping(settings, "multiframe_falloff_curve", brush=True)
class VIEW3D_PT_grease_pencil_multi_frame(Panel):
bl_space_type = 'VIEW_3D'
bl_region_type = 'HEADER'
bl_label = "Multi Frame"
def draw(self, context):
layout = self.layout
tool_settings = context.tool_settings
@ -9031,6 +9051,7 @@ classes = (
VIEW3D_PT_grease_pencil,
VIEW3D_PT_annotation_onion,
VIEW3D_PT_gpencil_multi_frame,
VIEW3D_PT_grease_pencil_multi_frame,
VIEW3D_PT_gpencil_curve_edit,
VIEW3D_PT_gpencil_sculpt_automasking,
VIEW3D_PT_quad_view,