Make struct initialization happy for CLang

This commit is contained in:
Sergey Sharybin 2018-09-28 10:13:56 +02:00
parent c72770d1cb
commit 89264d8c40
2 changed files with 2 additions and 2 deletions

View File

@ -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:

View File

@ -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;