[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [53877] trunk/blender/source: include svn revision in the crash log, also free smoothview on the off-chance you manage to exit blender while the view is moving :)

Campbell Barton ideasman42 at gmail.com
Thu Jan 17 10:11:52 CET 2013


Revision: 53877
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=53877
Author:   campbellbarton
Date:     2013-01-17 09:11:51 +0000 (Thu, 17 Jan 2013)
Log Message:
-----------
include svn revision in the crash log, also free smoothview on the off-chance you manage to exit blender while the view is moving :)

Modified Paths:
--------------
    trunk/blender/source/blender/editors/space_view3d/space_view3d.c
    trunk/blender/source/creator/creator.c

Modified: trunk/blender/source/blender/editors/space_view3d/space_view3d.c
===================================================================
--- trunk/blender/source/blender/editors/space_view3d/space_view3d.c	2013-01-17 08:46:46 UTC (rev 53876)
+++ trunk/blender/source/blender/editors/space_view3d/space_view3d.c	2013-01-17 09:11:51 UTC (rev 53877)
@@ -584,6 +584,9 @@
 			if (rv3d->depths->depths) MEM_freeN(rv3d->depths->depths);
 			MEM_freeN(rv3d->depths);
 		}
+		if (rv3d->sms) {
+			MEM_freeN(rv3d->sms);
+		}
 		MEM_freeN(rv3d);
 		ar->regiondata = NULL;
 	}

Modified: trunk/blender/source/creator/creator.c
===================================================================
--- trunk/blender/source/creator/creator.c	2013-01-17 08:46:46 UTC (rev 53876)
+++ trunk/blender/source/creator/creator.c	2013-01-17 09:11:51 UTC (rev 53877)
@@ -165,9 +165,10 @@
 
 /* for the callbacks: */
 
-#define BLEND_VERSION_STRING_FMT                                              \
-    "Blender %d.%02d (sub %d)\n",                                             \
-    BLENDER_VERSION / 100, BLENDER_VERSION % 100, BLENDER_SUBVERSION          \
+#define BLEND_VERSION_FMT         "Blender %d.%02d (sub %d)"
+#define BLEND_VERSION_ARG         BLENDER_VERSION / 100, BLENDER_VERSION % 100, BLENDER_SUBVERSION
+/* pass directly to printf */
+#define BLEND_VERSION_STRING_FMT  BLEND_VERSION_FMT "\n", BLEND_VERSION_ARG
 
 /* Initialize callbacks for the modules that need them */
 static void setCallbacks(void); 
@@ -538,7 +539,13 @@
 	printf("Writing: %s\n", fname);
 	fflush(stdout);
 
-	BLI_snprintf(header, sizeof(header), "# " BLEND_VERSION_STRING_FMT);
+	BLI_snprintf(header, sizeof(header), "# " BLEND_VERSION_FMT ", Revision: %s\n", BLEND_VERSION_ARG,
+#ifdef BUILD_DATE
+	             build_rev
+#else
+	             "Unknown"
+#endif
+	             );
 
 	/* open the crash log */
 	errno = 0;




More information about the Bf-blender-cvs mailing list