Fix for bug #10444: environment map crash with qmc.
authorBrecht Van Lommel <brechtvanlommel@pandora.be>
Mon, 5 May 2008 17:43:13 +0000 (17:43 +0000)
committerBrecht Van Lommel <brechtvanlommel@pandora.be>
Mon, 5 May 2008 17:43:13 +0000 (17:43 +0000)
source/blender/render/intern/source/envmap.c

index 26151ff8b9158c75cb7aa417c80dadbd54637095..12d0efa59e85b8f2dac90cc95bce3ccaf96a77e5 100644 (file)
@@ -158,6 +158,7 @@ static Render *envmap_render_copy(Render *re, EnvMap *env)
        envre->totinstance= re->totinstance;
        envre->instancetable= re->instancetable;
        envre->objectinstance= re->objectinstance;
+       envre->qmcsamplers= re->qmcsamplers;
        
        return envre;
 }
@@ -178,6 +179,7 @@ static void envmap_free_render_copy(Render *envre)
        envre->raytree= NULL;
        envre->instancetable.first= envre->instancetable.last= NULL;
        envre->objectinstance= NULL;
+       envre->qmcsamplers= NULL;
        
        RE_FreeRender(envre);
 }