Fixed a python segfault when linking a new object to a scene that had no data and was a Surf. the data wasnt created and blender died. Now an error is raised instead.

This commit is contained in:
2005-12-29 12:06:42 +00:00
parent b73748bdd0
commit ccf117376d
2 changed files with 17 additions and 5 deletions

View File

@@ -946,7 +946,8 @@ int EXPP_add_obdata( struct Object *object )
object->data = add_mball( );
break;
/* TODO the following types will be supported later
/* TODO the following types will be supported later,
be sure to update Scene_link when new types are supported
case OB_SURF:
object->data = add_curve(OB_SURF);
G.totcurve++;