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:
authorBastien Montagne <montagne29@wanadoo.fr>2018-08-14 15:05:09 +0300
committerBastien Montagne <montagne29@wanadoo.fr>2018-08-14 15:06:42 +0300
commit6eb5b418eee8cb26ac0e3a8bb70cbaf706be4e4d (patch)
tree14cf21c6048fd30a5364b3f52e886f21fb22f7c9
parent932251caea88b87bd65dd5c453dd3133457ffb1b (diff)
Fix T56363: Blender crash when deleting a curve object.
Conversion code could leave object with inconsistent material data compared to its new obdata. Ideally, various conversion code would handle that properly, conserving materials when possible, but for now at least ensure we get valid result!
-rw-r--r--source/blender/editors/object/object_add.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/editors/object/object_add.c b/source/blender/editors/object/object_add.c
index e977dea6140..8fc2d419c3c 100644
--- a/source/blender/editors/object/object_add.c
+++ b/source/blender/editors/object/object_add.c
@@ -1903,6 +1903,9 @@ static int convert_exec(bContext *C, wmOperator *op)
continue;
}
+ /* Ensure new object has consistent material data with its new obdata. */
+ test_object_materials(bmain, newob, newob->data);
+
/* tag obdata if it was been changed */
/* If the original object is active then make this object active */