mirror of
https://github.com/PorktoberRevolution/ReStocked
synced 2024-09-01 17:34:42 +00:00
Minor changes to ModuleRestockLinkedMesh
This commit is contained in:
parent
34b9226218
commit
175c7269e3
Binary file not shown.
@ -69,9 +69,9 @@ namespace Restock
|
||||
GameEvents.onEditorVariantApplied.Remove(OnVariantApplied);
|
||||
}
|
||||
|
||||
public override void OnTargetSet(Part target)
|
||||
public override void OnTargetSet(Part newTarget)
|
||||
{
|
||||
base.OnTargetSet(target);
|
||||
base.OnTargetSet(newTarget);
|
||||
UpdateStretch();
|
||||
}
|
||||
|
||||
@ -87,12 +87,11 @@ namespace Restock
|
||||
UpdateStretch();
|
||||
}
|
||||
|
||||
public void OnVariantApplied(Part part, PartVariant variant)
|
||||
public void OnVariantApplied(Part appliedPart, PartVariant variant)
|
||||
{
|
||||
UpdateStretch();
|
||||
if (appliedPart == part) UpdateStretch();
|
||||
}
|
||||
|
||||
|
||||
// updates the texture stretch to match the pipe object's local scale
|
||||
private void UpdateStretch()
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user