Blender Git Commit Log

Git Commits -> Revision 2dac8b3

Revision 2dac8b3 by Sybren A. Stüvel (master)
April 19, 2017, 12:40 (GMT)
Alembic import/export: added as_background_job option

The ABC_export and ABC_import functions both take a as_background_job
parameter, and return a boolean.

When as_background_job=true, returns false immediately after scheduling
a background job. This was the old behaviour of this function, which makes
it very hard for scripts to do something with the data after the import
or export completes.

When as_background_job=false, performs the export synchronously, and
returns true when the export was ok, and false if there were any errors.
This allows further processing.

The Scene.alembic_export() function is deprecated, and will be removed from
Blender 2.8 in favour of calling the bpy.ops.wm.alembic_export() operator.
As such, it has been hard-coded to the old background job behaviour.

Commit Details:

Full Hash: 2dac8b3ee043d9d50e334c7430dc3aee49a3315e
Parent Commit: b148ac5
Lines Changed: +94, -36

5 Modified Paths:

/source/blender/alembic/ABC_alembic.h (+16, -4) (Diff)
/source/blender/alembic/intern/alembic_capi.cc (+59, -25) (Diff)
/source/blender/editors/io/io_alembic.c (+14, -4) (Diff)
/source/blender/makesrna/intern/rna_scene_api.c (+3, -2) (Diff)
/tests/python/alembic_tests.py (+2, -1) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021