diff options
author | Matt Ebb <matt@mke3.net> | 2010-03-18 09:03:41 +0300 |
---|---|---|
committer | Matt Ebb <matt@mke3.net> | 2010-03-18 09:03:41 +0300 |
commit | d96bf316ac7a1b86ee347551b05da7488e7ac65e (patch) | |
tree | 22b0666e82c3aa4e11fc64e19757740f751dab9f | |
parent | 6c6825b536fcbbcf7dabffa195d365e51cceb8ed (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.
-rw-r--r-- | source/blender/makesrna/intern/rna_main_api.c | 2 |
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; } |