GPencil: Fix missing guide topbar menu
authorAntonioya <blendergit@gmail.com>
Sun, 17 Mar 2019 08:33:23 +0000 (09:33 +0100)
committerAntonioya <blendergit@gmail.com>
Sun, 17 Mar 2019 08:33:23 +0000 (09:33 +0100)
This bug was introduced in previous commit

release/scripts/startup/bl_ui/space_view3d.py

index d1d1468..867ecf0 100644 (file)
@@ -257,7 +257,7 @@ class VIEW3D_HT_header(Header):
         if object_mode == 'PAINT_GPENCIL':
             # FIXME: this is bad practice!
             # Tool options are to be displayed in the topbar.
-            if context.workspace.tools.from_space_view3d_mode(object_mode).idname == "builtin.draw":
+            if context.workspace.tools.from_space_view3d_mode(object_mode).idname == "builtin_brush.Draw":
                 settings = tool_settings.gpencil_sculpt.guide
                 row = layout.row(align=True)
                 row.prop(settings, "use_guide", text="", icon='GRID')