예제 #1
0
def post_save(scene):
    # reload inventories
    readonly = True
    scs_globals = _get_scs_globals()
    _config_container.update_hookup_library_rel_path(
        scs_globals.scs_hookup_inventory,
        scs_globals.hookup_library_rel_path,
        readonly
    )
    _config_container.update_matsubs_inventory(
        scs_globals.scs_matsubs_inventory,
        scs_globals.matsubs_library_rel_path,
        readonly
    )
    _config_container.update_traffic_rules_library_rel_path(
        scs_globals.scs_traffic_rules_inventory,
        scs_globals.traffic_rules_library_rel_path,
        readonly
    )
    _config_container.update_tsem_library_rel_path(
        scs_globals.scs_tsem_profile_inventory,
        scs_globals.tsem_library_rel_path,
        readonly
    )
    _config_container.update_sign_library_rel_path(
        scs_globals.scs_sign_model_inventory,
        scs_globals.sign_library_rel_path,
        readonly
    )
    _config_container.update_trigger_actions_rel_path(
        scs_globals.scs_trigger_actions_inventory,
        scs_globals.trigger_actions_rel_path,
        readonly
    )
예제 #2
0
    def trigger_actions_use_infixed_update(self, context):

        if not _get_scs_globals(
        ).config_update_lock:  # prevent reloading library when blender is starting
            _config_container.update_trigger_actions_rel_path(
                _get_scs_globals().scs_trigger_actions_inventory,
                self.trigger_actions_rel_path,
                readonly=True)

        _config_container.update_item_in_file(
            'Paths.TriggerActionsUseInfixed',
            int(self.trigger_actions_use_infixed))
예제 #3
0
 def trigger_actions_rel_path_update(self, context):
     _config_container.update_trigger_actions_rel_path(
         _get_scs_globals().scs_trigger_actions_inventory,
         self.trigger_actions_rel_path)
     return None