- agh! missed it again! for real this time, fix for proper updating
authorDaniel Dunbar <daniel@zuster.org>
Sat, 20 Aug 2005 09:17:20 +0000 (09:17 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Sat, 20 Aug 2005 09:17:20 +0000 (09:17 +0000)
   in image window

source/blender/src/drawimage.c

index 11081fc43b8f7d31656604ab084d8a51355e62d3..6eed7ac91e06d4ea64524f90d5de0d5876df40a6 100644 (file)
@@ -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);