1 # SPDX-FileCopyrightText: 2021-2022 Blender Foundation
3 # SPDX-License-Identifier: GPL-2.0-or-later
5 # Update Blender version this action map was written in:
7 # When the version is ``(0, 0, 0)``, the action map being loaded didn't contain any versioning information.
8 # This will older than ``(3, 0, 0)``.
10 def actionconfig_update(actionconfig_data
, actionconfig_version
):
11 from bpy
.app
import version_file
as blender_version
12 if actionconfig_version
>= blender_version
:
13 return actionconfig_data
15 ## # Version the action map.
19 ## if actionconfig_version <= (3, 0, 0):
22 ## actionconfig_data = copy.deepcopy(actionconfig_data)
25 ## for (am_name, am_content) in actionconfig_data:
26 ## # Apply action map updates.
28 ## am_items = am_content["items"]
30 ## for (ami_name, ami_args, ami_data, ami_content) in am_items
31 ## # Apply action map item updates.
33 ## ami_bindings = ami_content["bindings"]
35 ## for (amb_name, amb_args) in ami_bindings:
36 ## # Apply action map binding updates.
38 return actionconfig_data