Pose objects may be from the active object, or from the weight paint mesh. Since this is such a common check move this to a function call.
Pose objects may be from the active object, or from the weight paint mesh. Since this is such a common check move this to a function call.