curScore returns always different values for the same score in MS3
I need to detect changes of the active score in a plugin.
In MS2 you can use curScore -> save oldScore and compare the two values, which works like a charm.
If you do the same in MS3 it doesn't work. Same behaviour on Ubuntu and Win 7 - so probably platform independent.
The problem is that you get always different curScore objects/pointers/handles to the same score in MS3.
Hence I have no way to detect a change of the active score anymore.
btw: the same is true for any other object. Seems to be a general change in design or a general bug.
The data behind the object/pointer/handle is still correct. The "pointer" changes but it points still to the same data.
Would be much better to return always the same pointer as it did in previous versions.
Is there another way to find changes of the current score?
Once again, I can't actually use MS3 which is a pity...
Appended is a Mini-Plugin which writes score changes to the console in the Plug-In Editor:
MS2 working - MS3 filling the console... (just change the import for MuseScore 1.0/3.0)