'PE_set_data' / 'PE_set_view3d_data' would give us a depsgraph already,
so use it.
Also fix access to PEData->depsgraph without calling 'PE_set_data' prior.
Addresses concern raised in rBcf2c09002fae.
Differential D6067
Cleanup: depsgraph access in particle_edit.c Authored by Philipp Oeser (lichtwerk) on Oct 15 2019, 12:23 PM. Tags None Subscribers None
Details 'PE_set_data' / 'PE_set_view3d_data' would give us a depsgraph already, Also fix access to PEData->depsgraph without calling 'PE_set_data' prior. Addresses concern raised in rBcf2c09002fae.
Diff Detail
Event TimelineComment Actions On an additional level, we can probably do PEData data = {0}; and have asserts to catch cases where we miss initialization? Comment Actions There is some more possible cleanup to be done here (I think):
And just to make sure: this Diff [without the additional steps] can/should go into 2.81-release, right? |