[Bf-blender-cvs] [22e9365e8b9] master: Depsgraph: Fix wrong comment
Sergey Sharybin
noreply at git.blender.org
Mon May 6 10:12:31 CEST 2019
Commit: 22e9365e8b9e2fe6d471950e6046fa6a92a67e71
Author: Sergey Sharybin
Date: Mon May 6 10:03:22 2019 +0200
Branches: master
https://developer.blender.org/rB22e9365e8b9e2fe6d471950e6046fa6a92a67e71
Depsgraph: Fix wrong comment
===================================================================
M source/blender/depsgraph/DEG_depsgraph_query.h
===================================================================
diff --git a/source/blender/depsgraph/DEG_depsgraph_query.h b/source/blender/depsgraph/DEG_depsgraph_query.h
index 78434411a22..3030bfb28b3 100644
--- a/source/blender/depsgraph/DEG_depsgraph_query.h
+++ b/source/blender/depsgraph/DEG_depsgraph_query.h
@@ -72,10 +72,15 @@ void DEG_get_customdata_mask_for_object(const struct Depsgraph *graph,
struct Object *object,
struct CustomData_MeshMasks *r_mask);
-/* Get scene the despgraph is created for. */
+/* Get scene at its evaluated state.
+ *
+ * Technically, this is a copied-on-written and fully evaluated version of the input scene.
+ * This function will check that the datablock has been expanded (and copied) from the original
+ * one. Assert will happen if it's not. */
struct Scene *DEG_get_evaluated_scene(const struct Depsgraph *graph);
-/* Get scene layer the despgraph is created for. */
+/* Get view layer at its evaluated state.
+ * This is a shortcut for accessing active view layer from evaluated scene. */
struct ViewLayer *DEG_get_evaluated_view_layer(const struct Depsgraph *graph);
/* Get evaluated version of object for given original one. */
More information about the Bf-blender-cvs
mailing list