Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKévin Dietrich <kevin.dietrich@mailoo.org>2016-09-16 10:27:44 +0300
committerKévin Dietrich <kevin.dietrich@mailoo.org>2016-09-16 10:27:44 +0300
commit04bfea0d6747b48cf8e792586cd6df8df0f00dcc (patch)
treef4426f36cbc17bfe92e2c74b37969604eb3b6e1e /source/blender/editors/io
parente156abe467bc0e69ffcf1c298ac1d984762ebc8e (diff)
Fix T49369: Blender crashes/closes down application at alembic export of
any object There were a couple of crashes caused by stupid typos in rB631af9f930d2fd2c76751204ff22239aa95f761d and rB78ea06fea4a74181c25254ed72d50d8a743b6954, as well as a shamefull lack of 'testing before committing' which only affect exporting. One crash was due to using RNA_boolean_get instead of RNA_enum_get, the other one was a tricky case of order of deletion happening in the destructors of AbcExporter and ArchiveWriter. Should not affect RC or release.
Diffstat (limited to 'source/blender/editors/io')
-rw-r--r--source/blender/editors/io/io_alembic.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/io/io_alembic.c b/source/blender/editors/io/io_alembic.c
index 61ad8549c6c..2256bd7f8c5 100644
--- a/source/blender/editors/io/io_alembic.c
+++ b/source/blender/editors/io/io_alembic.c
@@ -123,8 +123,8 @@ static int wm_alembic_export_exec(bContext *C, wmOperator *op)
.compression_type = RNA_enum_get(op->ptr, "compression_type"),
.packuv = RNA_boolean_get(op->ptr, "packuv"),
.triangulate = RNA_boolean_get(op->ptr, "triangulate"),
- .quad_method = RNA_boolean_get(op->ptr, "quad_method"),
- .ngon_method = RNA_boolean_get(op->ptr, "ngon_method"),
+ .quad_method = RNA_enum_get(op->ptr, "quad_method"),
+ .ngon_method = RNA_enum_get(op->ptr, "ngon_method"),
.global_scale = RNA_float_get(op->ptr, "global_scale"),
};