diff options
author | Tamito Kajiyama <rd6t-kjym@asahi-net.or.jp> | 2009-07-18 22:33:07 +0400 |
---|---|---|
committer | Tamito Kajiyama <rd6t-kjym@asahi-net.or.jp> | 2009-07-18 22:33:07 +0400 |
commit | ef11c4e8e744cbd64895f27a1f26636cc5c2b047 (patch) | |
tree | 52d55034a3414ad1d2458b50f567a3a5e66c96e5 /source/blender/freestyle/intern | |
parent | e7f3a3d93a79ac57525ecc2735e5a33cb1757ca7 (diff) |
Fixed a bug that the parameter panel did not correctly work when
a new file was created or an existing file was loaded.
Diffstat (limited to 'source/blender/freestyle/intern')
-rw-r--r-- | source/blender/freestyle/intern/app_blender/FRS_freestyle.cpp | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/source/blender/freestyle/intern/app_blender/FRS_freestyle.cpp b/source/blender/freestyle/intern/app_blender/FRS_freestyle.cpp index c65d71452a7..34e6e31a177 100644 --- a/source/blender/freestyle/intern/app_blender/FRS_freestyle.cpp +++ b/source/blender/freestyle/intern/app_blender/FRS_freestyle.cpp @@ -83,17 +83,22 @@ extern "C" { controller = new Controller; view = new AppView; controller->setView(view); + + } else { + + delete panelConfig; + + } + + panelConfig = new FreestylePanelConfigurationData; - panelConfig = new FreestylePanelConfigurationData; - - default_module_path = pathconfig->getProjectDir() + Config::DIR_SEP + "style_modules" + Config::DIR_SEP + "contour.py"; - FRS_select_layer( (SceneRenderLayer*) BLI_findlink(&G.scene->r.layers, G.scene->r.actlay) ); + default_module_path = pathconfig->getProjectDir() + Config::DIR_SEP + "style_modules" + Config::DIR_SEP + "contour.py"; + FRS_select_layer( (SceneRenderLayer*) BLI_findlink(&G.scene->r.layers, G.scene->r.actlay) ); - freestyle_is_initialized = 1; - } + freestyle_is_initialized = 1; } - + void FRS_exit() { delete pathconfig; delete controller; @@ -252,7 +257,6 @@ extern "C" { cout << "# Freestyle" << endl; cout << "#===============================================================" << endl; - FRS_initialize(); init_view(re); init_camera(re); |