summaryrefslogtreecommitdiff
path: root/editor/import
AgeCommit message (Collapse)Author
2022-02-12Merge pull request #57997 from Calinou/texture-import-rename-hdr-as-srgbRémi Verschelde
2022-02-12Improve compilation speed (forward declarations/includes cleanup)Hendrik Brucker
2022-02-12Rename Hdr as Srgb texture import option to be lowercaseHugo Locurcio
Unlike all other import options, Hdr As Srgb was internally spelled out with uppercase characters.
2022-02-08Merge pull request #57627 from JFonS/occluder_improvementsRémi Verschelde
2022-02-08Re-add missing `SNAME` macros in `get_theme_*` callsRémi Verschelde
They were removed in the previous commit reverting the addition of `SNAME` to `add_theme_*` and theme setter methods, which is not wanted.
2022-02-08Revert "Add missing SNAME macro optimization to all theme methods call"Rémi Verschelde
This reverts commit a988fad9a092053434545c32afae91ccbdfbe792. As discussed in #57725 and clarified in #57788, `SNAME` is not meant to be used everywhere but only in critical code paths. For theme methods specifically, it was by design that only getters use `SNAME` and not setters.
2022-02-07Improvements and fixes to occludersjfons
Improvements: * Occluder3D is now an abstract type inherited by: ArrayOccluder3D, QuadOccluder3D, BoxOccluder3D, SphereOccluder3D and PolygonOccluder3D. ArrayOccluder3D serves the same purpose as the old Occluder3D (triangle mesh occluder) while the rest are primitives that can be used to manually place simple occluders. * Occluder baking can now apply simplification. The "bake_simplification_distance" property can be used to set a world-space distance as the desired maximum error, set to 0.1 by default. * Occluders can now be generated on import. Using the "occ" and "occonly" keywords (similar to "col" and "colonly" for colliders) or by enabling on MeshInstance3Ds in the scene's import window. Fixes: * Fixed saving of occluder files after bake. * Fixed a small error where occluders didn't correctly update in the rendering server. Bonus content: * Generalized "CollisionPolygon3DEditor" so it can also be used to edit Resources. Renamed it to "Polygon3DEditor" since it was already being used by other things, not just colliders. * Fixed a small bug in "EditorPropertyArray" where a call to "remove" was left after the "remove_at" rename.
2022-02-07Merge pull request #57725 from jmb462/missing-sname-theme-settersRémi Verschelde
2022-02-07ResourceImporter: Restore default append logic for new importersRémi Verschelde
This was changed in #56943 to allow adding new importers from plugins that take precedence over built-in ones, but this should be opt-in, not the default behavior. Fixes #57730.
2022-02-06Add missing SNAME macro optimization to all theme methods calljmb462
2022-02-05Merge pull request #56943 from V-Sekai/override-importRémi Verschelde
Make add_importer and add_post_importer_plugin override existing importers.
2022-02-04Faster CVTT by reducing quality.K. S. Ernest (iFire) Lee
Make BC6 and BC7 CVTT faster while still having better quality than DXT5.
2022-02-04Cleanup and move char functions to the `char_utils.h` header.bruvzg
2022-02-04String: Add contains().Anilforextra
2022-02-02Vectors: Use clear() and has().Anilforextra
Use clear() instead of resize(0). Use has() instead of "find(p_val) != -1".
2022-01-29simplify formatting scripts, add a clang-tidy script, and run clang-tidyNathan Franke
2022-01-26Fix lightmap size hint option not displaying for 3D scenesHugo Locurcio
This also renames the Static Lightmaps option hint to be more explicit about which GI techniques are supported (as VoxelGI/SDFGI can still be used with Static Lightmaps).
2022-01-22Add usage of indeterminate checkboxes to editorkobewi
2022-01-20Merge pull request #55360 from Calinou/rename-bake-mode-propertiesRémi Verschelde
2022-01-20Add nodiscard to core math classes to catch c++ errors.lawnjelly
A common source of errors is to call functions (such as round()) expecting them to work in place, but them actually being designed only to return the processed value. Not using the return value in this case in indicative of a bug, and can be flagged as a warning by using the [[nodiscard]] attribute.
2022-01-19Make add_importer and add_post_importer_plugin override existing importers.K. S. Ernest (iFire) Lee
2022-01-18Merge pull request #52969 from bruvzg/locale_detectionRémi Verschelde
2022-01-18Improve locale detection.bruvzg
Use separate language, script and country lists. Add locale selection dialog and property hint.
2022-01-18Fix import hints breaking node paths in animationsRicardo Buring
2022-01-17Merge pull request #54794 from bruvzg/runtime_bmfont_parserRémi Verschelde
2022-01-17Remove property hints referencing unsupported svgz extensionRémi Verschelde
The wrongly claimed support for it was removed in #49645. See also #56862.
2022-01-16Hide SVG scale for non-SVG textureskobewi
2022-01-14Remove support for PVRTC texture encoding and decodingHugo Locurcio
On the only platform where PVRTC is supported (iOS), ETC2 generally supersedes PVRTC in every possible way. The increased memory usage is not really a problem thanks to modern iOS' devices processing power being higher than its Android counterparts.
2022-01-13Fix various typosluz paz
Found via `codespell -q 3 -S ./thirdparty,*.po,./DONORS.md -L ackward,ang,ans,ba,beng,cas,childs,childrens,dof,doubleclick,expct,fave,findn,gird,hist,inh,inout,leapyear,lod,nd,numer,ois,ony,paket,ro,seeked,sinc,switchs,te,uint,varn,vew`
2022-01-09[TextServer] Improve ligature cursor handling.bruvzg
Fix mid-grapheme hit test. Fix OpenType features property handling, add default features override option. Enable mid-grapheme cursor by default.
2022-01-05options dict is now passed to _import_scene.K. S. Ernest (iFire) Lee
2022-01-03Update copyright statements to 2022Rémi Verschelde
Happy new year to the wonderful Godot community!
2022-01-02Fix various typosluz paz
Found via ` codespell -q 3 -S ./thirdparty,*.po,./DONORS.md -L ackward,ang,ans,ba,beng,cas,childs,childrens,dof,doubleclick,expct,fave,findn,gird,hist,inout,leapyear,lod,nd,numer,ois,ony,paket,seeked,sinc,switchs,te,uint,varn` Update editor/import/resource_importer_layered_texture.cpp Co-authored-by: Raul Santos <raulsntos@gmail.com> Update doc/classes/TileSetScenesCollectionSource.xml Co-authored-by: Raul Santos <raulsntos@gmail.com> Update scene/gui/graph_edit.cpp Co-authored-by: Raul Santos <raulsntos@gmail.com> Update scene/resources/animation.cpp Co-authored-by: Raul Santos <raulsntos@gmail.com> Update scene/resources/animation.cpp Co-authored-by: Raul Santos <raulsntos@gmail.com> Update scene/resources/animation.cpp Co-authored-by: Raul Santos <raulsntos@gmail.com> Update scene/gui/rich_text_label.cpp Co-authored-by: Raul Santos <raulsntos@gmail.com> Revert previously committed change
2021-12-17Don't crash when texture param is nullMarc Gilleron
2021-12-14Rename and reorder bake mode properties for consistencyHugo Locurcio
The order now goes from least to most computationally expensive: - Disabled - Static - Dynamic
2021-12-10Merge pull request #53323 from xMakerx/patch-1Rémi Verschelde
2021-12-09Replace String comparisons with "", String() to is_empty()Nathan Franke
Also: - Adds two stress tests to test_string.h - Changes to .empty() on std::strings
2021-12-09align to horizontal_alignment, valign to vertical_alignment, relatedNathan Franke
2021-12-06Fix bad popups offset in editor with single window offjmb462
Co-authored-by: Gil Arasa Verge <gilarasaverge@gmail.com> Co-authored-by: Tomasz Chabora <kobewi4e@gmail.com>
2021-11-24Merge pull request #55238 from Giwayume/bugfix/atlas_cutoff_edge_masterRémi Verschelde
Atlas import 1px missing from right side of non-cropped image.
2021-11-23Rename `remove()` to `remove_at()` when removing by indexLightning_A
2021-11-23Fix edge case where 1px cut off from right of imageGiwayume
Remove -1 px
2021-11-22Added `reset_size` method to `Control` and `Window` classesYuri Roubinsky
2021-11-19Added hint about loop_mode to resource importerSilc 'Tokage' Renew
2021-11-18Fix texture atlas generation when source sprite is larger than generated atlasGiwayume
2021-11-14Add path to functions that return iporter optionsreduz
-Allows displaying custom options for specific file format variants -Added support for scene format import to retrieve custom options This PR is necessary for #54886 to be implemented properly.
2021-11-12Use "enum class" for input enumsAaron Franke
2021-11-12Modules: Make sure to include modules_enabled.gen.h where neededRémi Verschelde
2021-11-11Fix import_scene_from_other_importer and import_animation_from_other_importerLyuma
2021-11-10Merge pull request #54838 from groud/fix_editor_import_pluginRémi Verschelde