Context: remove active_gpencil_brush
[blender.git] / release / scripts / startup / bl_operators / presets.py
index 770133e2514c32e73e89eee0310e8d989cd94b7a..135148af790bebbc08be6933bf6bd1b75d2ba0d7 100644 (file)
@@ -643,7 +643,7 @@ class AddPresetGpencilBrush(AddPresetBase, Operator):
     preset_menu = "VIEW3D_PT_gpencil_brush_presets"
 
     preset_defines = [
-        "brush = bpy.context.active_gpencil_brush",
+        "brush = bpy.context.tool_settings.gpencil_paint.brush",
         "settings = brush.gpencil_settings"
     ]