summaryrefslogtreecommitdiffstats
path: root/editor/import_dock.cpp
Commit message (Collapse)AuthorAgeFilesLines
...
* | Update copyright statements to 2022Rémi Verschelde2022-01-031-2/+2
|/ | | | Happy new year to the wonderful Godot community!
* Replace String comparisons with "", String() to is_empty()Nathan Franke2021-12-091-1/+1
| | | | | | Also: - Adds two stress tests to test_string.h - Changes to .empty() on std::strings
* Add path to functions that return iporter optionsreduz2021-11-141-10/+20
| | | | | | | -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.
* Add a "dirty" marker to the editor import dock for unsaved changesHugo Locurcio2021-10-091-0/+23
|
* export "Keep" import option when multiple files are selectedDavid Socha2021-09-231-6/+12
| | | | Co-Authored-By: Rémi Verschelde <rverschelde@gmail.com>
* Use Ref<T> references as iterators where relevantRémi Verschelde2021-07-261-2/+2
| | | | And const when possible.
* Use const references where possible for List range iteratorsRémi Verschelde2021-07-251-10/+10
|
* Use C++ iterators for Lists in many situationsAaron Franke2021-07-231-50/+50
|
* Optimize StringName usagereduz2021-07-181-4/+4
| | | | | | | | | | | * Added a new macro SNAME() that constructs and caches a local stringname. * Subsequent usages use the cached version. * Since these use a global static variable, a second refcounter of static usages need to be kept for cleanup time. * Replaced all theme usages by this new macro. * Replace all signal emission usages by this new macro. * Replace all call_deferred usages by this new macro. This is part of ongoing work to optimize GUI and the editor.
* Rename `instance()`->`instantiate()` when it's a verbLightning_A2021-06-191-5/+5
|
* Check section existance before getting keysHaoyu Qiu2021-03-261-0/+4
|
* Add a "keep" import mode to keep files as-is and export them.Juan Linietsky2021-03-221-43/+77
|
* Improved 3D Scene ImporterJuan Linietsky2021-03-221-0/+38
| | | | | | | | | | | | * Added option for importers to show an Advanced settings dialog * Created advanced settings dialog for Scene Importer * Cleaned up importers (remove many old/unused options) * Added the ability to customize every node, material, mesh and animation individually * Saving to animations and meshes to files is now a manual process, making it more predictable * Added the ability for materials to be replaced by external files (or to be made external, up to you). * When doubleclicking an impoted scene in the filesystem dock, it automatically shows the import settings instead of asking to open it. WARNING: Lightmap UV unwrap is not working, it needs to be re-made.
* Removed _change_notifyreduz2021-02-101-2/+2
| | | | | | -For inspector refresh, the inspector now detects if a property change by polling a few times per second and then does update the control if so. This process is very cheap. -For property list refresh, a new signal (property_list_changed) was added to Object. _change_notify() is replaced by notify_property_list_changed() -Changed all objects using the old method to the signal, or just deleted the calls to _change_notify(<property>) since they are unnecesary now.
* Update copyright statements to 2021Rémi Verschelde2021-01-011-2/+2
| | | | | | | | | | | | | | Happy new year to the wonderful Godot community! 2020 has been a tough year for most of us personally, but a good year for Godot development nonetheless with a huge amount of work done towards Godot 4.0 and great improvements backported to the long-lived 3.2 branch. We've had close to 400 contributors to engine code this year, authoring near 7,000 commit! (And that's only for the `master` branch and for the engine code, there's a lot more when counting docs, demos and other first-party repos.) Here's to a great year 2021 for all Godot users 🎆
* Rename AcceptDialog get_ok() to get_ok_button()Marcel Admiraal2020-12-141-1/+1
| | | | | | Also renames: - AcceptDialog add_cancel() to add_cancel_button() - ConfirmationDiaglog get_cancel() to get_cancel_button()
* check the params section exist before erasing it in import_dockPaul Joannon2020-05-201-1/+3
| | | | related #38864
* Style: Enforce braces around if blocks and loopsRémi Verschelde2020-05-141-3/+6
| | | | | Using clang-tidy's `readability-braces-around-statements`. https://clang.llvm.org/extra/clang-tidy/checks/readability-braces-around-statements.html
* Style: Enforce separation line between function definitionsRémi Verschelde2020-05-141-0/+2
| | | | | | | | | | | | | | | | | | | | | | | I couldn't find a tool that enforces it, so I went the manual route: ``` find -name "thirdparty" -prune \ -o -name "*.cpp" -o -name "*.h" -o -name "*.m" -o -name "*.mm" \ -o -name "*.glsl" > files perl -0777 -pi -e 's/\n}\n([^#])/\n}\n\n\1/g' $(cat files) misc/scripts/fix_style.sh -c ``` This adds a newline after all `}` on the first column, unless they are followed by `#` (typically `#endif`). This leads to having lots of places with two lines between function/class definitions, but clang-format then fixes it as we enforce max one line of separation. This doesn't fix potential occurrences of function definitions which are indented (e.g. for a helper class defined in a .cpp), but it's better than nothing. Also can't be made to run easily on CI/hooks so we'll have to be careful with new code. Part of #33027.
* Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocksRémi Verschelde2020-05-141-30/+0
| | | | | | | | | | | | | | Which means that reduz' beloved style which we all became used to will now be changed automatically to remove the first empty line. This makes us lean closer to 1TBS (the one true brace style) instead of hybridating it with some Allman-inspired spacing. There's still the case of braces around single-statement blocks that needs to be addressed (but clang-format can't help with that, but clang-tidy may if we agree about it). Part of #33027.
* Fix changing the import type of multiple files at onceMichael Alexsander2020-04-051-3/+3
|
* Popups are now windows also (broken!)Juan Linietsky2020-03-261-3/+3
|
* Working multiple window support, including editorJuan Linietsky2020-03-261-1/+1
|
* Style: Set clang-format Standard to Cpp11Rémi Verschelde2020-03-171-10/+10
| | | | | | | | | | For us, it practically only changes the fact that `A<A<int>>` is now used instead of the C++03 compatible `A<A<int> >`. Note: clang-format 10+ changed the `Standard` arguments to fully specified `c++11`, `c++14`, etc. versions, but we can't use `c++17` now if we want to preserve compatibility with clang-format 8 and 9. `Cpp11` is still supported as deprecated alias for `Latest`.
* Signals: Port connect calls to use callable_mpRémi Verschelde2020-02-281-10/+5
| | | | | | | | | Remove now unnecessary bindings of signal callbacks in the public API. There might be some false positives that need rebinding if they were meant to be public. No regular expressions were harmed in the making of this commit. (Nah, just kidding.)
* Fix import changing disabling checking on multiple filesMichael Alexsander2020-02-281-3/+4
|
* Reworked signal connection system, added support for Callable and Signal ↵Juan Linietsky2020-02-201-5/+5
| | | | objects and made them default.
* i18n: Sync translations with WeblateRémi Verschelde2020-02-191-1/+1
| | | | (cherry picked from commit 1c9132540f5a763106ae1529c61b5cb8cd851bc5)
* Fix multiple issues with the "Import" dockMichael Alexsander2020-02-131-30/+34
|
* Update copyright statements to 2020Rémi Verschelde2020-01-011-2/+2
| | | | | | | | | | | Happy new year to the wonderful Godot community! We're starting a new decade with a well-established, non-profit, free and open source game engine, and tons of further improvements in the pipeline from hundreds of contributors. Godot will keep getting better, and we're looking forward to all the games that the community will keep developing and releasing with it.
* Cleans up headers included in editor_node.hHaoyu Qiu2019-12-241-0/+1
|
* Fix typos with codespellRémi Verschelde2019-11-221-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Using codespell 1.16.0. Method: ``` $ cat > ../godot-word-whitelist.txt << EOF ang curvelinear dof doubleclick leapyear lod merchantibility nd numer ois ony que seeked synching te uint unselect webp EOF $ codespell -w -q 3 -I ../godot-word-whitelist.txt --skip="./thirdparty,*.po" $ git diff // undo unwanted changes ```
* Add informational messages to various editorsMichael Alexsander Silva Dias2019-09-041-1/+7
|
* Made use of semicolons more consitent, fixed formattingJohnJLight2019-06-191-1/+2
|
* Added ability for multiple images to be imported as an atlasJuan Linietsky2019-04-191-1/+16
| | | | | This adds support for groups in the import system, which point to a single file. Add property hint for saving files in file field
* Fix typos with codespellRémi Verschelde2019-02-131-1/+1
| | | | | | | | | | | | | | | | | | | | Using codespell 1.14.0. Method: ``` $ cat > ../godot-word-whitelist.txt << EOF ang doubleclick lod nd numer que te unselect EOF $ codespell -w -q 3 -I ../godot-word-whitelist.txt --skip="./thirdparty,*.po" $ git diff // undo unwanted changes ```
* Implement missing autorestart in oneshot node, closes #22238Juan Linietsky2019-01-251-1/+1
|
* Stop preview generator before reimporting resources with different type.Juan Linietsky2019-01-251-0/+1
|
* Properly warn about the effects of changing an import type, as well as force ↵Juan Linietsky2019-01-251-1/+71
| | | | editor restart. Fixes #23874
* Update copyright statements to 2019Rémi Verschelde2019-01-011-2/+2
| | | | Happy new year to the wonderful Godot community!
* Improve import dock usability when selecting multiple files, only change ↵Juan Linietsky2018-10-301-5/+46
| | | | what was modified on re-import.
* Port ImportDock and ProjectExport to new property editor (2nd try)Rémi Verschelde2018-08-201-2/+1
| | | | | Thanks to @ibrahn for helping debug the crashes caused in ProjectExportDialog by the stray `update_tree()` call, no longer needed in the new inspector.
* Revert "Port ImportDock and ProjectExport to new property editor"Rémi Verschelde2018-08-181-1/+2
|
* Port ImportDock and ProjectExport to new property editorRémi Verschelde2018-08-181-2/+1
|
* Make filename clipped on Import dockvolzhs2018-05-221-0/+1
|
* Change ".." punctuation for "..." in editor strings (#16507)Hugo Locurcio2018-04-221-1/+1
|
* Add missing copyright headers and fix formattingRémi Verschelde2018-01-051-0/+1
| | | | | | Using `misc/scripts/fix_headers.py` on all Godot files. Some missing header guards were added, and the header inclusion order was fixed in the Bullet module.
* Update copyright statements to 2018Rémi Verschelde2018-01-011-2/+2
| | | | Happy new year to the wonderful Godot community!
* Fix not being able to select an editor layout created in another language.Michael Alexsander Silva Dias2017-11-261-0/+1
|
* Refresh import options when changing importerGeorge Marques2017-11-131-24/+39
|