Add svg import conversion tool#108512
Conversation
|
Thanks for opening a pull request! Feature pull requests should be associated to a feature proposal to justify the need for implementing the feature in Godot core. Please open a proposal on the Godot proposals repository (and link to the proposal in this pull request's body). |
806e98a to
ad908fa
Compare
Oops, added it (sorry, is my first pr here; thought the pr used for reference just closed the issue) |
ad908fa to
2cd9046
Compare
|
Fixed pre-commit lint |
2cd9046 to
d7cc121
Compare
|
This feels like an gdscript addon but it would be cool to standardize importer to importer conversions with this as the first usage. Hmm |
Closes godotengine/godot-proposals#12770.
This PR adds a new tool to the Project > Tools menu (currently titled: "Convert SVG Import Files from Texture2D to SVGTexture") . When run, it finds all of the svg files in the project and converts their importer to SVGTexture from Texture2D, causing the oversampling feature work for them.
Here is an adapted project where i had imported the editor icons used in the main scene to Texture2D
adapted_test_project.zip
The code in this PR is adapted from the "Upgrade Project Files..." tool (ProjectUpgradeTool in the source code, and the pr format has been adapted from the Add UID upgrade tool PR ).