Cycles: Report whether camera was detected inside volume or not
This commit is contained in:
parent
28790fb3a7
commit
0260d7b726
Notes:
blender-bot
2023-02-14 04:03:14 +01:00
Referenced by issue #60597, Material Shader Crashes Cycles
|
@ -24,6 +24,7 @@
|
|||
|
||||
#include "util/util_foreach.h"
|
||||
#include "util/util_function.h"
|
||||
#include "util/util_logging.h"
|
||||
#include "util/util_math_cdf.h"
|
||||
#include "util/util_vector.h"
|
||||
|
||||
|
@ -502,10 +503,14 @@ void Camera::device_update_volume(Device * /*device*/,
|
|||
viewplane_boundbox.intersects(object->bounds))
|
||||
{
|
||||
/* TODO(sergey): Consider adding more grained check. */
|
||||
VLOG(1) << "Detected camera inside volume.";
|
||||
kcam->is_inside_volume = 1;
|
||||
break;
|
||||
}
|
||||
}
|
||||
if(!kcam->is_inside_volume) {
|
||||
VLOG(1) << "Camera is outside of the volume.";
|
||||
}
|
||||
need_device_update = false;
|
||||
need_flags_update = false;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue