diff options
author | Kévin Dietrich <kevin.dietrich@mailoo.org> | 2020-12-10 04:31:25 +0300 |
---|---|---|
committer | Kévin Dietrich <kevin.dietrich@mailoo.org> | 2020-12-10 04:31:25 +0300 |
commit | 548e9624d0fe72f3a4a1f5d494f29b123f03bc20 (patch) | |
tree | 7bacd1dd2e98310267ac2d35710c37591a2533f6 /source/blender/blenlib/BLI_string.h | |
parent | b379f9348487ad4e13650f10820a987deef76fe6 (diff) |
Fix T82852: Cycles crashes when editing a mesh with adaptive subdivision
The issue is caused by stale data on the Mesh Node which is not cleared
during synchronizing since the socket API refactor so that we can detect
changes. However, synchronization only updates the sockets of the Mesh,
so other properties were left with outdated values.
This caused an underflow when computing attribute size for undisplaced
coordinates as it was using the current number of vertices minus the
previous count of subdivision vertices, which at this point should be 0.
Added a simple method to clear non socket data. Also modified
Mesh.add_undisplaced to always use an ATTR_PRIM_GEOMETRY as the data is
not subdivided yet and it avoids any further issues regarding computing
attribute sizes.
Diffstat (limited to 'source/blender/blenlib/BLI_string.h')
0 files changed, 0 insertions, 0 deletions