[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [23721] trunk/blender/intern/ghost/intern/ GHOST_SystemCocoa.mm: Cocoa port :
Damien Plisson
damien.plisson at yahoo.fr
Thu Oct 8 19:13:57 CEST 2009
Revision: 23721
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=23721
Author: damien78
Date: 2009-10-08 19:13:57 +0200 (Thu, 08 Oct 2009)
Log Message:
-----------
Cocoa port :
Quick&dirty bug fix to catch ad discard tablet induced exceptions.
I'll make a clean fix upon getting a tablet to debug.
Modified Paths:
--------------
trunk/blender/intern/ghost/intern/GHOST_SystemCocoa.mm
Modified: trunk/blender/intern/ghost/intern/GHOST_SystemCocoa.mm
===================================================================
--- trunk/blender/intern/ghost/intern/GHOST_SystemCocoa.mm 2009-10-08 15:50:42 UTC (rev 23720)
+++ trunk/blender/intern/ghost/intern/GHOST_SystemCocoa.mm 2009-10-08 17:13:57 UTC (rev 23721)
@@ -1098,7 +1098,8 @@
NSUInteger tabletEvent;
//Handle tablet events combined with mouse events
- switch ([event subtype]) {
+ @try {
+ switch ([event subtype]) {
case NX_SUBTYPE_TABLET_POINT:
tabletEvent = NSTabletPoint;
break;
@@ -1109,8 +1110,14 @@
default:
tabletEvent = [event type];
break;
+ }
}
+ @catch (NSException * e) {
+ //FIXME: check why we get such exceptions when using a tablet
+ return GHOST_kFailure;
+ }
+
switch (tabletEvent) {
case NSTabletPoint:
ct.Pressure = [event tangentialPressure];
More information about the Bf-blender-cvs
mailing list