[Bf-blender-cvs] [b5787475cc8] temp-render-depsgraph: From review: Initialize struct based on struct elements declaration order

Dalai Felinto noreply at git.blender.org
Thu Feb 22 12:43:05 CET 2018


Commit: b5787475cc8c0a918279958a3cf369099dd56c30
Author: Dalai Felinto
Date:   Thu Feb 22 07:45:27 2018 -0300
Branches: temp-render-depsgraph
https://developer.blender.org/rBb5787475cc8c0a918279958a3cf369099dd56c30

>From review: Initialize struct based on struct elements declaration order

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

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

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

diff --git a/source/blender/depsgraph/intern/depsgraph_eval.cc b/source/blender/depsgraph/intern/depsgraph_eval.cc
index 2dc36d0d428..ddb049a0043 100644
--- a/source/blender/depsgraph/intern/depsgraph_eval.cc
+++ b/source/blender/depsgraph/intern/depsgraph_eval.cc
@@ -104,11 +104,11 @@ void DEG_evaluation_context_init_from_view_layer_for_render(
 	BLI_assert(view_layer_original != NULL);
 
 	DEG_evaluation_context_init(eval_ctx, DAG_EVAL_RENDER);
+	eval_ctx->ctime = BKE_scene_frame_get(scene);
+	eval_ctx->object_mode = OB_MODE_OBJECT;
 	eval_ctx->depsgraph = depsgraph;
 	eval_ctx->view_layer = view_layer_original;
 	eval_ctx->engine_type = NULL;
-	eval_ctx->ctime = BKE_scene_frame_get(scene);
-	eval_ctx->object_mode = OB_MODE_OBJECT;
 }
 
 /* Free evaluation context. */



More information about the Bf-blender-cvs mailing list