mirror of
https://github.com/blender/blender
synced 2026-09-29 04:37:17 +03:00
Fix T51855: Cycles emssive objects with NaN transform break lighting.
This commit is contained in:
parent
46c7d45f77
commit
cda24d0853
1 changed files with 4 additions and 0 deletions
|
|
@ -224,6 +224,10 @@ void LightManager::disable_ineffective_light(Device *device, Scene *scene)
|
|||
|
||||
bool LightManager::object_usable_as_light(Object *object) {
|
||||
Mesh *mesh = object->mesh;
|
||||
/* Skip objects with NaNs */
|
||||
if (!object->bounds.valid()) {
|
||||
return false;
|
||||
}
|
||||
/* Skip if we are not visible for BSDFs. */
|
||||
if(!(object->visibility & (PATH_RAY_DIFFUSE|PATH_RAY_GLOSSY|PATH_RAY_TRANSMIT))) {
|
||||
return false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue