Merge branch 'blender-v2.83-release'

This commit is contained in:
Julien Duroure 2020-04-18 09:14:25 +02:00
commit f94f46dac8
3 changed files with 14 additions and 10 deletions

View File

@ -15,7 +15,7 @@
bl_info = {
'name': 'glTF 2.0 format',
'author': 'Julien Duroure, Norbert Nopper, Urs Hanselmann, Moritz Becher, Benjamin Schmithüsen, Jim Eckerlein, and many external contributors',
"version": (1, 3, 1),
"version": (1, 3, 2),
'blender': (2, 83, 9),
'location': 'File > Import-Export',
'description': 'Import-Export as glTF 2.0',

View File

@ -271,19 +271,19 @@ def __gather_interpolation(channels: typing.Tuple[bpy.types.FCurve],
# If only single keyframe revert to STEP
if max_keyframes < 2:
return 'STEP'
else:
blender_keyframe = [c for c in channels if c is not None][0].keyframe_points[0]
# For sampled animations: CONSTANT are STEP, other are LINEAR
return {
"BEZIER": "LINEAR",
"LINEAR": "LINEAR",
"CONSTANT": "STEP"
}[blender_keyframe.interpolation]
# If all keyframes are CONSTANT, we can use STEP.
if all(all(k.interpolation == 'CONSTANT' for k in c.keyframe_points) for c in channels if c is not None):
return 'STEP'
# Otherwise, sampled keyframes use LINEAR interpolation.
return 'LINEAR'
# Non-sampled keyframes implies that all keys are of the same type, and that the
# type is supported by glTF (because we checked in needs_baking).
blender_keyframe = [c for c in channels if c is not None][0].keyframe_points[0]
# Select the interpolation method. Any unsupported method will fallback to STEP
# Select the interpolation method.
return {
"BEZIER": "CUBICSPLINE",
"LINEAR": "LINEAR",

View File

@ -23,6 +23,10 @@ bl_info = {
"description": "Manage collections and their objects",
"author": "Ryan Inch",
"version": (2,7,11),
<<<<<<< HEAD
=======
"blender": (2, 80, 0),
>>>>>>> blender-v2.83-release
"location": "View3D - Object Mode (Shortcut - M)",
"warning": '', # used for warning icon and text in addons panel
"doc_url": "{BLENDER_MANUAL_URL}/addons/interface/collection_manager.html",