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:
-rw-r--r--source/blender/freestyle/FRS_freestyle.h2
-rw-r--r--source/blender/src/editscreen.c3
-rw-r--r--source/blender/src/space.c5
-rw-r--r--source/blender/src/usiblender.c3
-rw-r--r--source/creator/creator.c3
5 files changed, 11 insertions, 5 deletions
diff --git a/source/blender/freestyle/FRS_freestyle.h b/source/blender/freestyle/FRS_freestyle.h
index 731e5f8ad80..fe6a4426583 100644
--- a/source/blender/freestyle/FRS_freestyle.h
+++ b/source/blender/freestyle/FRS_freestyle.h
@@ -27,7 +27,7 @@ extern "C" {
// Rendering
void FRS_initialize();
- void FRS_add_Freestyle(Render* re);
+ void FRS_add_Freestyle(struct Render* re);
void FRS_exit();
// Panel configuration
diff --git a/source/blender/src/editscreen.c b/source/blender/src/editscreen.c
index 3cc306c8ea9..20661bd0821 100644
--- a/source/blender/src/editscreen.c
+++ b/source/blender/src/editscreen.c
@@ -108,6 +108,8 @@
#include "BPY_extern.h"
#endif
+#include "FRS_freestyle.h"
+
#include "mydevice.h"
#include "blendef.h"
@@ -1380,6 +1382,7 @@ void screenmain(void)
else if (event==LOAD_FILE) {
BIF_read_file(ext_load_str);
sound_initialize_sounds();
+ FRS_initialize();
}
#ifndef DISABLE_PYTHON
else if ((event==ONLOAD_SCRIPT) && BPY_has_onload_script()) {
diff --git a/source/blender/src/space.c b/source/blender/src/space.c
index b6221c2f84b..01f0ba18d2e 100644
--- a/source/blender/src/space.c
+++ b/source/blender/src/space.c
@@ -189,6 +189,8 @@
#include "GPU_extensions.h"
#include "GPU_draw.h"
+#include "FRS_freestyle.h"
+
#include "BLO_sys_types.h" // for intptr_t support
/* maybe we need this defined somewhere else */
@@ -1086,6 +1088,7 @@ void BIF_undo(void)
#endif
BKE_undo_step(1);
sound_initialize_sounds();
+ FRS_initialize();
}
}
}
@@ -1109,6 +1112,7 @@ void BIF_redo(void)
if(U.uiflag & USER_GLOBALUNDO) {
BKE_undo_step(-1);
sound_initialize_sounds();
+ FRS_initialize();
}
}
}
@@ -1132,6 +1136,7 @@ void BIF_undo_menu(void)
if(event>0) {
BKE_undo_number(event);
sound_initialize_sounds();
+ FRS_initialize();
}
}
}
diff --git a/source/blender/src/usiblender.c b/source/blender/src/usiblender.c
index 5cd369ea937..2e11d96935d 100644
--- a/source/blender/src/usiblender.c
+++ b/source/blender/src/usiblender.c
@@ -598,6 +598,7 @@ void BIF_read_file(char *name)
mainwindow_set_filename_to_title(G.main->name);
countall();
sound_initialize_sounds();
+ FRS_initialize();
winqueue_break= 1; /* leave queues everywhere */
@@ -605,8 +606,6 @@ void BIF_read_file(char *name)
if (retval!=0) G.relbase_valid = 1;
- FRS_initialize();
-
undo_editmode_clear();
undo_imagepaint_clear();
BKE_reset_undo();
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 */