summaryrefslogtreecommitdiff
path: root/modules/gdscript
AgeCommit message (Collapse)Author
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-14Avoid a crash in the gdscript analyserGilles Roudière
2021-12-13Fix shadowed global identifier warning duplicationYuri Roubinsky
2021-12-10Revert "Fix auto reload scripts on external change"Rémi Verschelde
2021-12-10Fix "Lookup Symbol" on global class memberscdemirer
"Lookup Symbol" on global class members now does switch to the relevant script.
2021-12-10Merge pull request #43181 from nathanfranke/string-emptyRémi Verschelde
Replace String comparisons with "", String() to is_empty()
2021-12-09Merge pull request #55700 from Razoric480/raz/lsp-extraneous-codeRé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-09Merge pull request #49473 from cptchuckles/fix-auto-reload-scriptsRémi Verschelde
2021-12-07Remove extraneous return to LSPFrancois Belair
2021-12-06Merge pull request #55624 from Razoric480/raz/cs-lsp-signalRémi Verschelde
2021-12-04Auto-Increment Debugger PortNathan Franke
Note: This PR also changes the port of the GDScript Language Server from 6008 to 6005. This opens enough ports above the debug port (6007) for this change to be useful.
2021-12-04Prevent LSP adding signal func to non GDScriptsFrancois Belair
2021-12-03Fix typo in `gdscript_parser`Raul Santos
2021-11-30Don't return reference on copy assignment operatorsRémi Verschelde
We prefer to prevent using chained assignment (`T a = b = c = T();`) as this can lead to confusing code and subtle bugs. According to https://en.wikipedia.org/wiki/Assignment_operator_(C%2B%2B), C++ allows any arbitrary return type, so this is standard compliant. This could be re-assessed if/when we have an actual need for a behavior more akin to that of the C++ STL, for now this PR simply changes a handful of cases which were inconsistent with the rest of the codebase (`void` return type was already the most common case prior to this commit).
2021-11-25Enchance descriptions of @GlobalScope/@GDScriptYuri Roubinsky
2021-11-23Rename `remove()` to `remove_at()` when removing by indexLightning_A
2021-11-23Merge pull request #54949 from Chaosus/fix_warningRémi Verschelde
2021-11-23Improve various textskobewi
2021-11-15Replace Godot docs URL with `$DOCS_URL` in XML class referenceRémi Verschelde
2021-11-13Allow using built-in names for variables, push warnings insteadYuri Roubinsky
2021-11-12Modules: Make sure to include modules_enabled.gen.h where neededRémi Verschelde
2021-11-11Show built-in script names in the debuggerkobewi
2021-11-11[GDScript] Check string literals for Unicode direction control characters.bruvzg
2021-11-10Merge pull request #54676 from Chaosus/gds_restrict_namesRémi Verschelde
2021-11-10Merge pull request #54358 from ↵Rémi Verschelde
Shawak/feature-allow-root-node-paths-without-quote
2021-11-09Allow using $/root node pathsMaximilian
format fix shadowing use match instead of comparison Update gdscript_parser.cpp
2021-11-09Remove hash symbol in front of opcode error messages in GDScriptHugo Locurcio
The hash symbol creates spurious issue references on GitHub if the message is posted outside a code block, which means some issues have a lot more references than originally intended.
2021-11-08Merge pull request #54473 from briansemrau/no-debug-functions-on-threadRémi Verschelde
2021-11-08Prevent identifiers from naming as built-in funcs and global classesYuri Roubinsky
2021-11-08Merge pull request #54118 from ↵Rémi Verschelde
Pineapple/dont-ignore-type-mismatch-in-setter-master
2021-11-07Fix LSP crash when parsing signal symbols.Francois Belair
If the number of parameters was less than the number of class members, the LSP would cause godot to crash because it was using the index for class members instead of the index for signal parameters. Fixes #54720 .
2021-11-03Rename `PROPERTY_USAGE_NOEDITOR` to `PROPERTY_USAGE_NO_EDITOR`Hugo Locurcio
This is consistent with other constants that include `NO`, such as `PROPERTY_HINT_COLOR_NO_ALPHA`.
2021-11-02Merge pull request #54346 from mhilbrunner/used-what-instead-of-whatRémi Verschelde
2021-11-01GDScript gracefully handle debug functions from separate threadBrian Semrau
2021-10-29Move the docs for constructors and operators out of methods sectionAaron Franke
2021-10-28Merge pull request #54350 from akien-mga/clang-format-dont-align-operandsRémi Verschelde
2021-10-28Merge pull request #53526 from KoBeWi/super_printRémi Verschelde
2021-10-28clang-format: Various fixes to comments alignment from `clang-format` 13Rémi Verschelde
All reviewed manually and occasionally rewritten to avoid bad auto formatting.
2021-10-28clang-format: Disable alignment of operands, too unreliableRémi Verschelde
Sets `AlignOperands` to `DontAlign`. `clang-format` developers seem to mostly care about space-based indentation and every other version of clang-format breaks the bad mismatch of tabs and spaces that it seems to use for operand alignment. So it's better without, so that it respects our two-tabs `ContinuationIndentWidth`.
2021-10-28Improve GDScript indentation error messageMax Hilbrunner
2021-10-25Refactored Node3D rotation modesreduz
* Made the Basis euler orders indexed via enum. * Node3D has a new rotation_order property to choose Euler rotation order. * Node3D has also a rotation_mode property to choose between Euler, Quaternion and Basis Exposing these modes as well as the order makes Godot a lot friendlier for animators, which can choose the best way to interpolate rotations. The new *Basis* mode makes the (exposed) transform property obsolete, so it was removed (can still be accessed by code of course).
2021-10-22Don't ignore the type mismatch in setter functionBartłomiej T. Listwon
2021-10-21Remove unimplemented methodsMarcel Admiraal
2021-10-19Merge pull request #52940 from groud/toast_notificationRémi Verschelde
2021-10-18Fix incorrect debug check for settersBenjamin Navarro
the check read the return type of the setter, which doesn't exist and lead to a segmentation fault. Now we check the first function parameter. Probably a bad copy/paste of the getter case
2021-10-17Fix name used instead of doc for GDScript signalsopl-
2021-10-15Merge pull request #53856 from vnen/gdscript-setter-crashRémi Verschelde
2021-10-15GDScript: Avoid crash if missing setter signatureGeorge Marques
2021-10-15Merge pull request #53843 from vnen/gdscript-typed-array-subscript-constantRémi Verschelde
Fix inferred typed array marked as constant