diff options
author | Tamito Kajiyama <rd6t-kjym@asahi-net.or.jp> | 2009-08-26 03:46:00 +0400 |
---|---|---|
committer | Tamito Kajiyama <rd6t-kjym@asahi-net.or.jp> | 2009-08-26 03:46:00 +0400 |
commit | 0a4d70f4d0ddc5bc709b162d84ec334e66ed848d (patch) | |
tree | 933137d7af6682e50d6b9d5eafecb05715954e9e /source/creator | |
parent | ed4669df0c819a5538bfb95dbc1a57bc8ca436b6 (diff) |
Made an attempt to fix a crash due to undo. An undo invalidated
some Freestyle-related pointers, which led to a crash when the
rendering was initiated or the Freestyle panel (in the Scene buttons)
was redrawn.
Diffstat (limited to 'source/creator')
-rw-r--r-- | source/creator/creator.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/source/creator/creator.c b/source/creator/creator.c index 94fccb77528..b39833e4d17 100644 --- a/source/creator/creator.c +++ b/source/creator/creator.c @@ -817,13 +817,12 @@ int main(int argc, char **argv) if (G.background) { int retval = BKE_read_file(filename, NULL); sound_initialize_sounds(); + FRS_initialize(); /*we successfully loaded a blend file, get sure that pointcache works */ if (retval!=0) G.relbase_valid = 1; - FRS_initialize(); - /* happens for the UI on file reading too */ BKE_reset_undo(); BKE_write_undo("original"); /* save current state */ |