09e12ba9b4
Sync GDScript doc template for new annotations
2022-07-06 16:37:40 +02:00
f0eb3ac5d3
Merge pull request #62701 from cdemirer/for-variable-conflict
2022-07-06 16:02:49 +02:00
fdff28e1a2
Merge pull request #62699 from cdemirer/fix-autocomplete-var-assigned-same-statement
2022-07-06 15:57:19 +02:00
4c56885bc0
Merge pull request #62690 from cdemirer/fix-infinite-guess-recursion
2022-07-06 15:54:16 +02:00
4873886830
Merge pull request #62760 from cdemirer/fix-annotation-initializer-conflict
...
Fix priority of annotated type vs initializer type
2022-07-06 15:47:56 +02:00
635d447a69
Merge pull request #62713 from YuriSizov/docs-scripting-annotations
2022-07-06 15:31:19 +02:00
ea61cd3b32
Merge pull request #62707 from YuriSizov/gdscript-group-those-props
2022-07-06 15:24:07 +02:00
f280975bf1
Fix priority of annotated type vs initializer type
2022-07-06 04:25:44 +03:00
5ac42cf576
Implement a BitField hint
...
Allows to specify the binder that an enum must be treated as a bitfield.
2022-07-05 22:13:37 +02:00
f85bafaa11
Add grouping annotations for class properties in GDScript
2022-07-05 22:01:40 +03:00
a9098e6147
Add support for documenting built-in annotations
2022-07-04 20:21:39 +03:00
b221eab426
Variant memory pools
...
Memory pools via PagedAllocator for Transform2D, Transform3D, Basis and AABB.
2022-07-04 12:01:46 +01:00
dbdf0174b4
Do error when for variable conflicts with a variable in scope
2022-07-04 12:30:39 +03:00
3a827349bf
Fix autocomplete for variable which is assigned to in the current statement
2022-07-04 10:08:41 +03:00
bd518f6b11
Fix infinite recursion when guessing type of variable which is being assigned to
2022-07-04 02:49:36 +03:00
92367bad4e
Fix GDScript parser sometimes crashing when issuing warning for unreachable pattern
2022-07-01 02:05:00 +02:00
b730d2ee09
Merge pull request #60675 from voylin/Add-BBCode-support-for-printing-output
...
Adding print_rich() for printing with BBCode
2022-06-28 23:35:53 +02:00
f6072c9c98
Merge pull request #62485 from cdemirer/fix-set-chain-jump-if-shared
...
Fix chain assignment bug with jump_if_shared
2022-06-28 19:13:35 +02:00
a0608bd891
Fix set chain bug with jump_if_shared
2022-06-28 18:45:27 +03:00
c6291bcd8a
Adding print_rich for printing with BBCode
2022-06-29 00:41:29 +09:00
622b656c40
Merge pull request #53135 from briansemrau/fix-ref-leak
2022-06-28 17:26:44 +02:00
4c14bf7482
Merge pull request #62470 from vnen/gdscript-export-nodes
...
GDScript: Enable exporting nodes to the inspector
2022-06-28 08:07:00 +02:00
b863c40356
Merge pull request #62468 from V-Sekai/core-const-expressions
...
Add a const call mode to Object, Variant and Script.
2022-06-28 01:08:24 +02:00
9490146a16
GDScript: Enable exporting nodes to the inspector
...
Also fix an small issue in the property editor for NodePath trying to
use the meta property when not needed.
2022-06-27 18:42:52 -03:00
c4a426d6ec
Merge pull request #62462 from vnen/gdscript-setter-chaining
...
GDScript: Fix setter being called in chains for shared types
2022-06-27 23:25:53 +02:00
9ddebc0c22
Add a const call mode to Object, Variant and Script.
...
For this to work safely (user not call queue_free or something in the expression), a const call mode was added to Object and Variant (and optionally Script).
This mode ensures only const functions can be called, making it safe to use from the editor.
Co-Authored-By: reduz <reduzio@gmail.com >
2022-06-27 13:33:06 -07:00
511a4b761c
GDScript: Fix setter being called in chains for shared types
...
When a type is shared (i.e. passed by reference) it doesn't need to be
called in a setter chain (e.g. `a.b.c = 0`) since it will be updated in
place.
This commit adds an instruction that jumps when the value is shared so
it can be used to skip those cases and avoid redundant calls of setters.
It also solves issues when assigning to sub-properties of read-only
properties.
2022-06-27 12:09:51 -03:00
dd3de622d8
Merge pull request #62372 from MarcusElg/nosliderrename
...
Rename @export_range's noslider option to no_slider
2022-06-25 14:03:44 +02:00
cf015673d3
GDScript: Use implicit method for @onready variables
...
Initialize them with the implicit method so they're not related to the
overriding of the `_ready` method of the script but instead are always
set.
2022-06-24 14:49:21 -03:00
81cac4907f
GDScript: Don't add implicit constructor to the list of functions
...
So it's not shown on docs or when listing the methods. This also avoids
being able to call it using the `call()` function.
2022-06-24 14:48:46 -03:00
6c1ac9f3be
Rename export_range's noslider option to no_slider
2022-06-24 10:45:34 +02:00
471050e6a7
Merge pull request #62342 from reduz/methodinfo-varargs
...
Implement varargs in Methodinfo
2022-06-23 22:49:16 +02:00
dd8c0522a6
Implement varargs in Methodinfo
...
Variadic templates are an awful thing. Implements #62233 using them in MethodInfo so less changes are required.
2022-06-23 14:50:38 +02:00
5c365713ca
Do not reset return value in release build
2022-06-22 20:55:09 +04:00
141c375581
Clean up Hash Functions
...
Clean up and do fixes to hash functions and newly introduced murmur3 hashes in #61934
* Clean up usage of murmur3
* Fixed usages of binary murmur3 on floats (this is invalid)
* Changed DJB2 to use xor (which seems to be better)
2022-06-20 12:54:19 +02:00
46bbbd9770
Allow autocompletion of "noslider" in export_range
2022-06-19 17:11:49 +02:00
860e24683f
Make enum/constant binds 64-bit.
2022-06-17 16:36:26 +03:00
78944fef82
Merge pull request #61510 from Calinou/script-tweak-stack-overflow-message
2022-06-17 13:03:05 +02:00
525b5e0e16
Fix EditorScenePostImport templates for C#
2022-06-16 19:29:59 +02:00
8c7d4996c9
Document how to load Images and MP3 files at run-time
2022-06-16 13:18:36 +02:00
d82c227e2b
Merge pull request #61486 from jtnicholl/import_script_templates
...
Add script templates for EditorScenePostImport
2022-06-15 21:07:42 +02:00
912d8e23ca
Add script templates for EditorScenePostImport
2022-06-15 12:41:37 -04:00
c9ad370f20
Add a null checking to GDScript::_super_implicit_constructor
2022-06-15 17:28:40 +03:00
cceeb671db
Improve stack overflow error message in GDScript and VisualScript
...
Stack overflow errors are generally the result of infinite recursion
within a script.
2022-06-15 16:20:01 +02:00
68b86220c8
Merge pull request #57513 from trollodel/gdscript_get_propertyinfo_classname
...
Allow setting the PropertyInfo class_name from GDScript custom properties
2022-06-15 10:48:01 -03:00
1aa6e33bf5
Merge pull request #59358 from strank/debug-inner-classes
2022-06-15 10:37:18 -03:00
9839761e24
Merge pull request #59482 from kurtlachmann/lsp_better_parentheses
2022-06-15 15:31:35 +02:00
67156aa4c2
Merge pull request #61666 from nathanfranke/fix-match-bind
...
gdscript: use correct error for unused bind match, suppress with underscore
2022-06-15 10:21:34 -03:00
15740c37a3
Merge pull request #57151 from cdemirer/fix-match-array-dict-pattern-logic-error
...
Fix logic errors in match-statement Array & Dictionary patterns
2022-06-14 21:30:05 -03:00
2079e19899
Extend test_compiler to also disassemble inner classes
2022-06-12 16:30:04 -04:00