Fix T73399: Crash trying to move the origin of an empty.
Empty objects have no obdata, so we need to check for NULL id...
This commit is contained in:
@@ -306,6 +306,9 @@ struct XFormObjectData_MetaBall {
|
|||||||
struct XFormObjectData *ED_object_data_xform_create_ex(ID *id, bool is_edit_mode)
|
struct XFormObjectData *ED_object_data_xform_create_ex(ID *id, bool is_edit_mode)
|
||||||
{
|
{
|
||||||
struct XFormObjectData *xod_base = NULL;
|
struct XFormObjectData *xod_base = NULL;
|
||||||
|
if (id == NULL) {
|
||||||
|
return xod_base;
|
||||||
|
}
|
||||||
switch (GS(id->name)) {
|
switch (GS(id->name)) {
|
||||||
case ID_ME: {
|
case ID_ME: {
|
||||||
Mesh *me = (Mesh *)id;
|
Mesh *me = (Mesh *)id;
|
||||||
|
Reference in New Issue
Block a user