Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions CommunityBugFixCollection/CommunityBugFixCollection.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,12 @@
<PackageReference Include="Resonite.Elements.Assets" Version="1.3.3" />
<PackageReference Include="Resonite.Elements.Core" Version="1.4.3" />
<PackageReference Include="Resonite.Elements.Quantity" Version="1.2.3" />
<PackageReference Include="Resonite.FrooxEngine" Version="2025.3.21.23" />
<PackageReference Include="Resonite.FrooxEngine.Store" Version="1.0.3" />
<PackageReference Include="Resonite.ProtoFlux.Core" Version="1.2.0" />
<PackageReference Include="Resonite.ProtoFlux.Nodes.Core" Version="1.2.0" />
<PackageReference Include="Resonite.FrooxEngine" Version="2025.5.14.23" />
<PackageReference Include="Resonite.FrooxEngine.Store" Version="1.0.5" />
<PackageReference Include="Resonite.ProtoFlux.Core" Version="1.3.1" />
<PackageReference Include="Resonite.ProtoFlux.Nodes.Core" Version="1.3.1" />
<PackageReference Include="Resonite.ProtoFluxBindings" Version="2025.5.18.24" />
<PackageReference Include="Resonite.SkyFrost.Base" Version="2.1.0" />
<PackageReference Include="Resonite.SkyFrost.Base.Models" Version="2.1.0" />
<PackageReference Include="Resonite.SkyFrost.Base.Models" Version="2.1.5" />
</ItemGroup>
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ namespace CommunityBugFixCollection
internal static class DuplicateExtensions
{
// Literally just a copy paste of Slot.Duplicate but it duplicates several slots at same time
public static void MultiDuplicate(this IEnumerable<Slot> toDuplicate, List<Slot> newSlots, Slot? duplicateRoot = null, bool keepGlobalTransform = true, DuplicationSettings? settings = null)
public static void MultiDuplicate(this IEnumerable<Slot> toDuplicate, List<Slot> newSlots, Slot? duplicateRoot = null, bool keepGlobalTransform = true, DuplicationSettings? settings = null, bool duplicateAsLocal = false)
{
if (toDuplicate.Any(slot => slot.IsRootSlot))
throw new Exception("Cannot duplicate root slot");
Expand All @@ -45,7 +45,7 @@ public static void MultiDuplicate(this IEnumerable<Slot> toDuplicate, List<Slot>
toDuplicate.Do(slot => slot.CollectInternalReferences(slot, internalReferences, breakRefs, hierarchy));

foreach (var slot in toDuplicate)
newSlots.Add(slot.InternalDuplicate(duplicateRoot ?? slot.Parent ?? slot.World.RootSlot, internalReferences, breakRefs, settings!));
newSlots.Add(slot.InternalDuplicate(duplicateRoot ?? slot.Parent ?? slot.World.RootSlot, internalReferences, breakRefs, settings!, duplicateAsLocal));

if (keepGlobalTransform)
{
Expand Down