Skip to content

Fix dictionary input set to null after component copy#747

Merged
adecler merged 1 commit intodevelopfrom
Grtasshopper_UI-#746-FixDictionaryInput
May 7, 2026
Merged

Fix dictionary input set to null after component copy#747
adecler merged 1 commit intodevelopfrom
Grtasshopper_UI-#746-FixDictionaryInput

Conversation

@adecler
Copy link
Copy Markdown
Member

@adecler adecler commented May 3, 2026

Closes #746

Default value for dictionary inputs were not set correctly when a component was copied.
The same was happening if the dictionary input had been internalized. When the component was copied, the internalised input would be lost.

Test files

Make sure copied components maintain their dictionary input both for default value and internalised value.
Here's a script that can help with that:
DictionariesSetToNullWhenCopied.zip

Changelog

Additional comments

@adecler adecler self-assigned this May 3, 2026
@adecler adecler added the type:bug Error or unexpected behaviour label May 3, 2026
Copy link
Copy Markdown
Contributor

@michaelhoehn michaelhoehn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Functions as expected. Successfully tested and approved 👍

@adecler
Copy link
Copy Markdown
Member Author

adecler commented May 7, 2026

@BHoMBot check ready-to-merge

@bhombot-ci
Copy link
Copy Markdown

bhombot-ci Bot commented May 7, 2026

@adecler to confirm, the following actions are now queued:

  • check ready-to-merge

There are 13 requests in the queue ahead of you.

@adecler adecler merged commit e609912 into develop May 7, 2026
9 checks passed
@adecler adecler deleted the Grtasshopper_UI-#746-FixDictionaryInput branch May 7, 2026 08:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type:bug Error or unexpected behaviour

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Dictionaries can't be internalised or deserialised

2 participants