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

Block usage of "Name" or "Parent" in $properties #413

Merged
merged 4 commits into from
Apr 23, 2021

Conversation

Mixu78
Copy link
Contributor

@Mixu78 Mixu78 commented Apr 17, 2021

Closes #391.

This pull makes the usage of "Name"/"Parent" in $properties ignored, with a warning to the user that said properties cannot be set. Maybe exiting with an error would be better?

@LPGhatguy
Copy link
Contributor

Thank you for the PR! I adjusted the code a little bit (using pattern matching instead of an array) and am merging it in!

@LPGhatguy LPGhatguy merged commit 0779baa into rojo-rbx:master Apr 23, 2021
@Mixu78
Copy link
Contributor Author

Mixu78 commented Apr 23, 2021

Cool! Was thinking about using a match at first but I don't quite know Rust best practices yet so I went with an array instead.

@Mixu78 Mixu78 deleted the issue-391 branch April 24, 2021 18:21
Dekkonot pushed a commit to UpliftGames/rojo that referenced this pull request Jan 11, 2024
* Ignore usage of "Name" or "Parent" in $properties

* Use match instead of array

* Add changelog entry

Co-authored-by: Lucien Greathouse <me@lpghatguy.com>
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.

Prevent setting 'Name' or 'Parent' in $properties
2 participants