Improved check for case when vector-blur speed table (previous frame) is of
authorTon Roosendaal <ton@blender.org>
Fri, 3 Feb 2006 21:02:20 +0000 (21:02 +0000)
committerTon Roosendaal <ton@blender.org>
Fri, 3 Feb 2006 21:02:20 +0000 (21:02 +0000)
different size as current frame. It now just skips making vectors then...
there exist solutions, but have to prove first vecblur actually works.

source/blender/render/intern/source/convertblender.c

index aba817212f86f83af67ff4bff1246856b26f51a5..0c5970384bb65c113a3d17d392b2473a2f8b9b7b 100644 (file)
@@ -3027,7 +3027,8 @@ static void database_fromscene_vectors(Render *re, Scene *scene)
 void RE_Database_FromScene_Vectors(Render *re, Scene *sce)
 {
        struct VertTableNode *vertnodes;
-       int vertnodeslen= 0;
+       int vertnodeslen, totvert;
+       
        printf("creating speed vectors \n");
        re->r.mode |= R_SPEED;
 
@@ -3037,6 +3038,7 @@ void RE_Database_FromScene_Vectors(Render *re, Scene *sce)
        /* copy away vertex info */
        vertnodes= re->vertnodes;
        vertnodeslen= re->vertnodeslen;
+       totvert= re->totvert;
        re->vertnodes= NULL;
        re->vertnodeslen= 0;
        
@@ -3045,8 +3047,8 @@ void RE_Database_FromScene_Vectors(Render *re, Scene *sce)
        
        RE_Database_FromScene(re, sce, 1);
        
-       if(re->vertnodeslen!=vertnodeslen) {
-               printf("ERROR: vertex tables different in size %d %d\n", re->vertnodeslen, vertnodeslen);
+       if(re->totvert!=totvert) {
+               printf("ERROR: vertex tables different in size %d %d\n", re->totvert, totvert);
        }
        else {
                VertRen *ver= NULL, *oldver= NULL;