Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

util.getObjectProperties still lists containers that were removed #234

Open
DonGuig opened this issue May 13, 2024 · 1 comment
Open

util.getObjectProperties still lists containers that were removed #234

DonGuig opened this issue May 13, 2024 · 1 comment

Comments

@DonGuig
Copy link

DonGuig commented May 13, 2024

Environment

  • OS: MacOS 12.7.4
  • Version : 1.9.17

Describe the bug
I'm developing a custom module. I create containers insides the parameter section. If I remove a container with removeContainer, and then use util.getObjectProperties on the parent container, the container that was removed is still listed.

To Reproduce
Steps to reproduce the behavior:

  1. create a container with addContainer
  2. remove the container with removeContainer
  3. use util.getObjectProperties and see that the removed container's name is still listed

Expected behavior
The removed container should not be listed.

Additional context
Add any other context about the problem here.

@benkuper
Copy link
Owner

This is due to the fact that the script structure is not always synchronized with the real structure, only on script reload.
With the current scripting system, it would be dangerous to have full synchronization on structure change.
The new scripting system (when we'll have time to work on it) will take care of this and will be optimized to ensure full synchronized access between script and native structure

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants