In LR 11, when photo:getDevelopSettings() is invoked on a photo with a graduated filter, radial filter, or an adjustment brush that was added in LR 10, getDevelopSettings() returns neither the LR 10 nor the LR 11 representation of those masks. It should trigger the incremental update of the develop settings and return the LR 11 representation.
This is an issue for users of one of my most popular plugins, Any Filter, searching for photos with masks -- photos from LR 10 and earlier won't always be returned.
--------------------------------------------------------------------------------------------------------------------------------
To reproduce in LR 11.1:
1. Start LR 10.4 and make a new catalog, setting Catalog Settings > Standard Preview Size to 1024.
2. Import a raw with Build Previews: Standard, edit it, and add a Graduated Filter, Radial Filter, and Adjustment brush.
3. Go to Library Grid view (very important).
4. Use the Show Catalog Metadata plugin's Show command to verify that photo:getDevelopSettings() is returning values for the graduated filter, radial filter, and adjustment brush:
CircularGradientBasedCorrections = {--table: 2
[1] = {--table: 3
CorrectionActive = true,
...
GradientBasedCorrections = {--table: 7
[1] = {--table: 8
CorrectionActive = true,
...
PaintBasedCorrections = {--table: 19
[1] = {--table: 20
CorrectionActive = true,
...
5. Exit LR 10.4.
6. Open that catalog in LR 11.1, causing it to get upgraded.
7. Use Show Catalog Metadata > Show to verify that photo:getDevelopSettings() is returning neither the 10.4 representation of the masks (as shown in step 4) nor the 11 representation.
8. Select the photo and do Library > Previews > Discard 1:1 Previews followed by Build 1:1 Previews. If it refuses to rebuild the 1:1 preview, take the photo into Develop and go back to Library.
9. Verify that Show Catalog Metadata > Show is now showing the 11 representation:
MaskGroupBasedCorrections = {--table: 9
[1] = {--table: 10
CorrectionActive = true,
...