diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2017-08-10 10:19:40 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2017-08-10 10:21:02 +0300 |
commit | 5a618ab737225869555bb9782265a90f7ca2c373 (patch) | |
tree | 0b6d5f9d385f6266bb409aedf3cee36c203e6722 /intern/cycles/render/object.h | |
parent | de3c1657132b404d8611134c24894f7157665c29 (diff) |
Cycles: De-duplicate trace-time object visibility calculation
We already have enough files to worry about in BVH builders. no need to add yet
another copy-paste code which is tempting to be running out of sync.
Diffstat (limited to 'intern/cycles/render/object.h')
-rw-r--r-- | intern/cycles/render/object.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/intern/cycles/render/object.h b/intern/cycles/render/object.h index 12d7b2c81cf..6927bbfe4c7 100644 --- a/intern/cycles/render/object.h +++ b/intern/cycles/render/object.h @@ -60,7 +60,7 @@ public: ParticleSystem *particle_system; int particle_index; - + Object(); ~Object(); @@ -75,6 +75,11 @@ public: * kernel scene. */ bool is_traceable(); + + /* Combine object's visibility with all possible internal run-time + * determined flags which denotes trace-time visibility. + */ + uint visibility_for_tracing() const; }; /* Object Manager */ |