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;
        }
        


_______________________________________________
Bf-blender-cvs mailing list
Bf-blender-cvs@blender.org
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to