Skip to content

Commit f751ee8

Browse files
committed
[Editor] Copy/paste processor registration order matters
1 parent d71cbc0 commit f751ee8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

sources/editor/Stride.Core.Assets.Editor/CoreAssetsEditorPlugin.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,10 @@ public override void InitializeSession(ISessionViewModel session)
2020
{
2121
if (session.ServiceProvider.TryGet<ICopyPasteService>() is { } copyPasteService)
2222
{
23-
copyPasteService.RegisterProcessor(new AssetItemPasteProcessor(session));
23+
// FIXME xplat-editor order seems to matter we could make it buggy with plugins
24+
// instead, we should have a sorting/priority mechanism similar to the template providers
2425
copyPasteService.RegisterProcessor(new AssetPropertyPasteProcessor());
26+
copyPasteService.RegisterProcessor(new AssetItemPasteProcessor(session));
2527
}
2628
}
2729

0 commit comments

Comments
 (0)