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.
This commit is contained in:
parent
88e9826529
commit
ff86573d72
Notes:
blender-bot
2023-02-14 06:55:40 +01:00
Referenced by issue #102313, Regression: Shadow catcher will cast a shadow on itself in certain circumstances.
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue