[Bf-blender-cvs] [0850165] openvdb: Always initialize cache path.

Kévin Dietrich noreply at git.blender.org
Tue Jan 5 00:51:11 CET 2016


Commit: 0850165a5a4bc4d31bb52df3a92802a50e060431
Author: Kévin Dietrich
Date:   Thu Dec 31 01:10:01 2015 +0100
Branches: openvdb
https://developer.blender.org/rB0850165a5a4bc4d31bb52df3a92802a50e060431

Always initialize cache path.

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

M	source/blender/editors/object/object_modifier.c

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

diff --git a/source/blender/editors/object/object_modifier.c b/source/blender/editors/object/object_modifier.c
index ac6a8ca..c31c4f5 100644
--- a/source/blender/editors/object/object_modifier.c
+++ b/source/blender/editors/object/object_modifier.c
@@ -2489,6 +2489,7 @@ static OpenVDBCache *openvdb_cache_new(void)
 	cache->endframe = 250;
 	cache->compression = VDB_COMPRESSION_ZIP;
 
+	BLI_strncpy(cache->path, "//\0", 3);
 	BLI_strncpy(cache->name, "openvdb_cache", sizeof(cache->name));
 
 	return cache;




More information about the Bf-blender-cvs mailing list