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:
authorTon Roosendaal <ton@blender.org>2006-06-15 13:44:52 +0400
committerTon Roosendaal <ton@blender.org>2006-06-15 13:44:52 +0400
commit6deb0cf41af903661a63c30aeaa11cefca9fd11b (patch)
treeb73b73b7a27a46e6b303d5f09fface1c95d7ec85 /source/blender/src/editscreen.c
parentd3a5f988235ed78ff0ac7b45d534895692ea1125 (diff)
Small fixes in 3d window preview render, discovered while making regression
files for it :) - on load, the rendering was done twice - changing area size didn't correct the render
Diffstat (limited to 'source/blender/src/editscreen.c')
-rw-r--r--source/blender/src/editscreen.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/source/blender/src/editscreen.c b/source/blender/src/editscreen.c
index 2af0e5de3d5..6d3d4577ebc 100644
--- a/source/blender/src/editscreen.c
+++ b/source/blender/src/editscreen.c
@@ -84,6 +84,7 @@
#include "BIF_interface_icons.h"
#include "BIF_mainqueue.h"
#include "BIF_mywindow.h"
+#include "BIF_previewrender.h"
#include "BIF_renderwin.h"
#include "BIF_screen.h"
#include "BIF_space.h"
@@ -1888,8 +1889,7 @@ static void testareas(void)
/* test for header, if removed, or moved */
/* test for window, if removed, or moved */
- sa= G.curscreen->areabase.first;
- while(sa) {
+ for(sa= G.curscreen->areabase.first; sa; sa= sa->next) {
rcti oldhr= sa->headrct;
rcti oldwr= sa->winrct;
@@ -1925,9 +1925,12 @@ static void testareas(void)
if (!rcti_eq(&oldwr, &sa->winrct)) {
mywinposition(sa->win, sa->winrct.xmin, sa->winrct.xmax, sa->winrct.ymin, sa->winrct.ymax);
addqueue(sa->win, CHANGED, 1);
+
+ /* exception handling... probably we need generic event */
+ if(sa->spacetype==SPACE_VIEW3D)
+ BIF_view3d_previewrender_free(sa->spacedata.first);
}
}
- sa= next;
}
/* remake global windowarray */