[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [33954] trunk/blender/source/blender/ editors/space_view3d/view3d_draw.c: Bugfix #25407

Ton Roosendaal ton at blender.org
Thu Dec 30 15:47:40 CET 2010


Revision: 33954
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=33954
Author:   ton
Date:     2010-12-30 15:47:40 +0100 (Thu, 30 Dec 2010)

Log Message:
-----------
Bugfix #25407

Lamp shadows for offscreen render (opengl anim) had to be remade
to cope with animated objects. Fix proved by Alexander Kuznetsov
in the tracker log. Thanks!

Modified Paths:
--------------
    trunk/blender/source/blender/editors/space_view3d/view3d_draw.c

Modified: trunk/blender/source/blender/editors/space_view3d/view3d_draw.c
===================================================================
--- trunk/blender/source/blender/editors/space_view3d/view3d_draw.c	2010-12-30 13:02:48 UTC (rev 33953)
+++ trunk/blender/source/blender/editors/space_view3d/view3d_draw.c	2010-12-30 14:47:40 UTC (rev 33954)
@@ -2066,6 +2066,10 @@
 	/* free images which can have changed on frame-change
 	 * warning! can be slow so only free animated images - campbell */
 	GPU_free_images_anim();
+	
+	/* shadow buffers, before we setup matrices */
+	if(draw_glsl_material(scene, NULL, v3d, v3d->drawtype))
+		gpu_update_lamps_shadows(scene, v3d);
 
 	/* set background color, fallback on the view background color */
 	if(scene->world) {
@@ -2294,6 +2298,7 @@
 	BLF_draw_default(22,  ar->winy-17, 0.0f, printable, sizeof(printable)-1);
 }
 
+/* warning: this function has duplicate drawing in ED_view3d_draw_offscreen() */
 void view3d_main_area_draw(const bContext *C, ARegion *ar)
 {
 	Scene *scene= CTX_data_scene(C);





More information about the Bf-blender-cvs mailing list