From 74be13ba8b6ab19bad187902df258d07f7cbd342 Mon Sep 17 00:00:00 2001 From: Daniel Dunbar Date: Sat, 20 Aug 2005 09:17:20 +0000 Subject: [PATCH] - agh! missed it again! for real this time, fix for proper updating in image window --- source/blender/src/drawimage.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/source/blender/src/drawimage.c b/source/blender/src/drawimage.c index 11081fc43b8..6eed7ac91e0 100644 --- a/source/blender/src/drawimage.c +++ b/source/blender/src/drawimage.c @@ -65,6 +65,7 @@ #include "BKE_image.h" #include "BKE_DerivedMesh.h" #include "BKE_displist.h" +#include "BKE_object.h" #include "BDR_editface.h" #include "BDR_drawobject.h" @@ -828,6 +829,15 @@ void drawimagespace(ScrArea *sa, void *spacedata) int x1, y1; short sx, sy, dx, dy; + /* If derived data is used then make sure that object + * is up-to-date... might not be the case because updates + * are normally done in drawview and could get here before + * drawing a View3D. + */ + if (!G.obedit && OBACT && (G.sima->flag&SI_DRAWSHADOW)) { + object_handle_update(OBACT); + } + BIF_GetThemeColor3fv(TH_BACK, col); glClearColor(col[0], col[1], col[2], 0.0); glClear(GL_COLOR_BUFFER_BIT);