[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [25744] trunk/blender/source/blender/ makesdna/DNA_anim_types.h: BUGFIX: revision 25736 (about 3 hours ago) introduced a problem in SDNA

Brecht Van Lommel brecht at blender.org
Tue Jan 5 15:56:48 CET 2010


Revision: 25744
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=25744
Author:   blendix
Date:     2010-01-05 15:56:48 +0100 (Tue, 05 Jan 2010)

Log Message:
-----------
BUGFIX: revision 25736 (about 3 hours ago) introduced a problem in SDNA
for drivers, which will cause files that include drivers and saved since
then to crash on load, and loading existing files to crash as well. This
commit fixes that problem. So, don't use builds from revision 25736-25743.

The problem is this line, SDNA does not support parsing #defines:

DriverTarget targets[MAX_DRIVER_TARGETS];

Revision Links:
--------------
    http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=25736
    http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=25736

Modified Paths:
--------------
    trunk/blender/source/blender/makesdna/DNA_anim_types.h

Modified: trunk/blender/source/blender/makesdna/DNA_anim_types.h
===================================================================
--- trunk/blender/source/blender/makesdna/DNA_anim_types.h	2010-01-05 14:30:55 UTC (rev 25743)
+++ trunk/blender/source/blender/makesdna/DNA_anim_types.h	2010-01-05 14:56:48 UTC (rev 25744)
@@ -293,7 +293,7 @@
 	
 	char name[64];				/* name of the variable to use in py-expression (must be valid python identifier) */
 	
-	DriverTarget targets[MAX_DRIVER_TARGETS];	/* target slots */	
+	DriverTarget targets[8];	/* MAX_DRIVER_TARGETS, target slots */	
 	int num_targets;			/* number of targets actually used by this variable */
 	
 	int type;					/* type of driver target (eDriverTarget_Types) */		





More information about the Bf-blender-cvs mailing list