-
-
Notifications
You must be signed in to change notification settings - Fork 21.4k
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
[3.x] added optional cropping for texture atlas importer #52652
[3.x] added optional cropping for texture atlas importer #52652
Conversation
@@ -71,6 +71,7 @@ String ResourceImporterTextureAtlas::get_preset_name(int p_idx) const { | |||
void ResourceImporterTextureAtlas::get_import_options(List<ImportOption> *r_options, int p_preset) const { | |||
r_options->push_back(ImportOption(PropertyInfo(Variant::STRING, "atlas_file", PROPERTY_HINT_SAVE_FILE, "*.png"), "")); | |||
r_options->push_back(ImportOption(PropertyInfo(Variant::INT, "import_mode", PROPERTY_HINT_ENUM, "Region,Mesh2D"), 0)); | |||
r_options->push_back(ImportOption(PropertyInfo(Variant::BOOL, "cropped"), false)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would it be clearer if the option was named crop_to_region
or something like that?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
e7dbea2
to
9913af9
Compare
Code looks good to me, I just need to get the feature itself validated by import folks and we can merge. This should probably have a |
The proposal describes a real use. Will wait for the master branch pr. |
Thanks! Merging already for |
added optional region cropping to Texture Atlas importer. See godotengine/godot-proposals#1661
this is my second try of #52564, sorry, first ever PR. Let me know if did anything wrong.