Support -noaudio in background mode too (it was initialized even in bg, that should...
[blender.git] / source / creator / creator.c
index b6c08582144f8ff5ed24746e8f486d8684e68d25..c080062347d51d34d6c7c7d1111e058eedf823ec 100644 (file)
@@ -514,6 +514,7 @@ int main(int argc, char **argv)
 #endif
        }
        else {
+               /* background mode options */
                for(a=1; a<argc; a++) {
                        if(argv[a][0] == '-') {
                                switch(argv[a][1]) {
@@ -529,6 +530,11 @@ int main(int argc, char **argv)
                                                printf("argv[%d] = %s\n", i, argv[i]);
                                        }
                                        break;
+                               case 'n':
+                               case 'N':
+                                       if (BLI_strcasecmp(argv[a], "-noaudio") == 0)
+                                               sound_disable();
+                                       break;
                                }
                        }
                }