[Bf-blender-cvs] [3d9c8397fc1] blender-v3.0-release: Fix T93005: Cycles shadow catcher not inherited by instances
Brecht Van Lommel
noreply at git.blender.org
Thu Nov 11 18:12:14 CET 2021
Commit: 3d9c8397fc17143203a970e86ff07f093e799e40
Author: Brecht Van Lommel
Date: Thu Nov 11 16:26:20 2021 +0100
Branches: blender-v3.0-release
https://developer.blender.org/rB3d9c8397fc17143203a970e86ff07f093e799e40
Fix T93005: Cycles shadow catcher not inherited by instances
===================================================================
M intern/cycles/blender/object.cpp
===================================================================
diff --git a/intern/cycles/blender/object.cpp b/intern/cycles/blender/object.cpp
index 0ad3e551b8d..d6c52f7faf9 100644
--- a/intern/cycles/blender/object.cpp
+++ b/intern/cycles/blender/object.cpp
@@ -294,7 +294,7 @@ Object *BlenderSync::sync_object(BL::Depsgraph &b_depsgraph,
object->set_visibility(visibility);
- object->set_is_shadow_catcher(b_ob.is_shadow_catcher());
+ object->set_is_shadow_catcher(b_ob.is_shadow_catcher() || b_parent.is_shadow_catcher());
float shadow_terminator_shading_offset = get_float(cobject, "shadow_terminator_offset");
object->set_shadow_terminator_shading_offset(shadow_terminator_shading_offset);
More information about the Bf-blender-cvs
mailing list