Fix typo in image editor grease pencil panel
[blender.git] / release / scripts / startup / bl_ui / properties_grease_pencil_common.py
1 # ##### BEGIN GPL LICENSE BLOCK #####
2 #
3 #  This program is free software; you can redistribute it and/or
4 #  modify it under the terms of the GNU General Public License
5 #  as published by the Free Software Foundation; either version 2
6 #  of the License, or (at your option) any later version.
7 #
8 #  This program is distributed in the hope that it will be useful,
9 #  but WITHOUT ANY WARRANTY; without even the implied warranty of
10 #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
11 #  GNU General Public License for more details.
12 #
13 #  You should have received a copy of the GNU General Public License
14 #  along with this program; if not, write to the Free Software Foundation,
15 #  Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16 #
17 # ##### END GPL LICENSE BLOCK #####
18
19 # <pep8 compliant>
20
21
22 from bpy.types import Menu, UIList
23
24
25 def gpencil_stroke_placement_settings(context, layout):
26     if context.space_data.type == 'VIEW_3D':
27         propname = "gpencil_stroke_placement_view3d"
28     elif context.space_data.type == 'SEQUENCE_EDITOR':
29         propname = "gpencil_stroke_placement_sequencer_preview"
30     elif context.space_data.type == 'IMAGE_EDITOR':
31         propname = "gpencil_stroke_placement_image_editor"
32     else:
33         propname = "gpencil_stroke_placement_view2d"
34
35     ts = context.tool_settings
36
37     col = layout.column(align=True)
38
39     col.label(text="Stroke Placement:")
40
41     row = col.row(align=True)
42     row.prop_enum(ts, propname, 'VIEW')
43     row.prop_enum(ts, propname, 'CURSOR')
44
45     if context.space_data.type == 'VIEW_3D':
46         row = col.row(align=True)
47         row.prop_enum(ts, propname, 'SURFACE')
48         row.prop_enum(ts, propname, 'STROKE')
49
50         row = col.row(align=False)
51         row.active = getattr(ts, propname) in {'SURFACE', 'STROKE'}
52         row.prop(ts, "use_gpencil_stroke_endpoints")
53
54
55 class GreasePencilDrawingToolsPanel:
56     # subclass must set
57     # bl_space_type = 'IMAGE_EDITOR'
58     bl_label = "Grease Pencil"
59     bl_category = "Grease Pencil"
60     bl_region_type = 'TOOLS'
61
62     @staticmethod
63     def draw(self, context):
64         layout = self.layout
65
66         col = layout.column(align=True)
67
68         col.label(text="Draw:")
69         row = col.row(align=True)
70         row.operator("gpencil.draw", icon='GREASEPENCIL', text="Draw").mode = 'DRAW'
71         row.operator("gpencil.draw", icon='FORCE_CURVE', text="Erase").mode = 'ERASER'  # XXX: Needs a dedicated icon
72
73         row = col.row(align=True)
74         row.operator("gpencil.draw", icon='LINE_DATA', text="Line").mode = 'DRAW_STRAIGHT'
75         row.operator("gpencil.draw", icon='MESH_DATA', text="Poly").mode = 'DRAW_POLY'
76
77         sub = col.column(align=True)
78         sub.prop(context.tool_settings, "use_gpencil_additive_drawing", text="Additive Drawing")
79         sub.prop(context.tool_settings, "use_gpencil_continuous_drawing", text="Continuous Drawing")
80
81         col.separator()
82         col.separator()
83
84         if context.space_data.type in {'VIEW_3D', 'CLIP_EDITOR'}:
85             col.separator()
86             col.label("Data Source:")
87             row = col.row(align=True)
88             if context.space_data.type == 'VIEW_3D':
89                 row.prop(context.tool_settings, "grease_pencil_source", expand=True)
90             elif context.space_data.type == 'CLIP_EDITOR':
91                 row.prop(context.space_data, "grease_pencil_source", expand=True)
92         
93         col.separator()
94         col.separator()
95
96         gpencil_stroke_placement_settings(context, col)
97
98         gpd = context.gpencil_data
99
100         if gpd:
101             layout.separator()
102             layout.separator()
103
104             col = layout.column(align=True)
105             col.prop(gpd, "use_stroke_edit_mode", text="Enable Editing", icon='EDIT', toggle=True)
106
107         if context.space_data.type == 'VIEW_3D':
108             col.separator()
109             col.separator()
110
111             col.label(text="Tools:")
112             col.operator("gpencil.convert", text="Convert...")
113             col.operator("view3d.ruler")
114
115
116 class GreasePencilStrokeEditPanel:
117     # subclass must set
118     # bl_space_type = 'IMAGE_EDITOR'
119     bl_label = "Edit Strokes"
120     bl_category = "Grease Pencil"
121     bl_region_type = 'TOOLS'
122     bl_options = {'DEFAULT_CLOSED'}
123
124     @classmethod
125     def poll(cls, context):
126         if context.gpencil_data is None:
127             return False
128
129         gpd = context.gpencil_data
130         return bool(context.editable_gpencil_strokes) and bool(gpd.use_stroke_edit_mode)
131
132     @staticmethod
133     def draw(self, context):
134         layout = self.layout
135
136         layout.label(text="Select:")
137         col = layout.column(align=True)
138         col.operator("gpencil.select_all", text="Select All")
139         col.operator("gpencil.select_border")
140         col.operator("gpencil.select_circle")
141
142         layout.separator()
143
144         col = layout.column(align=True)
145         col.operator("gpencil.select_linked")
146         col.operator("gpencil.select_more")
147         col.operator("gpencil.select_less")
148
149         layout.separator()
150
151         layout.label(text="Edit:")
152         row = layout.row(align=True)
153         row.operator("gpencil.copy", text="Copy")
154         row.operator("gpencil.paste", text="Paste")
155
156         col = layout.column(align=True)
157         col.operator("gpencil.delete", text="Delete")
158         col.operator("gpencil.duplicate_move", text="Duplicate")
159         col.operator("transform.mirror", text="Mirror")
160
161         layout.separator()
162
163         col = layout.column(align=True)
164         col.operator("transform.translate")                # icon='MAN_TRANS'
165         col.operator("transform.rotate")                   # icon='MAN_ROT'
166         col.operator("transform.resize", text="Scale")     # icon='MAN_SCALE'
167
168         layout.separator()
169
170         col = layout.column(align=True)
171         col.operator("transform.bend", text="Bend")
172         col.operator("transform.shear", text="Shear")
173         col.operator("transform.tosphere", text="To Sphere")
174
175
176 class GreasePencilStrokeSculptPanel:
177     # subclass must set
178     # bl_space_type = 'IMAGE_EDITOR'
179     bl_label = "Sculpt Strokes"
180     bl_category = "Grease Pencil"
181     bl_region_type = 'TOOLS'
182     bl_options = {'DEFAULT_CLOSED'}
183
184     @classmethod
185     def poll(cls, context):
186         if context.gpencil_data is None:
187             return False
188
189         gpd = context.gpencil_data
190         return bool(context.editable_gpencil_strokes) and bool(gpd.use_stroke_edit_mode)
191
192     @staticmethod
193     def draw(self, context):
194         layout = self.layout
195         
196         settings = context.tool_settings.gpencil_sculpt
197         tool = settings.tool
198         brush = settings.brush
199         
200         layout.column().prop(settings, "tool", expand=True)
201
202         col = layout.column()
203         col.prop(brush, "size", slider=True)
204         row = col.row(align=True)
205         row.prop(brush, "strength", slider=True)
206         row.prop(brush, "use_pressure_strength", text="")
207         col.prop(brush, "use_falloff")
208
209         layout.separator()
210
211         if settings.tool == 'THICKNESS':
212             layout.row().prop(brush, "direction", expand=True)
213         elif settings.tool == 'PINCH':
214             row = layout.row(align=True)
215             row.prop_enum(brush, "direction", 'ADD', text="Pinch")
216             row.prop_enum(brush, "direction", 'SUBTRACT', text="Inflate")
217         elif settings.tool == 'TWIST':
218             row = layout.row(align=True)
219             row.prop_enum(brush, "direction", 'SUBTRACT', text="CW")
220             row.prop_enum(brush, "direction", 'ADD', text="CCW")
221
222         layout.separator()
223         layout.prop(settings, "use_select_mask")
224
225         if settings.tool == 'SMOOTH':
226             layout.prop(brush, "affect_pressure")
227
228
229 ###############################
230
231 class GPENCIL_PIE_tool_palette(Menu):
232     """A pie menu for quick access to Grease Pencil tools"""
233     bl_label = "Grease Pencil Tools"
234
235     def draw(self, context):
236         layout = self.layout
237
238         pie = layout.menu_pie()
239         gpd = context.gpencil_data
240
241         # W - Drawing Types
242         col = pie.column()
243         col.operator("gpencil.draw", text="Draw", icon='GREASEPENCIL').mode = 'DRAW'
244         col.operator("gpencil.draw", text="Straight Lines", icon='LINE_DATA').mode = 'DRAW_STRAIGHT'
245         col.operator("gpencil.draw", text="Poly", icon='MESH_DATA').mode = 'DRAW_POLY'
246
247         # E - Eraser
248         # XXX: needs a dedicated icon...
249         col = pie.column()
250         col.operator("gpencil.draw", text="Eraser", icon='FORCE_CURVE').mode = 'ERASER'
251
252         # E - "Settings" Palette is included here too, since it needs to be in a stable position...
253         if gpd and gpd.layers.active:
254             col.separator()
255             col.operator("wm.call_menu_pie", text="Settings...", icon='SCRIPTWIN').name = "GPENCIL_PIE_settings_palette"
256
257         # Editing tools
258         if gpd:
259             if gpd.use_stroke_edit_mode and context.editable_gpencil_strokes:
260                 # S - Exit Edit Mode
261                 pie.operator("gpencil.editmode_toggle", text="Exit Edit Mode", icon='EDIT')
262
263                 # N - Transforms
264                 col = pie.column()
265                 row = col.row(align=True)
266                 row.operator("transform.translate", icon='MAN_TRANS')
267                 row.operator("transform.rotate", icon='MAN_ROT')
268                 row.operator("transform.resize", text="Scale", icon='MAN_SCALE')
269                 row = col.row(align=True)
270                 row.label("Proportional Edit:")
271                 row.prop(context.tool_settings, "proportional_edit", text="", icon_only=True)
272                 row.prop(context.tool_settings, "proportional_edit_falloff", text="", icon_only=True)
273
274                 # NW - Select (Non-Modal)
275                 col = pie.column()
276                 col.operator("gpencil.select_all", text="Select All", icon='PARTICLE_POINT')
277                 col.operator("gpencil.select_all", text="Select Inverse", icon='BLANK1')
278                 col.operator("gpencil.select_linked", text="Select Linked", icon='LINKED')
279
280                 # NE - Select (Modal)
281                 col = pie.column()
282                 col.operator("gpencil.select_border", text="Border Select", icon='BORDER_RECT')
283                 col.operator("gpencil.select_circle", text="Circle Select", icon='META_EMPTY')
284                 col.operator("gpencil.select_lasso", text="Lasso Select", icon='BORDER_LASSO')
285
286                 # SW - Edit Tools
287                 col = pie.column()
288                 col.operator("gpencil.duplicate_move", icon='PARTICLE_PATH', text="Duplicate")
289                 col.operator("gpencil.delete", icon='X', text="Delete...")
290
291                 # SE - More Tools
292                 pie.operator("wm.call_menu_pie", text="More...").name = "GPENCIL_PIE_tools_more"
293             else:
294                 # Toggle Edit Mode
295                 pie.operator("gpencil.editmode_toggle", text="Enable Stroke Editing", icon='EDIT')
296
297
298 class GPENCIL_PIE_settings_palette(Menu):
299     """A pie menu for quick access to Grease Pencil settings"""
300     bl_label = "Grease Pencil Settings"
301
302     @classmethod
303     def poll(cls, context):
304         return bool(context.gpencil_data and context.active_gpencil_layer)
305
306     def draw(self, context):
307         layout = self.layout
308
309         pie = layout.menu_pie()
310         # gpd = context.gpencil_data
311         gpl = context.active_gpencil_layer
312
313         # W - Stroke draw settings
314         col = pie.column(align=True)
315         col.label(text="Stroke")
316         col.prop(gpl, "color", text="")
317         col.prop(gpl, "alpha", text="", slider=True)
318
319         # E - Fill draw settings
320         col = pie.column(align=True)
321         col.label(text="Fill")
322         col.prop(gpl, "fill_color", text="")
323         col.prop(gpl, "fill_alpha", text="", slider=True)
324
325         # S - Layer settings
326         col = pie.column()
327         col.prop(gpl, "line_width", slider=True)
328         # col.prop(gpl, "use_volumetric_strokes")
329         col.prop(gpl, "use_onion_skinning")
330
331         # N - Active Layer
332         col = pie.column()
333         col.label("Active Layer:      ")
334
335         row = col.row()
336         row.operator_context = 'EXEC_REGION_WIN'
337         row.operator_menu_enum("gpencil.layer_change", "layer", text="", icon='GREASEPENCIL')
338         row.prop(gpl, "info", text="")
339         row.operator("gpencil.layer_remove", text="", icon='X')
340
341         row = col.row()
342         row.prop(gpl, "lock")
343         row.prop(gpl, "hide")
344
345
346 class GPENCIL_PIE_tools_more(Menu):
347     """A pie menu for accessing more Grease Pencil tools"""
348     bl_label = "More Grease Pencil Tools"
349
350     @classmethod
351     def poll(cls, context):
352         gpd = context.gpencil_data
353         return bool(gpd and gpd.use_stroke_edit_mode and context.editable_gpencil_strokes)
354
355     def draw(self, context):
356         layout = self.layout
357
358         pie = layout.menu_pie()
359         # gpd = context.gpencil_data
360
361         col = pie.column(align=True)
362         col.operator("gpencil.copy", icon='COPYDOWN', text="Copy")
363         col.operator("gpencil.paste", icon='PASTEDOWN', text="Paste")
364
365         col = pie.column(align=True)
366         col.operator("gpencil.select_more", icon='ZOOMIN')
367         col.operator("gpencil.select_less", icon='ZOOMOUT')
368
369         pie.operator("transform.mirror", icon='MOD_MIRROR')
370         pie.operator("transform.bend", icon='MOD_SIMPLEDEFORM')
371         pie.operator("transform.shear", icon='MOD_TRIANGULATE')
372         pie.operator("transform.tosphere", icon='MOD_MULTIRES')
373
374         pie.operator("gpencil.convert", icon='OUTLINER_OB_CURVE', text="Convert...")
375         pie.operator("wm.call_menu_pie", text="Back to Main Palette...").name = "GPENCIL_PIE_tool_palette"
376
377
378 class GPENCIL_PIE_sculpt(Menu):
379     """A pie menu for accessing Grease Pencil stroke sculpting settings"""
380     bl_label = "Grease Pencil Sculpt"
381
382     @classmethod
383     def poll(cls, context):
384         gpd = context.gpencil_data
385         return bool(gpd and gpd.use_stroke_edit_mode and context.editable_gpencil_strokes)
386
387     def draw(self, context):
388         layout = self.layout
389
390         pie = layout.menu_pie()
391
392         settings = context.tool_settings.gpencil_sculpt
393         brush = settings.brush
394
395         # W - Launch Sculpt Mode
396         col = pie.column()
397         #col.label("Tool:")
398         col.prop(settings, "tool", text="")
399         col.operator("gpencil.brush_paint", text="Sculpt", icon='SCULPTMODE_HLT')
400
401         # E - Common Settings
402         col = pie.column(align=True)
403         col.prop(brush, "size", slider=True)
404         row = col.row(align=True)
405         row.prop(brush, "strength", slider=True)
406        # row.prop(brush, "use_pressure_strength", text="", icon_only=True)
407         col.prop(brush, "use_falloff")
408
409         # S - Change Brush Type Shortcuts
410         row = pie.row()
411         row.prop_enum(settings, "tool", value='GRAB')
412         row.prop_enum(settings, "tool", value='PUSH')
413         row.prop_enum(settings, "tool", value='CLONE')
414
415         # N - Change Brush Type Shortcuts
416         row = pie.row()
417         row.prop_enum(settings, "tool", value='SMOOTH')
418         row.prop_enum(settings, "tool", value='THICKNESS')
419         row.prop_enum(settings, "tool", value='RANDOMIZE')
420
421
422 ###############################
423
424
425 class GPENCIL_MT_snap(Menu):
426     bl_label = "Snap"
427
428     def draw(self, context):
429         layout = self.layout
430
431         layout.operator("gpencil.snap_to_grid", text="Selection to Grid")
432         layout.operator("gpencil.snap_to_cursor", text="Selection to Cursor").use_offset = False
433         layout.operator("gpencil.snap_to_cursor", text="Selection to Cursor (Offset)").use_offset = True
434
435         layout.separator()
436
437         layout.operator("gpencil.snap_cursor_to_selected", text="Cursor to Selected")
438         layout.operator("view3d.snap_cursor_to_center", text="Cursor to Center")
439         layout.operator("view3d.snap_cursor_to_grid", text="Cursor to Grid")
440
441
442 ###############################
443
444
445 class GPENCIL_UL_layer(UIList):
446     def draw_item(self, context, layout, data, item, icon, active_data, active_propname, index):
447         # assert(isinstance(item, bpy.types.GPencilLayer)
448         gpl = item
449
450         if self.layout_type in {'DEFAULT', 'COMPACT'}:
451             if gpl.lock:
452                 layout.active = False
453
454             split = layout.split(percentage=0.25)
455             row = split.row(align=True)
456             row.prop(gpl, "color", text="", emboss=gpl.is_stroke_visible)
457             row.prop(gpl, "fill_color", text="", emboss=gpl.is_fill_visible)
458             split.prop(gpl, "info", text="", emboss=False)
459
460             row = layout.row(align=True)
461             row.prop(gpl, "lock", text="", emboss=False)
462             row.prop(gpl, "hide", text="", emboss=False)
463         elif self.layout_type == 'GRID':
464             layout.alignment = 'CENTER'
465             layout.label(text="", icon_value=icon)
466
467
468 class GPENCIL_MT_layer_specials(Menu):
469     bl_label = "Layer"
470
471     def draw(self, context):
472         layout = self.layout
473
474         layout.operator("gpencil.layer_duplicate", icon='COPY_ID')  # XXX: needs a dedicated icon
475
476         layout.separator()
477
478         layout.operator("gpencil.reveal", icon='RESTRICT_VIEW_OFF', text="Show All")
479         layout.operator("gpencil.hide", icon='RESTRICT_VIEW_ON', text="Hide Others").unselected = True
480
481         layout.separator()
482
483         layout.operator("gpencil.lock_all", icon='LOCKED', text="Lock All")
484         layout.operator("gpencil.unlock_all", icon='UNLOCKED', text="UnLock All")
485
486
487 class GreasePencilDataPanel:
488     # subclass must set
489     # bl_space_type = 'IMAGE_EDITOR'
490     bl_label = "Grease Pencil"
491     bl_region_type = 'UI'
492
493     @staticmethod
494     def draw_header(self, context):
495         self.layout.prop(context.space_data, "show_grease_pencil", text="")
496
497     @staticmethod
498     def draw(self, context):
499         layout = self.layout
500
501         # owner of Grease Pencil data
502         gpd_owner = context.gpencil_data_owner
503         gpd = context.gpencil_data
504
505         # Owner Selector
506         if context.space_data.type == 'VIEW_3D':
507             layout.prop(context.tool_settings, "grease_pencil_source", expand=True)
508         elif context.space_data.type == 'CLIP_EDITOR':
509             layout.prop(context.space_data, "grease_pencil_source", expand=True)
510
511         # Grease Pencil data selector
512         layout.template_ID(gpd_owner, "grease_pencil", new="gpencil.data_add", unlink="gpencil.data_unlink")
513
514         # Grease Pencil data...
515         if (gpd is None) or (not gpd.layers):
516             layout.operator("gpencil.layer_add", text="New Layer")
517         else:
518             self.draw_layers(context, layout, gpd)
519
520     def draw_layers(self, context, layout, gpd):
521         row = layout.row()
522
523         col = row.column()
524         if len(gpd.layers) >= 2:
525             layer_rows = 5
526         else:
527             layer_rows = 2
528         col.template_list("GPENCIL_UL_layer", "", gpd, "layers", gpd.layers, "active_index", rows=layer_rows)
529
530         col = row.column()
531
532         sub = col.column(align=True)
533         sub.operator("gpencil.layer_add", icon='ZOOMIN', text="")
534         sub.operator("gpencil.layer_remove", icon='ZOOMOUT', text="")
535
536         gpl = context.active_gpencil_layer
537         if gpl:
538             sub.menu("GPENCIL_MT_layer_specials", icon='DOWNARROW_HLT', text="")
539
540             if len(gpd.layers) > 1:
541                 col.separator()
542
543                 sub = col.column(align=True)
544                 sub.operator("gpencil.layer_move", icon='TRIA_UP', text="").type = 'UP'
545                 sub.operator("gpencil.layer_move", icon='TRIA_DOWN', text="").type = 'DOWN'
546
547                 col.separator()
548
549                 sub = col.column(align=True)
550                 sub.operator("gpencil.layer_isolate", icon='SOLO_OFF', text="").affect_visibility = False
551                 sub.operator("gpencil.layer_isolate", icon='RESTRICT_VIEW_OFF', text="").affect_visibility = True
552
553         if gpl:
554             self.draw_layer(layout, gpl)
555
556     def draw_layer(self, layout, gpl):
557         # layer settings
558         split = layout.split(percentage=0.5)
559         split.active = not gpl.lock
560
561         # Column 1 - Stroke
562         col = split.column(align=True)
563         col.label(text="Stroke:")
564         col.prop(gpl, "color", text="")
565         col.prop(gpl, "alpha", slider=True)
566
567         # Column 2 - Fill
568         col = split.column(align=True)
569         col.label(text="Fill:")
570         col.prop(gpl, "fill_color", text="")
571         col.prop(gpl, "fill_alpha", text="Opacity", slider=True)
572
573         # Options
574         split = layout.split(percentage=0.5)
575         split.active = not gpl.lock
576
577         col = split.column(align=True)
578         col.prop(gpl, "line_width", slider=True)
579         col.prop(gpl, "use_volumetric_strokes")
580
581         col = split.column(align=True)
582         col.prop(gpl, "show_x_ray")
583         col.prop(gpl, "show_points", text="Points")
584
585         layout.separator()
586
587         # Full-Row - Frame Locking (and Delete Frame)
588         row = layout.row(align=True)
589         row.active = not gpl.lock
590
591         if gpl.active_frame:
592             lock_status = "Locked" if gpl.lock_frame else "Unlocked"
593             lock_label = "Frame: %d (%s)" % (gpl.active_frame.frame_number, lock_status)
594         else:
595             lock_label = "Lock Frame"
596         row.prop(gpl, "lock_frame", text=lock_label, icon='UNLOCKED')
597         row.operator("gpencil.active_frame_delete", text="", icon='X')
598
599         layout.separator()
600
601         # Onion skinning
602         col = layout.column(align=True)
603         col.active = not gpl.lock
604
605         row = col.row()
606         row.prop(gpl, "use_onion_skinning")
607         row.prop(gpl, "use_ghost_custom_colors", text="", icon='COLOR')
608
609         split = col.split(percentage=0.5)
610         split.active = gpl.use_onion_skinning
611
612         # - Before Frames
613         sub = split.column(align=True)
614         row = sub.row(align=True)
615         row.active = gpl.use_ghost_custom_colors
616         row.prop(gpl, "before_color", text="")
617         sub.prop(gpl, "ghost_before_range", text="Before")
618
619         # - After Frames
620         sub = split.column(align=True)
621         row = sub.row(align=True)
622         row.active = gpl.use_ghost_custom_colors
623         row.prop(gpl, "after_color", text="")
624         sub.prop(gpl, "ghost_after_range", text="After")
625
626
627 class GreasePencilToolsPanel:
628     # subclass must set
629     # bl_space_type = 'IMAGE_EDITOR'
630     # bl_options = {'DEFAULT_CLOSED'}
631     bl_label = "Grease Pencil Settings"
632     bl_region_type = 'UI'
633
634     @classmethod
635     def poll(cls, context):
636         return (context.gpencil_data is not None)
637
638     @staticmethod
639     def draw(self, context):
640         layout = self.layout
641
642         # gpd_owner = context.gpencil_data_owner
643         gpd = context.gpencil_data
644
645         layout.prop(gpd, "use_stroke_edit_mode", text="Enable Editing", icon='EDIT', toggle=True)
646
647         layout.separator()
648
649         layout.label("Proportional Edit:")
650         row = layout.row()
651         row.prop(context.tool_settings, "proportional_edit", text="")
652         row.prop(context.tool_settings, "proportional_edit_falloff", text="")
653
654         layout.separator()
655         layout.separator()
656
657         gpencil_stroke_placement_settings(context, layout)