Blender Git Loki

Git Commits -> Revision 5e9dba8

Revision 5e9dba8 by Campbell Barton (master)
December 8, 2021, 15:05 (GMT)
Cleanup: Avoid error prone pointer storage in SnapObjectParams

eed48a73222efb86b53cdd99079f8c26eba30e57 caused the `SnapObjectParams` to be stored in the `SnapObjectContext`.

As this pointer is always passing in stack memory, so it seems error prone to keep a reference to this in `SnapObjectContext` since failure to set this will reference undefined stack memory.

So avoid this by moving params out of `SnapObjectContext`.

Differential Revision: https://developer.blender.org/D13401

Commit Details:

Full Hash: 5e9dba822d8de977909bf170dcae9950535e01af
Parent Commit: 98bb8e6
Committed By: Germano Cavalcante
Lines Changed: +83, -50

1 Modified Path:

/source/blender/editors/transform/transform_snap_object.c (+83, -50) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021