mirror of
https://github.com/mwpenny/portal64-still-alive.git
synced 2024-10-20 10:37:37 -04:00
1d0b22df61
* When building with CMake, dynamic model lists are now generated * Factored common code out of generate_*_list.js files to deduplicate * Better separated generated model lists from main game code `dynamic_asset_data.c` and `dynamic_animated_asset_data.c` previously #included the corresponding generated headers, and `dynamic_asset_loader.c` declared externs for the contents. This messiness was likely done so the generated code would be built automatically (the Makefile globs all C files under `src/`). Now, model list data is output to C source files which are built explicitly. This, with some refactoring, allows the previously mentioned source files and externs to be removed. This is a bit hacky in the Makefile but will be automatic under CMake by using target properties. * Reorganized some files under `tools/`
7 lines
247 B
Python
7 lines
247 B
Python
import bpy
|
|
import sys
|
|
|
|
print("Blender export scene in FBX Format in file "+sys.argv[-1])
|
|
|
|
# Doc can be found here: https://docs.blender.org/api/current/bpy.ops.export_scene.html
|
|
bpy.ops.export_scene.fbx(filepath=sys.argv[-1], add_leaf_bones=False) |