[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [25387] trunk/blender/source/creator/ creator.c: Support -noaudio in background mode too ( it was initialized even in bg, that should be fixed).
Martin Poirier
theeth at yahoo.com
Mon Dec 14 23:29:11 CET 2009
Revision: 25387
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=25387
Author: theeth
Date: 2009-12-14 23:29:10 +0100 (Mon, 14 Dec 2009)
Log Message:
-----------
Support -noaudio in background mode too (it was initialized even in bg, that should be fixed).
Modified Paths:
--------------
trunk/blender/source/creator/creator.c
Modified: trunk/blender/source/creator/creator.c
===================================================================
--- trunk/blender/source/creator/creator.c 2009-12-14 21:42:25 UTC (rev 25386)
+++ trunk/blender/source/creator/creator.c 2009-12-14 22:29:10 UTC (rev 25387)
@@ -514,6 +514,7 @@
#endif
}
else {
+ /* background mode options */
for(a=1; a<argc; a++) {
if(argv[a][0] == '-') {
switch(argv[a][1]) {
@@ -529,6 +530,11 @@
printf("argv[%d] = %s\n", i, argv[i]);
}
break;
+ case 'n':
+ case 'N':
+ if (BLI_strcasecmp(argv[a], "-noaudio") == 0)
+ sound_disable();
+ break;
}
}
}
More information about the Bf-blender-cvs
mailing list