diff options
author | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2010-04-06 05:28:39 +0400 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2010-04-06 05:28:39 +0400 |
commit | 9498121463cd6837620b33d7c367f446cf34049a (patch) | |
tree | 95f7a88e74131aa4583e1b81aa456931cb4ecbde /release/scripts/io/export_ply.py | |
parent | b1e556890d80c7e899e386ee470dec4fbf4ffe95 (diff) |
Object API changes so these functions now require a scene as first argument:
create_mesh, create_dupli_list, make_display_list and is_visible.
This is done in order to make these context independent as the RNA API should
be as much as possible, and to fix #21297 and #21719, where there was an
assumption from these functions that there is a scene in the context, which
does not work for external render engines exporting in a separate thread.
Also avoided using context in a number of other functions, ideally only UI/WM
type functions should use context.
I've updated the scripts in trunk, but the addons and external ones in
development will need updates too.
Diffstat (limited to 'release/scripts/io/export_ply.py')
-rw-r--r-- | release/scripts/io/export_ply.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/release/scripts/io/export_ply.py b/release/scripts/io/export_ply.py index 23a3eb8b9ee..8249ce553bb 100644 --- a/release/scripts/io/export_ply.py +++ b/release/scripts/io/export_ply.py @@ -103,7 +103,7 @@ def write(filename, scene, ob, \ #mesh = BPyMesh.getMeshFromObject(ob, None, EXPORT_APPLY_MODIFIERS, False, scn) # XXX if EXPORT_APPLY_MODIFIERS: - mesh = ob.create_mesh(True, 'PREVIEW') + mesh = ob.create_mesh(scene, True, 'PREVIEW') else: mesh = ob.data |