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:
authorMatt Ebb <matt@mke3.net>2010-03-18 09:03:41 +0300
committerMatt Ebb <matt@mke3.net>2010-03-18 09:03:41 +0300
commitd96bf316ac7a1b86ee347551b05da7488e7ac65e (patch)
tree22b0666e82c3aa4e11fc64e19757740f751dab9f /source/blender/makesrna/intern/rna_main_api.c
parent6c6825b536fcbbcf7dabffa195d365e51cceb8ed (diff)
Fix [#21657] Blender crashes after importing .obj and selecting a material
Creating an object via some pre-existing obdata via the py api wasn't properly initialising the object/mesh material link data.
Diffstat (limited to 'source/blender/makesrna/intern/rna_main_api.c')
-rw-r--r--source/blender/makesrna/intern/rna_main_api.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/makesrna/intern/rna_main_api.c b/source/blender/makesrna/intern/rna_main_api.c
index 56c0819680d..5f007c63b9e 100644
--- a/source/blender/makesrna/intern/rna_main_api.c
+++ b/source/blender/makesrna/intern/rna_main_api.c
@@ -156,6 +156,8 @@ Object *rna_Main_objects_new(Main *bmain, ReportList *reports, char* name, ID *d
ob->id.us--;
ob->data= data;
+ test_object_materials(ob->data);
+
return ob;
}