Skip to content

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

Open
Ivanmatthew wants to merge 2 commits intogbaychev:masterfrom
Ivanmatthew:patch-1
Open

Fixed bug where objects inside a package/namespace would corrupt the …#64
Ivanmatthew wants to merge 2 commits intogbaychev:masterfrom
Ivanmatthew:patch-1

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