示例#1
0
    def poll(cls, context):
        # Check VRtist process to auto disconnect
        if cls.vrtist_process is not None and cls.vrtist_process.poll() is not None:
            cls.vrtist_process = None
            leave_current_room()
            disconnect()

        # Manage button state
        return os.path.isfile(get_mixer_prefs().VRtist)
示例#2
0
    def execute(self, context):
        from mixer.bl_panels import update_ui_lists

        leave_current_room()
        update_ui_lists()
        return {"FINISHED"}