[Bf-blender-cvs] [1bc801e0204] blender2.8: Fix use of uninitialized value in depsgraph.

Brecht Van Lommel noreply at git.blender.org
Fri Jun 1 12:00:44 CEST 2018


Commit: 1bc801e02042b6170bb7758157d8bb1703286623
Author: Brecht Van Lommel
Date:   Thu May 31 14:15:25 2018 +0200
Branches: blender2.8
https://developer.blender.org/rB1bc801e02042b6170bb7758157d8bb1703286623

Fix use of uninitialized value in depsgraph.

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

M	source/blender/depsgraph/intern/depsgraph.cc

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

diff --git a/source/blender/depsgraph/intern/depsgraph.cc b/source/blender/depsgraph/intern/depsgraph.cc
index 96e89449d42..26f189aae4b 100644
--- a/source/blender/depsgraph/intern/depsgraph.cc
+++ b/source/blender/depsgraph/intern/depsgraph.cc
@@ -99,6 +99,7 @@ Depsgraph::Depsgraph(Scene *scene,
 	id_hash = BLI_ghash_ptr_new("Depsgraph id hash");
 	entry_tags = BLI_gset_ptr_new("Depsgraph entry_tags");
 	debug_flags = G.debug;
+	memset(id_type_updated, 0, sizeof(id_type_updated));
 }
 
 Depsgraph::~Depsgraph()



More information about the Bf-blender-cvs mailing list