Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2012-08-06 20:07:11 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-08-06 20:07:11 +0400
commitdb6c4ba11ec3dbfc1711cdb1870629655e8ea8ee (patch)
tree38d433fac42465ca7cbb1551b6af0eae98747327 /source/creator
parent48b59330fe48f9e0546b2179dd2e0a6d9e6b6840 (diff)
bring back the play option from 2.4x
Diffstat (limited to 'source/creator')
-rw-r--r--source/creator/creator.c24
1 files changed, 13 insertions, 11 deletions
diff --git a/source/creator/creator.c b/source/creator/creator.c
index 01c850412de..7479935c179 100644
--- a/source/creator/creator.c
+++ b/source/creator/creator.c
@@ -453,16 +453,14 @@ static int set_env(int argc, const char **argv, void *UNUSED(data))
return 1;
}
-static int playback_mode(int UNUSED(argc), const char **UNUSED(argv), void *UNUSED(data))
+static int playback_mode(int argc, const char **argv, void *UNUSED(data))
{
+ extern void playanim(int argc, const char **argv);
+
/* not if -b was given first */
if (G.background == 0) {
-#if 0 /* TODO, bring player back? */
playanim(argc, argv); /* not the same argc and argv as before */
-#else
- fprintf(stderr, "Playback mode not supported in blender 2.6x\n");
- exit(0);
-#endif
+ exit(0); /* 2.4x didn't do this */
}
return -2;
@@ -1272,11 +1270,6 @@ int main(int argc, const char **argv)
BLI_threadapi_init();
- RNA_init();
- RE_engines_init();
-
- init_nodesystem();
-
initglobals(); /* blender.c */
IMB_init();
@@ -1297,6 +1290,15 @@ int main(int argc, const char **argv)
BLI_argsParse(ba, 1, NULL, NULL);
#endif
+
+ /* after level 1 args, this is so playanim skips RNA init */
+ RNA_init();
+
+ RE_engines_init();
+ init_nodesystem();
+ /* end second init */
+
+
#if defined(WITH_PYTHON_MODULE) || defined(WITH_HEADLESS)
G.background = 1; /* python module mode ALWAYS runs in background mode (for now) */
#else