Fixing Painting on new SDK