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-08-09 14:49:52 +0400
committerTon Roosendaal <ton@blender.org>2006-08-09 14:49:52 +0400
commit8cd491750e45931cceecbe85362c8b7ca6805c31 (patch)
tree85e6f63460a71860855f4c4e3d0196aa66d1e5ae /source/blender/src/editscreen.c
parentc56f04cb5f306af8ec4fe1a6f0fc309eb3fbcba9 (diff)
Bugfix #4830
Preview render in 3d window: when window type changes (like 3d window to UV window), and you change the window size, and restore to 3d view, the rendered preview had to be re-initialized. texture.c: a return was added without value.
Diffstat (limited to 'source/blender/src/editscreen.c')
-rw-r--r--source/blender/src/editscreen.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/source/blender/src/editscreen.c b/source/blender/src/editscreen.c
index b18d8d4980e..47476bd76f6 100644
--- a/source/blender/src/editscreen.c
+++ b/source/blender/src/editscreen.c
@@ -1943,12 +1943,15 @@ static void testareas(void)
}
if (!rcti_eq(&oldwr, &sa->winrct)) {
+ SpaceLink *sl= sa->spacedata.first;
+
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);
+ for(; sl; sl= sl->next)
+ if(sl->spacetype==SPACE_VIEW3D)
+ BIF_view3d_previewrender_free((View3D *)sl);
}
}
}