fix JointInstance::weld being used

This commit is contained in:
floralrainfall 2023-07-22 02:04:47 -04:00
parent 7f58689d82
commit da7c8e17ea
2 changed files with 2 additions and 2 deletions

View File

@ -40,7 +40,7 @@ namespace RNR
if(getTorso() && getHead())
{
Weld* headWeld = new Weld();
headWeld->weld(getTorso(), getHead());
headWeld->setBodies(getTorso(), getHead());
headWeld->create();
headWeld->setParent(getTorso());
}

View File

@ -11,7 +11,7 @@ namespace RNR
Snap* JointsService::snap(PartInstance* a, PartInstance* b)
{
Snap* snap = new Snap();
snap->weld(a, b);
snap->setBodies(a, b);
snap->setParent(this);
return snap;
}