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:
authorTamito Kajiyama <rd6t-kjym@asahi-net.or.jp>2009-07-18 22:33:07 +0400
committerTamito Kajiyama <rd6t-kjym@asahi-net.or.jp>2009-07-18 22:33:07 +0400
commitef11c4e8e744cbd64895f27a1f26636cc5c2b047 (patch)
tree52d55034a3414ad1d2458b50f567a3a5e66c96e5 /source/blender/freestyle/intern
parente7f3a3d93a79ac57525ecc2735e5a33cb1757ca7 (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.cpp20
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);