diff options
author | Jacques Lucke <jacques@blender.org> | 2021-11-10 15:38:07 +0300 |
---|---|---|
committer | Jacques Lucke <jacques@blender.org> | 2021-11-10 15:38:07 +0300 |
commit | 47b8baa5c4e5b713d33e3925df9d55b882ae2a27 (patch) | |
tree | 2557e4a397f32dfd342f5d1ee7881425fef0c0f9 /source | |
parent | aa2f6e59770896a981831c432667bbf58e232ce2 (diff) |
Fix T92864: curve object does not sync correctly in cycles
The issue was that the `object_is_geometry` method was used in two different
contexts that expected the function to behave differently. So a recent change
that fixed `object_is_geometry` for one context, broke it for the other context.
The two contexts are:
* Check if a "real" object can contain a geometry to check if it has to be tagged
for sync after an update.
* Check if an object/instance actually is a geometry that cycles can work with.
I created a new `object_can_have_geometry` method for the first use case, instead
of trying to adapt the existing object_is_geometry method to serve both uses.
Additionally, I changed it so that a BObjectInfo is passed into `object_is_geometry`
to make it more explicit when this method is supposed to be used.
Differential Revision: https://developer.blender.org/D13135
Diffstat (limited to 'source')
0 files changed, 0 insertions, 0 deletions