diff options
author | Campbell Barton <ideasman42@gmail.com> | 2008-03-03 01:09:40 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2008-03-03 01:09:40 +0300 |
commit | 2455cf7f13d5542c90496e3c2f9af309aa85d22f (patch) | |
tree | 1b335d44ba410c924045d7d72e4d80acafce3e9f /source/creator | |
parent | 373f142530e288610ace4cf650ad7abb316f5586 (diff) |
blenders window argument -w / -W didnt use the last argument as command line arg should.
Diffstat (limited to 'source/creator')
-rw-r--r-- | source/creator/creator.c | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/source/creator/creator.c b/source/creator/creator.c index d9099334afd..4d8b63f18f0 100644 --- a/source/creator/creator.c +++ b/source/creator/creator.c @@ -438,13 +438,6 @@ int main(int argc, char **argv) break; case 'w': - /* XXX, fixme zr, with borders */ - /* there probably is a better way to do - * this, right now do as if blender was - * called with "-p 0 0 xres yres" -- sgefant - */ - winlay_get_screensize(&sizx, &sizy); - setprefsize(0, 0, sizx, sizy, 1); G.windowstate = G_WINDOWSTATE_BORDER; break; case 'W': @@ -475,6 +468,16 @@ int main(int argc, char **argv) } } + /* XXX, fixme zr, with borders */ + /* there probably is a better way to do + * this, right now do as if blender was + * called with "-p 0 0 xres yres" -- sgefant + */ + if (G.windowstate == G_WINDOWSTATE_BORDER) { + winlay_get_screensize(&sizx, &sizy); + setprefsize(0, 0, sizx, sizy, 1); + } + BPY_start_python(argc, argv); /** |