diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2018-09-28 11:13:56 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2018-09-28 11:13:56 +0300 |
commit | 89264d8c40293697abbe28200e6c6c1c2e2e2960 (patch) | |
tree | c005cfeabfd361a49d78fcd299538c86c0c68203 /source | |
parent | c72770d1cb9158fcf3f463d788722d089845b955 (diff) |
Make struct initialization happy for CLang
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/depsgraph/intern/eval/deg_eval_copy_on_write.cc | 2 | ||||
-rw-r--r-- | source/blender/editors/armature/pose_edit.c | 2 |
2 files changed, 2 insertions, 2 deletions
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; |