[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [24700] trunk/blender/source/blender/ editors/transform/transform_orientations.c: Attempted fix for #19870 - Crash on Shift Numpad 1 based on the backtrace http ://www.pasteall.org/9114

Joshua Leung aligorith at gmail.com
Fri Nov 20 11:34:31 CET 2009


Revision: 24700
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=24700
Author:   aligorith
Date:     2009-11-20 11:34:31 +0100 (Fri, 20 Nov 2009)

Log Message:
-----------
Attempted fix for #19870 - Crash on Shift Numpad 1 based on the backtrace http://www.pasteall.org/9114

Modified Paths:
--------------
    trunk/blender/source/blender/editors/transform/transform_orientations.c

Modified: trunk/blender/source/blender/editors/transform/transform_orientations.c
===================================================================
--- trunk/blender/source/blender/editors/transform/transform_orientations.c	2009-11-20 10:21:31 UTC (rev 24699)
+++ trunk/blender/source/blender/editors/transform/transform_orientations.c	2009-11-20 10:34:31 UTC (rev 24700)
@@ -916,8 +916,10 @@
 			}
 		}
 		
-		VECCOPY(normal, ob->obmat[2]);
-		VECCOPY(plane, ob->obmat[1]);
+		if (ob) {
+			VECCOPY(normal, ob->obmat[2]);
+			VECCOPY(plane, ob->obmat[1]);
+		}
 		result = ORIENTATION_NORMAL;
 	}
 	





More information about the Bf-blender-cvs mailing list