[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [12525] trunk/blender/source/blender/src/ filesel.c: Fix for bug #7697 Appending screen crashes when appended screen is accessed :

Juho Vepsalainen bebraw at gmail.com
Thu Nov 8 14:49:11 CET 2007


Revision: 12525
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=12525
Author:   bebraw
Date:     2007-11-08 14:49:11 +0100 (Thu, 08 Nov 2007)

Log Message:
-----------
Fix for bug #7697 Appending screen crashes when appended screen is accessed:
This commit fixes the issue by disabling access to screens via the path input field.

Note that appending screens might actually be a useful feature to implement at some point.

Modified Paths:
--------------
    trunk/blender/source/blender/src/filesel.c

Modified: trunk/blender/source/blender/src/filesel.c
===================================================================
--- trunk/blender/source/blender/src/filesel.c	2007-11-08 13:02:59 UTC (rev 12524)
+++ trunk/blender/source/blender/src/filesel.c	2007-11-08 13:49:11 UTC (rev 12525)
@@ -2188,7 +2188,8 @@
 
 		/* now we know that we are in a blend file and it is safe to 
 		   assume that gp actually points to a group */
-		BLI_strncpy(group, gp, GROUP_MAX);
+		if (BLI_streq("Screen", gp)==0)
+			BLI_strncpy(group, gp, GROUP_MAX);
 	}
 	return 1;
 }





More information about the Bf-blender-cvs mailing list