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:
@@ -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++;
|
||||
|
||||
Reference in New Issue
Block a user