summaryrefslogtreecommitdiffstats
path: root/editor/editor_folding.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Improve resource load cachereduz2021-02-111-6/+10
| | | | | | -Added a new method in Resource: reset_state , used for reloading the same resource from disk -Added a new cache mode "replace" in ResourceLoader, which reuses existing loaded sub-resources but resets their data from disk (or replaces them if they chaged type) -Because the correct sub-resource paths are always loaded now, this fixes bugs with subresource folding or subresource ordering when saving.
* 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 🎆
* Remove String::find_last (same as rfind)Stijn Hinlopen2020-07-031-1/+1
|
* Style: Enforce braces around if blocks and loopsRémi Verschelde2020-05-141-1/+2
| | | | | 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-12/+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 EditorFolding crash when switching scenesThakee Nathees2020-03-051-0/+2
|
* PoolVector is gone, replaced by VectorJuan Linietsky2020-02-181-11/+11
| | | | | Typed `PoolTypeArray` types are now renamed `PackedTypeArray` and are sugar for `Vector<Type>`.
* 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.
* Removed unused variables, add some constants numbersRafał Mikrut2019-12-101-3/+0
|
* Prevent crash when scene has path, but no fileTomasz Chabora2019-11-121-0/+4
|
* Style: Fix issues with clang-format 8.0Rémi Verschelde2019-05-201-3/+3
|
* No more metadata and dependency indices kept in resources saved.Juan Linietsky2019-04-111-3/+20
| | | | | -Node folding is now saved externally together with the properties -External resources remember their ID when scenes are saved.
* EditorFolding ignores hidden properties for folded resources (fixes #26663)PouleyKetchoupp2019-04-101-8/+10
|
* Add -Wshadow=local to warnings and fix reported issues.marxin2019-02-201-7/+7
| | | | Fixes #25316.
* Add check in folding to see if the nodepath exists to avoid message spam.K. S. Ernest (iFire) Lee2019-01-301-1/+1
|
* Update copyright statements to 2019Rémi Verschelde2019-01-011-2/+2
| | | | Happy new year to the wonderful Godot community!
* Fix missing/malformed license headersRémi Verschelde2019-01-011-0/+30
|
* Fix style issues and signature mismatchRémi Verschelde2018-11-281-17/+15
|
* Rewrite code for unfolding and make it automatic on scene load, which works ↵Juan Linietsky2018-11-251-0/+85
| | | | better.
* Properly reset canvas state after drawing, fixes #18860Juan Linietsky2018-11-181-1/+1
|
* Remove "save folding for:" message when savingMichael Alexsander Silva Dias2018-10-301-1/+0
|
* Automatically unfold sections of properties that someone else edited (no ↵Juan Linietsky2018-10-291-0/+8
| | | | local info exists).
* Moved folding outside the resource files, now saved outside the project.Juan Linietsky2018-10-291-0/+168