Blender Git Commit Log

Git Commits -> Revision 548e962

Revision 548e962 by Kévin Dietrich (master)
December 10, 2020, 01:31 (GMT)
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.

Commit Details:

Full Hash: 548e9624d0fe72f3a4a1f5d494f29b123f03bc20
Parent Commit: b379f93
Lines Changed: +19, -9

3 Modified Paths:

/intern/cycles/blender/blender_mesh.cpp (+2, -0) (Diff)
/intern/cycles/render/mesh.cpp (+16, -9) (Diff)
/intern/cycles/render/mesh.h (+1, -0) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021