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

fix importing collision event files when the objects already exist #1505

Merged
merged 1 commit into from
Nov 11, 2023

Conversation

nhaar
Copy link
Contributor

@nhaar nhaar commented Oct 18, 2023

Description

If you try using the ImportGMLFile for a collision event, for example, for a file named gml_Object_obj_pipis_bullet_cone_Collision_obj_yheart_shot.gml, and tried to link to the objects automatically, even if the objects in the event already existed, it would require you to type the object, despite it already knowing it. With this fix, this issue is removed.

Caveats

In my tests, it worked perfectly. I'm not sure why the original code that caused this problem existed, so unless it had any special reason to be there, there should be no problems with this change.

Copy link
Contributor

@Miepee Miepee left a comment

Choose a reason for hiding this comment

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

not a fan of removing untested code, but since it seems to fix your issue, and doesnt have any known negatives right now, let's just go for it

@colinator27
Copy link
Member

Cannot recall the reason that code was there, so for now I'll merge this. If anything else is affected, we'll find out quickly enough.

@colinator27 colinator27 merged commit acdc440 into UnderminersTeam:master Nov 11, 2023
5 checks passed
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.

3 participants