Fix crash with patch mesh attach

--HG--
branch : hotfix
This commit is contained in:
kaetemi 2014-12-04 13:21:12 +01:00
parent 6b1ea30f9c
commit 59a5cb7e6b

View file

@ -37,7 +37,6 @@ int EditPatchMod::DoAttach(INode *node, PatchMesh *attPatch, RPatchMesh *rattPat
nodes.DisposeTemporary();
return 0;
}
patchData->BeginEdit(ip->GetTime());
// If the mesh isn't yet cached, this will cause it to get cached.
RPatchMesh *rpatch;
@ -49,6 +48,7 @@ int EditPatchMod::DoAttach(INode *node, PatchMesh *attPatch, RPatchMesh *rattPat
}
patchData->RecordTopologyTags(patch);
RecordTopologyTags();
patchData->BeginEdit(ip->GetTime());
// Transform the shape for attachment:
// If reorienting, just translate to align pivots