[Bf-blender-cvs] [09cade6ca44] blender2.8: Fix MSVC compilation, there is no 'Designated initializers' in C++!
Bastien Montagne
noreply at git.blender.org
Sat Dec 2 18:25:58 CET 2017
Commit: 09cade6ca44c7081932570d6500ee535ed7de5ef
Author: Bastien Montagne
Date: Sat Dec 2 18:25:09 2017 +0100
Branches: blender2.8
https://developer.blender.org/rB09cade6ca44c7081932570d6500ee535ed7de5ef
Fix MSVC compilation, there is no 'Designated initializers' in C++!
Looks like gcc is at the very least missing a warning here!
===================================================================
M source/blender/depsgraph/intern/eval/deg_eval_flush.cc
===================================================================
diff --git a/source/blender/depsgraph/intern/eval/deg_eval_flush.cc b/source/blender/depsgraph/intern/eval/deg_eval_flush.cc
index 291cdb77912..a30812c692f 100644
--- a/source/blender/depsgraph/intern/eval/deg_eval_flush.cc
+++ b/source/blender/depsgraph/intern/eval/deg_eval_flush.cc
@@ -237,9 +237,9 @@ void deg_graph_flush_updates(Main *bmain, Depsgraph *graph)
flush_schedule_entrypoints(graph, &queue);
/* Prepare update context for editors. */
DEGEditorUpdateContext update_ctx = {
- .bmain = bmain,
- .scene = graph->scene,
- .view_layer = graph->view_layer,
+ bmain,
+ graph->scene,
+ graph->view_layer,
};
/* Do actual flush. */
while (!queue.empty()) {
More information about the Bf-blender-cvs
mailing list