[Bf-blender-cvs] [f9ec2e7] alembic: Silence compiler errors by returning a default value for vector interpolation.

Lukas Tönne noreply at git.blender.org
Tue Jun 2 15:26:33 CEST 2015


Commit: f9ec2e706e652d5af5af15883c13122816ba29ad
Author: Lukas Tönne
Date:   Tue Jun 2 12:29:37 2015 +0200
Branches: alembic
https://developer.blender.org/rBf9ec2e706e652d5af5af15883c13122816ba29ad

Silence compiler errors by returning a default value for vector
interpolation.

===================================================================

M	source/blender/pointcache/alembic/abc_interpolate.h

===================================================================

diff --git a/source/blender/pointcache/alembic/abc_interpolate.h b/source/blender/pointcache/alembic/abc_interpolate.h
index d0425aa..102f468 100644
--- a/source/blender/pointcache/alembic/abc_interpolate.h
+++ b/source/blender/pointcache/alembic/abc_interpolate.h
@@ -65,6 +65,7 @@ BLI_INLINE V3f interpolate_sample(const V3f &val0, const V3f &val1, float t, Int
 			interp_v3_v3v3_slerp_safe(result.getValue(), val0.getValue(), val1.getValue(), t);
 			return result;
 	}
+	return V3f(0.0f, 0.0f, 0.0f);
 }
 
 BLI_INLINE Quatf interpolate_sample(const Quatf &val0, const Quatf &val1, float t)




More information about the Bf-blender-cvs mailing list