Compare commits

...

3 Commits

Author SHA1 Message Date
Claire Kuang c671b151b4 updates account exception on constructor of speckle operation wizard (#904)
.NET Build and Publish / build-windows (push) Has been cancelled
.NET Build and Publish / build-linux (push) Has been cancelled
.NET Build and Publish / deploy-installers (push) Has been cancelled
2025-06-06 16:20:55 +01:00
Adam Hathcock 600c361d9a Merge pull request #901 from specklesystems/dim/rhino-extra-layer-name-fix
.NET Build and Publish / build-windows (push) Has been cancelled
.NET Build and Publish / build-linux (push) Has been cancelled
.NET Build and Publish / deploy-installers (push) Has been cancelled
Dim/rhino extra layer name fix
2025-06-06 11:09:23 +01:00
Dimitrie Stefanescu e8cff89433 fix: handles parenthesis in layer names 2025-06-06 10:57:17 +01:00
2 changed files with 3 additions and 3 deletions
@@ -1,4 +1,4 @@
using System.Diagnostics;
using System.Diagnostics;
using Microsoft.Extensions.DependencyInjection;
using Speckle.Connectors.Common.Operations;
using Speckle.Connectors.GrasshopperShared.HostApp;
@@ -49,7 +49,7 @@ public class SpeckleOperationWizard
var userSelectedAccountId = _accountService.GetUserSelectedAccountId();
Accounts = _accountManager.GetAccounts().ToList();
SelectedAccount = userSelectedAccountId == null ? null : _accountManager.GetAccount(userSelectedAccountId);
SelectedAccount = Accounts.FirstOrDefault(a => a.id == userSelectedAccountId);
WorkspaceMenuHandler = new WorkspaceMenuHandler(FetchWorkspaces, CreateNewWorkspace);
ProjectMenuHandler = new ProjectMenuHandler(FetchProjects);
@@ -83,7 +83,7 @@ public class RhinoLayerBaker : TraversalContextUnpacker
.Select(o => string.IsNullOrWhiteSpace(o.name) ? "unnamed" : o.name)
.Prepend(baseLayerName);
var layerFullName = string.Join(s_pathSeparator, layerPath);
var layerFullName = CleanLayerName(string.Join(s_pathSeparator, layerPath));
if (_hostLayerCache.TryGetValue(layerFullName, out int existingLayerIndex))
{