Use a bit different fix, which gets active scene from context and uses this scene to figure out active object instead of itterating through all the objects.
Use a bit different fix, which gets active scene from context and uses this scene to figure out active object instead of itterating through all the objects.