Cleanup: quiet float argument to in type warning
[blender-addons.git] / viewport_vr_preview / versioning.py
blob1de6e87f75556f58a6fbfceec203a373dc8b2ad9
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.
14 ## import copy
15 ## has_copy = False
17 ## if actionconfig_version <= (3, 0, 0):
18 ## # Only copy once.
19 ## if not has_copy:
20 ## actionconfig_data = copy.deepcopy(actionconfig_data)
21 ## has_copy = True
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