Commit: ff86573d72cadf431c6f39aac9c8ebb78853acdc
Author: Lukas Stockner
Date:   Wed Jan 11 21:35:09 2023 +0100
Branches: master
https://developer.blender.org/rBff86573d72cadf431c6f39aac9c8ebb78853acdc

Fix T102313: Enabling shadow catcher in viewport render shows self-shadowing

The problem here is that whether an object is a shadow catcher or not affects 
the
visibility flags, but changes to the shadow catcher property did not trigger a
visibility flag update.

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

M       intern/cycles/scene/object.cpp

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

diff --git a/intern/cycles/scene/object.cpp b/intern/cycles/scene/object.cpp
index c788c6f4a8c..dc98389575a 100644
--- a/intern/cycles/scene/object.cpp
+++ b/intern/cycles/scene/object.cpp
@@ -217,6 +217,7 @@ void Object::tag_update(Scene *scene)
 
     if (is_shadow_catcher_is_modified()) {
       scene->tag_shadow_catcher_modified();
+      flag |= ObjectManager::VISIBILITY_MODIFIED;
     }
   }

_______________________________________________
Bf-blender-cvs mailing list
Bf-blender-cvs@blender.org
List details, subscription details or unsubscribe:
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to