diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2016-06-06 10:15:34 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2016-06-06 10:23:53 +0300 |
commit | 6046c03f5c2847f8eaac30fbe1c507e50340aad2 (patch) | |
tree | b678f3ecbf365bf8add0a0885181ec26fe3a14c7 /intern/cycles/render/object.h | |
parent | b62faa54de70fd8a4125c98cce2d12f3291139fc (diff) |
Cycles: Ignore zero size instances in BVH
In certain types of animation it's possible to have some objects
scaling to zero. In this case we can save render times by avoid
traversing such instances.
Better to do ti ahead of a time, so traversal stays simple.
Reviewers: lukasstockner97, dingto, brecht
Reviewed By: brecht
Differential Revision: https://developer.blender.org/D2048
Diffstat (limited to 'intern/cycles/render/object.h')
-rw-r--r-- | intern/cycles/render/object.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/intern/cycles/render/object.h b/intern/cycles/render/object.h index 57614c95580..7ab73f3c91a 100644 --- a/intern/cycles/render/object.h +++ b/intern/cycles/render/object.h @@ -68,6 +68,11 @@ public: void apply_transform(bool apply_to_motion); vector<float> motion_times(); + + /* Check whether object is traceable and it worth adding it to + * kernel scene. + */ + bool is_traceable(); }; /* Object Manager */ |