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

Fixed bug where objects inside a package/namespace would corrupt the … #64

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Ivanmatthew
Copy link

Objects visually placed inside a package/namespace using NClass, will error, as the serializer converts the index integer of the deleted object to -1, this is fixed by adding an if statement to check if the object's index is -1, and skip over it if it is.

Optionally also delete the parent object (parent entity > child entity) if all child entities have an index of -1, but this will be automated when re-saving.

Copy link
Author

@Ivanmatthew Ivanmatthew left a comment

Choose a reason for hiding this comment

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

Both changes make sure corrupted files become uncorrupted, and new files will not corrupt from relation to this bug.

I have explicitly kept in the container adding, even if it has no child nodes, as I'm afraid it might break something long term.

@gbaychev
Copy link
Owner

gbaychev commented Dec 18, 2022

Thank you for the PR/fix, I'll try to merge it after the holidays.

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

Successfully merging this pull request may close these issues.

2 participants