Compare commits
3 Commits
v3.2.0-beta5
...
v3.2.0
| Author | SHA1 | Date | |
|---|---|---|---|
| c5e0dfa36b | |||
| 1f72741b62 | |||
| 0f8f7e02be |
@@ -169,5 +169,5 @@ class SPECKLE_PT_main_panel(bpy.types.Panel):
|
||||
|
||||
# Settings button in the model card
|
||||
row_1.operator(
|
||||
"speckle.model_card_settings", text="", icon="THREE_DOTS"
|
||||
"speckle.model_card_settings", text="", icon="COLLAPSEMENU"
|
||||
).model_card_id = model_card.get_model_card_id()
|
||||
|
||||
@@ -104,6 +104,9 @@ def get_active_workspace(account_id: str) -> Optional[Dict[str, str]]:
|
||||
retrieves the ID of the default workspace for a given account ID
|
||||
"""
|
||||
account = next((acc for acc in get_local_accounts() if acc.id == account_id), None)
|
||||
if account is None:
|
||||
print(f"No account found for ID: {account_id}, returning default workspace.")
|
||||
return {"id": "personal", "name": "Personal Projects"}
|
||||
client = SpeckleClient(host=account.serverInfo.url)
|
||||
client.authenticate_with_account(account)
|
||||
active_workspace = client.active_user.get_active_workspace()
|
||||
|
||||
Reference in New Issue
Block a user