Upgrade bug in 2021.04.11

There’s a small bug in 2021.04.11 that causes the upgrade of old scenes to happen over-and-over again. It’s harmless, but can be annoying to have to click that popup everytime you open the scene.

Here’s what you can do.

from ragdoll import __
from ragdoll.vendor import cmdx
for node in cmdx.ls(type="rdScene"):
    node["version"] = __.version
    print("Fixed %s" % node)

Then save the scene. That’s it. This will be fixed in the next release.

This only affects opening of scenes created before 2021.03.13.