virtualx-engine/modules
Ryan Roden-Corrent 7e64c6c399
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>
2023-09-30 11:32:21 -04: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 Unify and streamline connecting to Resource changes 2023-07-17 19:35:57 +02:00
cvtt Style: Harmonize header includes in modules 2023-06-15 14:35:45 +02:00
dds Implement loading DDS textures at run-time 2023-07-31 21:31:26 +02:00
denoise CI: Update static checks to black 23.3.0 2023-06-19 23:33:02 +02:00
enet Fix documentation for consistency 2023-07-12 05:33:49 +07: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 Merge pull request #80109 from timothyqiu/not-markdown 2023-08-01 20:04:00 +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-09-30 11:32:21 -04:00
gridmap Unify and streamline connecting to Resource changes 2023-07-17 19:35:57 +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 Style: Harmonize header includes in modules 2023-06-15 14:35:45 +02:00
mbedtls mbedtls: Improve X509 certificate load error handling 2023-06-26 19:17:17 +02:00
meshoptimizer Style: Harmonize header includes in modules 2023-06-15 14:35:45 +02:00
minimp3 Fill in descriptions for import options in the class reference 2023-07-27 19:18:27 +02:00
mobile_vr Doctool: Remove version attribute from XML header 2023-07-06 10:08:21 +02:00
mono Merge pull request #80047 from AbeniMatteo/dev-colors 2023-08-01 17:25:56 +02:00
msdfgen One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
multiplayer [MP] Use get/set indexed in MultiplayerSynchronizer 2023-07-14 20:50:55 +02:00
navigation Merge pull request #79916 from smix8/navobstacle_mutex_4.x 2023-07-26 18:40:45 +02:00
noise Unify and streamline connecting to Resource changes 2023-07-17 19:35:57 +02:00
ogg Doctool: Remove version attribute from XML header 2023-07-06 10:08:21 +02:00
openxr Merge pull request #68259 from konczg/openxr_extension_wrapper_gdextension 2023-07-27 15:22:22 +02:00
raycast Revert "Implement parallel foreach() for easier multithreading" 2023-07-27 13:41:27 +02:00
regex Doctool: Remove version attribute from XML header 2023-07-06 10:08:21 +02:00
squish Fix misuses of error macros 2023-04-18 10:20:48 +03:00
svg Added Image's load_svg_from_(buffer|string) 2023-06-23 00:43:43 -03:00
text_server_adv Extract and reorganize texture resource classes 2023-07-14 20:04:21 +02:00
text_server_fb Extract and reorganize texture resource classes 2023-07-14 20:04:21 +02:00
tga One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
theora Extract and reorganize texture resource classes 2023-07-14 20:04:21 +02:00
tinyexr Style: Harmonize header includes in modules 2023-06-15 14:35:45 +02:00
upnp Doctool: Remove version attribute from XML header 2023-07-06 10:08:21 +02:00
vhacd Style: Harmonize header includes in modules 2023-06-15 14:35:45 +02:00
vorbis Merge pull request #79405 from Calinou/doc-import-options 2023-07-27 20:32:04 +02:00
webp Merge pull request #79257 from DeeJayLSP/sharpp 2023-07-25 21:25:54 +02:00
webrtc Doctool: Remove version attribute from XML header 2023-07-06 10:08:21 +02:00
websocket Doctool: Remove version attribute from XML header 2023-07-06 10:08:21 +02:00
webxr Doctool: Remove version attribute from XML header 2023-07-06 10:08:21 +02:00
xatlas_unwrap Style: Harmonize header includes in modules 2023-06-15 14:35:45 +02:00
zip Doctool: Remove version attribute from XML header 2023-07-06 10:08:21 +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