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