Save and restore python pointers when adding or removing customdata layers, this is needed since tool flags are a customdata layer in sculpt-dev. Reallocating tool flags shouldn't clear python pointers.
Save and restore python pointers when adding or removing customdata layers, this is needed since tool flags are a customdata layer in sculpt-dev. Reallocating tool flags shouldn't clear python pointers.