diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2016-07-28 13:27:24 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2016-07-28 13:28:31 +0300 |
commit | d3d1313ca4fff7566d84ba4f3495977791d8c895 (patch) | |
tree | 6bdb2374dc6fa662aae4ca32b63eba9e0a5afc7f /intern/cycles/render/light.h | |
parent | 87717c64490f3fe3a00e5df844f3d03923ceca34 (diff) |
Cycles: De-duplicate more checks around light emisive meshes
Once again, should be no functional changes.
Diffstat (limited to 'intern/cycles/render/light.h')
-rw-r--r-- | intern/cycles/render/light.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/intern/cycles/render/light.h b/intern/cycles/render/light.h index 2f1df1c9417..745caa96159 100644 --- a/intern/cycles/render/light.h +++ b/intern/cycles/render/light.h @@ -28,6 +28,7 @@ CCL_NAMESPACE_BEGIN class Device; class DeviceScene; +class Object; class Progress; class Scene; class Shader; @@ -108,6 +109,9 @@ protected: DeviceScene *dscene, Scene *scene, Progress& progress); + + /* Check whether light manager can use the object as a light-emissive. */ + bool object_usable_as_light(Object *object); }; CCL_NAMESPACE_END |