[Bf-blender-cvs] [89264d8c402] blender2.8: Make struct initialization happy for CLang

Sergey Sharybin noreply at git.blender.org
Fri Sep 28 10:14:27 CEST 2018


Commit: 89264d8c40293697abbe28200e6c6c1c2e2e2960
Author: Sergey Sharybin
Date:   Fri Sep 28 10:13:56 2018 +0200
Branches: blender2.8
https://developer.blender.org/rB89264d8c40293697abbe28200e6c6c1c2e2e2960

Make struct initialization happy for CLang

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

M	source/blender/depsgraph/intern/eval/deg_eval_copy_on_write.cc
M	source/blender/editors/armature/pose_edit.c

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

diff --git a/source/blender/depsgraph/intern/eval/deg_eval_copy_on_write.cc b/source/blender/depsgraph/intern/eval/deg_eval_copy_on_write.cc
index 5b2436279f0..5b52843c1fe 100644
--- a/source/blender/depsgraph/intern/eval/deg_eval_copy_on_write.cc
+++ b/source/blender/depsgraph/intern/eval/deg_eval_copy_on_write.cc
@@ -812,7 +812,7 @@ ID *deg_update_copy_on_write_datablock(const Depsgraph *depsgraph,
 	ListBase *gpumaterial_ptr = NULL;
 	DrawDataList drawdata_backup;
 	DrawDataList *drawdata_ptr = NULL;
-	ObjectRuntimeBackup object_runtime_backup = {NULL};
+	ObjectRuntimeBackup object_runtime_backup = {{NULL}};
 	if (check_datablock_expanded(id_cow)) {
 		switch (id_type) {
 			case ID_MA:
diff --git a/source/blender/editors/armature/pose_edit.c b/source/blender/editors/armature/pose_edit.c
index 5e5988bd69b..136f17156e1 100644
--- a/source/blender/editors/armature/pose_edit.c
+++ b/source/blender/editors/armature/pose_edit.c
@@ -208,7 +208,7 @@ void ED_pose_recalculate_paths(bContext *C, Scene *scene, Object *ob, bool curre
 	/* Override depsgraph with a filtered, simpler copy */
 	if (!current_frame_only && G.debug_value != -1) {
 		TIMEIT_START(filter_pose_depsgraph);
-		DEG_FilterQuery query = {0};
+		DEG_FilterQuery query = {{0}};
 
 		DEG_FilterTarget *dft_ob = MEM_callocN(sizeof(DEG_FilterTarget), "DEG_FilterTarget");
 		dft_ob->id = &ob->id;



More information about the Bf-blender-cvs mailing list