Bugfix (forum report):

Texture space copy (ctrl+c) crashed.
This commit is contained in:
Brecht Van Lommel
2007-03-07 14:57:01 +00:00
parent 37308c01ca
commit c5a1582801

View File

@@ -3007,17 +3007,19 @@ static void copy_texture_space(Object *to, Object *ob)
return;
if(to->type==OB_MESH) {
((Mesh *)ob->data)->texflag= texflag;
poin2= ((Mesh *)to->data)->loc;
((Mesh *)to->data)->texflag= texflag;
poin1= ((Mesh *)to->data)->loc;
}
else if (ELEM3(to->type, OB_CURVE, OB_SURF, OB_FONT)) {
((Curve *)ob->data)->texflag= texflag;
poin2= ((Curve *)to->data)->loc;
((Curve *)to->data)->texflag= texflag;
poin1= ((Curve *)to->data)->loc;
}
else if(to->type==OB_MBALL) {
((MetaBall *)ob->data)->texflag= texflag;
poin2= ((MetaBall *)to->data)->loc;
((MetaBall *)to->data)->texflag= texflag;
poin1= ((MetaBall *)to->data)->loc;
}
else
return;
memcpy(poin1, poin2, 9*sizeof(float)); /* this was noted in DNA_mesh, curve, mball */