godot/modules
Ryan Roden-Corrent c93d74aca0 Update blender export flags for 3.6.
Fixes #76338.

Blender 3.6 imports fail with:

```
TypeError: Converting py args to operator properties: : keyword "export_nla_strips" unrecognized
```

The `export_nla_strips` flag was removed and replaced with `export_animation_mode`.
In 3.6.0-3.6.21, this option does not exist at all and causes the failure above.
In 3.6.22, this option was re-added, but does nothing.
See 96a73cb664.

We now need to check the blender version to determine what flags to use.
This adds an additional shell command before every import.
We might consider caching the version, but we'd have to invalidate the cache if the blender version or path changes.

As an aside, the "group animations" setting in Godot does the opposite of what I'd expect.
When `group_tracks=true`, each animation is exported individually.
When `group_tracks=false`, all animations are exported as a single track.
This seems backwards, but I've kept the 3.6 behavior consistent with 3.5.

From https://docs.blender.org/api/3.6/bpy.ops.export_scene.html:

> ACTIONS Actions – Export actions (actives and on NLA tracks) as separate animations.
> ACTIVE_ACTIONS Active actions merged – All the currently assigned actions become one glTF animation.

Co-authored-by: A Thousand Ships <96648715+AThousandShips@users.noreply.github.com>
(cherry picked from commit 7e64c6c399)
2023-10-24 19:51:53 +02:00
..
astcenc astcenc: Update to 4.4.0 2023-05-11 14:32:47 +02:00
basis_universal Fix Basic Universal compressing with normal maps. 2023-06-16 11:20:16 -07:00
bmp Adds some basic 16BPP BMP Support. 2023-04-12 19:27:23 -04:00
camera Style: Harmonize header includes in modules 2023-06-15 14:35:45 +02:00
csg Make CSGShape follow curve's tilt in Path mode 2023-10-19 21:49:00 +02:00
cvtt Style: Harmonize header includes in modules 2023-06-15 14:35:45 +02:00
dds Fix grayscale dds loading 2023-10-24 16:06:29 +02:00
denoise SCons: Disable C++ exception handling 2023-09-20 22:44:05 +02:00
enet Fix various typos with codespell 2023-10-03 20:45:35 +02:00
etcpak Style: Harmonize header includes in modules 2023-06-15 14:35:45 +02:00
freetype Expose brotli decompression to the scripting API. 2023-03-29 22:43:36 +03:00
gdscript Fix GDScriptCache::get_full_script eating parsing errors because of early exit 2023-10-24 19:51:53 +02:00
glslang Style: Harmonize header includes in modules 2023-06-15 14:35:45 +02:00
gltf Update blender export flags for 3.6. 2023-10-24 19:51:53 +02:00
gridmap Ensure the visibility is updated when entering the tree 2023-10-24 16:07:42 +02:00
hdr One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
jpg Style: Harmonize header includes in modules 2023-06-15 14:35:45 +02:00
jsonrpc Style: Harmonize header includes in modules 2023-06-15 14:35:45 +02:00
lightmapper_rd Add half-pixel offset to lightmapper rasterization. 2023-09-21 14:57:13 +02:00
mbedtls [Crypto] Fix generate_random_bytes for large chunks 2023-10-03 20:45:35 +02:00
meshoptimizer Style: Harmonize header includes in modules 2023-06-15 14:35:45 +02:00
minimp3 Revert "minimp3: Add a .cpp file to simplify building the single-header implementation" 2023-06-19 13:34:56 +02:00
mobile_vr Add a get_system_info method to XRInterface 2023-03-15 13:11:48 +11:00
mono Fixed an error in Vector3.BezierDerivative in mono module 2023-10-24 19:50:22 +02:00
msdfgen One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
multiplayer [MP] Fix watch properties not being correctly removed 2023-10-24 16:05:00 +02:00
navigation Fix pathfinding funnel adding unwanted point 2023-10-19 21:21:02 +02:00
noise Remove GPU readback from NoiseTexture3D.get_format 2023-09-20 22:44:04 +02:00
ogg Style: Harmonize header includes in modules 2023-06-15 14:35:45 +02:00
openxr Fixing incorrect swapchain release timing 2023-10-24 19:50:22 +02:00
raycast Style: Harmonize header includes in modules 2023-06-15 14:35:45 +02:00
regex Style: Harmonize header includes in modules 2023-06-15 14:35:45 +02:00
squish Fix misuses of error macros 2023-04-18 10:20:48 +03:00
svg SVG: fix tvg::Picture->size() and scale based errors. 2023-04-05 19:15:21 +02:00
text_server_adv Fix various typos with codespell 2023-10-03 20:45:35 +02:00
text_server_fb Fix various typos with codespell 2023-10-03 20:45:35 +02:00
tga One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
theora Bump version to 4.1-dev 2023-03-01 01:44:37 +01:00
tinyexr Style: Harmonize header includes in modules 2023-06-15 14:35:45 +02:00
upnp Style: Harmonize header includes in modules 2023-06-15 14:35:45 +02:00
vhacd Style: Harmonize header includes in modules 2023-06-15 14:35:45 +02:00
vorbis Style: Harmonize header includes in modules 2023-06-15 14:35:45 +02:00
webp Style: Harmonize header includes in modules 2023-06-15 14:35:45 +02:00
webrtc Style: Harmonize header includes in modules 2023-06-15 14:35:45 +02:00
websocket Style: Harmonize header includes in modules 2023-06-15 14:35:45 +02:00
webxr Style: Harmonize header includes in modules 2023-06-15 14:35:45 +02:00
xatlas_unwrap Style: Harmonize header includes in modules 2023-06-15 14:35:45 +02:00
zip Style: Harmonize header includes in modules 2023-06-15 14:35:45 +02:00
modules_builders.py
register_module_types.h One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
SCsub