summaryrefslogtreecommitdiffstats
path: root/scene/resources/resource_format_text.cpp
Commit message (Collapse)AuthorAgeFilesLines
* 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 🎆
* Static analyzer fixes:bruvzg2020-12-091-1/+0
| | | | | | Removes unused code in OS. Fixes return types. Fixes few typos.
* Merge pull request #39056 from rileylyman/tscn_newlinesRémi Verschelde2020-11-271-0/+5
|\ | | | | Skip extra newline in .tscn when renaming dependency
| * skip extra newline in .tscn when renaming dependencyrileylyman2020-05-251-0/+5
| |
* | Reorganized core/ directory, it was too fatty alreadyreduz2020-11-071-1/+1
| | | | | | | | | | | | -Removed FuncRef, since Callable makes it obsolete -Removed int_types.h as its obsolete in c++11+ -Changed color names code
* | Improve appearance of [connection] and [editable] sections in .tscn filesDanil Alexeev2020-09-291-1/+8
| |
* | Update ResourceLoaderText::load to not update progress if resources are 0jjjlalonde@gmail.com2020-08-161-3/+3
|/ | | | | | Include check in other progress update statement Update additional progress update statement
* Style: Enforce braces around if blocks and loopsRémi Verschelde2020-05-141-27/+51
| | | | | 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/+3
| | | | | | | | | | | | | | | | | | | | | | | 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-98/+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.
* Exposed RenderingDevice to script APIJuan Linietsky2020-04-201-17/+30
| | | | | | | | | | | | | Also added an easier way to load native GLSL shaders. Extras: Had to fix no-cache for subresources in resource loader, it was not properly working, making shaders not properly reload. Note: The precommit hooks are broken because they don't seem to support enums from one class being used in another. Feel free to fix this after merging this PR.
* Replace NULL with nullptrlupoDharkael2020-04-021-5/+5
|
* Fixes bugs found by Sonarcloud and Coverityqarmin2020-03-021-6/+6
|
* Properly handle EOF when parsing text resourceJuan Linietsky2020-02-281-0/+4
| | | | Fixes #36652
* Removed interactive loader, added proper thread loading.Juan Linietsky2020-02-281-83/+157
|
* PoolVector is gone, replaced by VectorJuan Linietsky2020-02-181-1/+1
| | | | | Typed `PoolTypeArray` types are now renamed `PackedTypeArray` and are sugar for `Vector<Type>`.
* Changed logic and optimized ObjectID in ObjectDB and Variant, removed RefPtr.Juan Linietsky2020-02-151-1/+1
|
* GIProbes working.Juan Linietsky2020-02-111-1/+1
|
* Remove duplicate ERR_PRINT macro.Marcel Admiraal2020-02-051-1/+1
|
* 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.
* Encodes property names properly in project.godotHaoyu Qiu2019-12-201-16/+2
|
* Merge pull request #32051 from qarmin/some_error_explanationRémi Verschelde2019-09-251-3/+3
|\ | | | | Added some obvious errors explanations
| * Added some obvious errors explanationsqarmin2019-09-251-3/+3
| |
* | Preserve group order in scene fileslupoDharkael2019-09-071-0/+1
|/
* Remove ERR_EXPLAIN from scene/* codeTomasz Chabora2019-08-091-2/+1
|
* Changed some code showed in LGTM and Coverageqarmin2019-07-201-4/+0
|
* Removed a pair of empty bracesunknown2019-07-071-3/+0
|
* Some code changed with Clang-Tidyqarmin2019-06-261-2/+2
|
* Merge pull request #29283 from qarmin/fix_some_always_same_valuesRémi Verschelde2019-06-201-8/+2
|\ | | | | Remove always true/false values
| * Fix always true/false valuesqarmin2019-06-201-8/+2
| |
* | Escape node names when saving to .tscnBojidar Marinov2019-06-031-3/+3
|/ | | | Fixes #29401
* Style: Fix issues with clang-format 8.0Rémi Verschelde2019-05-201-8/+3
|
* No more metadata and dependency indices kept in resources saved.Juan Linietsky2019-04-111-6/+58
| | | | | -Node folding is now saved externally together with the properties -External resources remember their ID when scenes are saved.
* Style: Apply new changes from clang-format 8.0Rémi Verschelde2019-04-091-1/+2
| | | | | | It seems to stay compatible with formatting done by clang-format 6.0 and 7.0, so contributors can keep using those versions for now (they will not undo those changes).
* Remove extraneous line breaks from text resourcesPaul Trojahn2019-03-011-2/+4
| | | | Fixes #23539
* Fix GCC 5 build after #26331 and cleanup styleRémi Verschelde2019-02-271-1/+1
| | | | Also cleanup after 01a3dd3.
* Prevent circular references to scene being saved, fixes #24384Juan Linietsky2019-02-241-1/+7
|
* Fix code style issuesRémi Verschelde2019-02-221-1/+0
|
* Implement a cleaner (and better) way to save imagedata from ImageTexture, ↵Juan Linietsky2019-02-211-2/+26
| | | | fixes #18801
* Scene: Ensure classes match their header filenameRémi Verschelde2019-02-121-0/+1756
Also drop some unused files. Renamed: - `scene/2d/navigation2d.h` -> `navigation_2d.h` - `scene/2d/screen_button.h` -> `touch_screen_button.h` - `scene/3d/scenario_fx.h` -> `world_environment.h` - `scene/audio/audio_player.h` -> `audio_stream_player.h` - `scene/resources/bit_mask.h` -> `bit_map.h` - `scene/resources/color_ramp.h` -> `gradient.h` - `scene/resources/shape_line_2d.h` -> `line_shape_2d.h` - `scene/resources/scene_format_text.h` -> `resource_format_text.h` - `scene/resources/sky_box.h` -> `sky.h` Dropped: - `scene/resources/bounds.h`