fix for what looks like simple mistake, function wasnt returning any values (compiler...
authorCampbell Barton <ideasman42@gmail.com>
Sun, 14 Sep 2008 17:19:59 +0000 (17:19 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Sun, 14 Sep 2008 17:19:59 +0000 (17:19 +0000)
source/blender/src/keyframing.c

index 80d4ebffec9627665ae7adee3df5a12bbdcadb49..2aac2f8c497cfb80c603cfd0e6a36311e9d8260c 100644 (file)
@@ -702,9 +702,11 @@ static float visualkey_get_value (ID *id, int blocktype, char *actname, char *co
        }
        
        /* as the function hasn't returned yet, try reading from poin */
-       get_context_ipo_poin(id, blocktype, actname, constname, icu, &vartype);
+       poin= get_context_ipo_poin(id, blocktype, actname, constname, icu, &vartype);
        if (poin)
                return read_ipo_poin(poin, vartype);
+       else
+               return 0.0;
 }