Skip to content

Instantly share code, notes, and snippets.

@loentar
loentar / mypaint_issue_154.patch
Created January 5, 2015 22:36
patch for mypaint issue #154
diff --git a/gui/freehand.py b/gui/freehand.py
index 7055f16..29efa72 100644
--- a/gui/freehand.py
+++ b/gui/freehand.py
@@ -429,6 +429,15 @@ class FreehandMode (gui.mode.BrushworkModeMixin,
ytilt = event.get_axis(gdk.AXIS_YTILT)
state = event.state
+ # Ugly hack for devices which have no description for axes.
+ # If the reported pressure is None but device has more than 2 axes