diff options
-rw-r--r-- | source/blender/editors/object/object_data_transform.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/editors/object/object_data_transform.c b/source/blender/editors/object/object_data_transform.c index 97191374bdc..b6f125c6f71 100644 --- a/source/blender/editors/object/object_data_transform.c +++ b/source/blender/editors/object/object_data_transform.c @@ -306,6 +306,9 @@ struct XFormObjectData_MetaBall { struct XFormObjectData *ED_object_data_xform_create_ex(ID *id, bool is_edit_mode) { struct XFormObjectData *xod_base = NULL; + if (id == NULL) { + return xod_base; + } switch (GS(id->name)) { case ID_ME: { Mesh *me = (Mesh *)id; |