Fix #129207: GPv3: Linked GPv2 objects disappear when reopening file. #129220

Merged
Bastien Montagne merged 2 commits from mont29/blender:tmp-gpv3-link-gpv2-obdata into main 2024-10-21 11:13:48 +02:00

2 Commits

Author SHA1 Message Date
35e4aeb86a Fixes from review.
All checks were successful
buildbot/vexp-code-patch-lint Build done.
buildbot/vexp-code-patch-linux-x86_64 Build done.
buildbot/vexp-code-patch-windows-amd64 Build done.
buildbot/vexp-code-patch-darwin-x86_64 Build done.
buildbot/vexp-code-patch-darwin-arm64 Build done.
buildbot/vexp-code-patch-coordinator Build done.
2024-10-18 18:06:06 +02:00
a9605b841f Fix #129207: GPv3: Linked GPv2 objects disappear when reopening file.
Some checks failed
buildbot/vexp-code-patch-lint Build done.
buildbot/vexp-code-patch-darwin-arm64 Build done.
buildbot/vexp-code-patch-linux-x86_64 Build done.
buildbot/vexp-code-patch-darwin-x86_64 Build done.
buildbot/vexp-code-patch-windows-amd64 Build done.
buildbot/vexp-code-patch-coordinator Build done.
This happens because blender 4.3 only knows about GPv3 IDs, and
therefore stores a reference to a directly linked GPv2 obdata as a GPv3
one, which cannot be found again on next file load in the GPv2 library.

The idea of this fix is, if the looup of a idcode+idname fails, to also
search for the same name but with an older, deprecated ID code.
2024-10-18 16:46:23 +02:00