[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [32120] trunk/blender/source/blender/ editors/animation/anim_filter.c: Fix #23985: crash in graph editor with objects without material.

Brecht Van Lommel brechtvanlommel at pandora.be
Sat Sep 25 16:14:04 CEST 2010


Revision: 32120
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=32120
Author:   blendix
Date:     2010-09-25 16:14:04 +0200 (Sat, 25 Sep 2010)

Log Message:
-----------
Fix #23985: crash in graph editor with objects without material.

Modified Paths:
--------------
    trunk/blender/source/blender/editors/animation/anim_filter.c

Modified: trunk/blender/source/blender/editors/animation/anim_filter.c
===================================================================
--- trunk/blender/source/blender/editors/animation/anim_filter.c	2010-09-25 13:27:42 UTC (rev 32119)
+++ trunk/blender/source/blender/editors/animation/anim_filter.c	2010-09-25 14:14:04 UTC (rev 32120)
@@ -2420,12 +2420,14 @@
 							break;
 						}
 								
-						for (mtInd= 0; mtInd < MAX_MTEX; mtInd++) {
-							MTex *mtex= ma->mtex[mtInd];
-							
-							if (mtex && mtex->tex && ANIMDATA_HAS_KEYS(mtex->tex)) {									
-								matOk= 1; 
-								break;
+						if(ma) {
+							for (mtInd= 0; mtInd < MAX_MTEX; mtInd++) {
+								MTex *mtex= ma->mtex[mtInd];
+								
+								if (mtex && mtex->tex && ANIMDATA_HAS_KEYS(mtex->tex)) {									
+									matOk= 1; 
+									break;
+								}
 							}
 						}
 





More information about the Bf-blender-cvs mailing list