Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/intern
diff options
context:
space:
mode:
authorKévin Dietrich <kevin.dietrich@mailoo.org>2022-04-01 16:27:11 +0300
committerKévin Dietrich <kevin.dietrich@mailoo.org>2022-04-01 17:30:45 +0300
commite81d7bfcc9f48668f8c10d453d1a4c9c97b2c284 (patch)
tree118275554589ab307727d58f4d220337e1eee3ae /intern
parent5c80543c4366ee52bcc9d436c8fd7a740f7bbd9e (diff)
Cycles: enable Alembic procedural for final renders
The Alembic procedural was only enabled during viewport renders originally because it did not have any caching strategy. Now that is does, we can allow its usage in final renders. This also removes the `dag_eval_mode` argument passing to `ModifierTypeInfo.dependsOnTime` which was originally added to detect if we are doing a viewport render for enabling the procedural. Differential Revision: https://developer.blender.org/D14520
Diffstat (limited to 'intern')
-rw-r--r--intern/cycles/blender/object.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/intern/cycles/blender/object.cpp b/intern/cycles/blender/object.cpp
index 3a95746d149..58ea8961845 100644
--- a/intern/cycles/blender/object.cpp
+++ b/intern/cycles/blender/object.cpp
@@ -621,10 +621,8 @@ void BlenderSync::sync_objects(BL::Depsgraph &b_depsgraph,
bool has_subdivision_modifier = false;
BL::MeshSequenceCacheModifier b_mesh_cache(PointerRNA_NULL);
- /* Experimental as Blender does not have good support for procedurals at the moment, also
- * only available in preview renders since currently do not have a good cache policy, the
- * data being loaded at once for all the frames. */
- if (experimental && b_v3d) {
+ /* Experimental as Blender does not have good support for procedurals at the moment. */
+ if (experimental) {
b_mesh_cache = object_mesh_cache_find(b_ob, &has_subdivision_modifier);
use_procedural = b_mesh_cache && b_mesh_cache.cache_file().use_render_procedural();
}