1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-23 15:16:17 +00:00
Commit Graph

39051 Commits

Author SHA1 Message Date
David Sichma
d28f2ee7a5 Only emit typed member setters if safe to do so
Instructions are now only emitted if input type matches expected type.
Otherwise usual setter fallback.
2021-10-08 23:54:55 +02:00
Duroxxigar
54d305eebe Improved readability for failing error conditions 2021-10-08 17:29:25 -04:00
ZuBsPaCe
551ceb590b GDScript: Report property type errors
Inline getters & setters are now FunctionNodes.
Their names are set in the parser, not in the compiler.
GDScript-Analyzer will now run through getter and setter.
Also report wrong type or signature errors regarding getset properties.
Added GDScript tests for getters and setters.
#53102
2021-10-08 22:06:15 +02:00
Rémi Verschelde
16b27304d9 Merge pull request #53579 from RandomShaper/better_hash_map 2021-10-08 21:43:52 +02:00
Omar Polo
a3384b7461 use .get_file() instead of basename(3)
On OpenBSD the compiler complains that calling basename(3) would lose
const qualifier.  basename(3) is defined as

	char *basename(char *);

and can, accorgindly to the POSIX.1, modify the passed string.

This uses the .get_file() method.  The check is necessary because
file_name could be a directory, in which case .get_file() would return
an empty string.  The .get_base_dir().get_file() idiom is already used.

The usage of get_file() and the check were suggested by theraot, thanks!
2021-10-08 20:10:26 +02:00
Pedro J. Estébanez
73697d4de6 Avoid the need for copy assignment in HashMap key/data types 2021-10-08 20:06:07 +02:00
Raul Santos
0be9664b42 Support marshaling generic Godot.Object
Allows using generic C# types in signals as long as they inherit
from `Godot.Object`.
2021-10-08 20:00:47 +02:00
Clay John
58aa020a19 Merge pull request #52215 from Calinou/scale-3d-use-float-value
Allow any floating-point value as a 3D rendering scale option
2021-10-08 10:28:02 -07:00
Red Headphone
fff70a6427 no limit of negative value for engine_force (VehicleBody class) 2021-10-08 22:25:50 +05:30
Raul Santos
1f62d309d8 Support arrays of StringName, NodePath and RID in mono 2021-10-08 18:50:21 +02:00
Hugo Locurcio
73c6e19acc Allow any floating-point value as a 3D rendering scale option
This allows for finer control over 3D rendering resolution.
Supersampling can also be performed by setting a 3D rendering
resolution above 1.0, which is useful for offline rendering or
for very high-end GPUs.
2021-10-08 18:22:10 +02:00
Rémi Verschelde
a5a52233bc Merge pull request #53549 from DeeJayLSP/refcounted-fix-description 2021-10-08 18:11:11 +02:00
Rémi Verschelde
034d43def7 Merge pull request #53571 from kleonc/scene-tree-free-objects-queued-during-destruction 2021-10-08 18:10:11 +02:00
DeeJayLSP
63e2aba3fd Fix RefCounted description
If the class name is modified, its name in the description should be too.

However, pluralization is a bit complicated in this case. I'll give the options `RefCounteds` and `reference-counted objects`. Maybe both can be used.
2021-10-08 11:52:19 -03:00
kleonc
23dac24789 Delete objects enqueued for deletion during SceneTree destruction 2021-10-08 16:45:55 +02:00
Zae
70cf3cbd60 Fix EditorFileSystem not checking .gdignore in existed directory 2021-10-08 21:15:05 +08:00
Rémi Verschelde
26b3aff01d Merge pull request #53517 from ColinKinloch/native_callback_typedef 2021-10-08 14:28:36 +02:00
Rémi Verschelde
cdaa52a820 Merge pull request #53555 from Pineapple/faster-int-string-dictionary 2021-10-08 14:26:48 +02:00
Max Hilbrunner
5733c13f53 Merge pull request #53536 from Faless/mp/4.x_rpc_config
[Net] Add call_local argument to Node.rpc_config.
2021-10-08 14:15:01 +02:00
George Marques
b010f96c89 Merge pull request #53336 from briansemrau/gdscript-i'm-not-my-own-local-class
[GDScript 2.0] fix script base class self-assignment
2021-10-08 09:10:19 -03:00
Fabio Alessandrelli
7c93931751 [Net] Add call_local argument to Node.rpc_config. 2021-10-08 12:49:20 +02:00
Fabio Alessandrelli
54ec66a700 [Net] Rename RPCConfig.sync to call_local.
For consistency with the other user facing changes.
2021-10-08 12:39:09 +02:00
Rémi Verschelde
96767c18f8 Merge pull request #53527 from Chaosus/shader_array 2021-10-08 12:37:05 +02:00
Bartłomiej T. Listwon
4a723842b6 Faster hash_compare for integer and string keys in dictionaries 2021-10-08 10:09:13 +02:00
Yuri Roubinsky
b1ac3e256f Allow declare the shader arrays with a size defined before identifier 2021-10-08 10:28:31 +03:00
Rémi Verschelde
9b34442d93 Merge pull request #53551 from YeldhamDev/tabs_is_a_buggy_mess
Fix invisible tabs not being ignored in `Tabs`
2021-10-08 07:50:27 +02:00
Rémi Verschelde
89ed936ea1 Merge pull request #52911 from vnen/gdscript-use-getter-for-property-type
Use getter return type for the property type
2021-10-08 07:45:42 +02:00
Michael Alexsander
3c5103ac1d Fix invisible tabs not being ignored in Tabs 2021-10-07 22:40:11 -03:00
George Marques
3a856b4fcc GDScript: Use getter return type for the property type
The PropertyInfo hints are more relevant for the inspector. The getter
return type is more reliable and less likely to be incorrect and it is
what's going to be called in the end.
2021-10-07 20:22:19 -03:00
Rémi Verschelde
49e7e049ab Merge pull request #53422 from KoBeWi/add_LUA_to_Godot 2021-10-07 23:37:37 +02:00
Rémi Verschelde
6090f90743 Merge pull request #53545 from vnen/gdscript-release 2021-10-07 23:28:34 +02:00
Rémi Verschelde
f0b26a6160 Merge pull request #52962 from mujpao/fix-right-click-sub-nodes 2021-10-07 23:14:07 +02:00
Rémi Verschelde
3d05b94212 Merge pull request #53522 from groud/read_only_tile_layout 2021-10-07 22:51:46 +02:00
Rémi Verschelde
5abc966be4 Merge pull request #53500 from vnen/variant-in-string-name 2021-10-07 22:51:00 +02:00
Rémi Verschelde
2faf2f822c Merge pull request #53499 from boruok/master-optional-crop-for-texture-atlas-importer 2021-10-07 22:38:07 +02:00
Rémi Verschelde
9f9452a738 Merge pull request #53493 from DeeJayLSP/patch-1 2021-10-07 22:35:55 +02:00
Rémi Verschelde
8aa55435b3 Merge pull request #53541 from Calinou/doc-call-group-null 2021-10-07 22:35:17 +02:00
Rémi Verschelde
8b9022d2f3 Merge pull request #53235 from Paulb23/script-editor-save-state 2021-10-07 22:34:35 +02:00
Rémi Verschelde
a6c4de49e1 Merge pull request #53523 from Calinou/remove-occlusion-color 2021-10-07 22:26:10 +02:00
Rémi Verschelde
21b6aabb60 Merge pull request #53538 from Calinou/environment-ssr-fade-no-negative-values 2021-10-07 22:05:46 +02:00
Rémi Verschelde
82072c4010 Merge pull request #53539 from Calinou/sky-material-color-no-alpha 2021-10-07 22:05:31 +02:00
George Marques
fafa8c7f6e Enable method type information on release builds
This is needed to ensure GDScript compilation works properly on release
builds and make use of optimized typed instructions.
2021-10-07 16:13:44 -03:00
Rémi Verschelde
9bbed1fe86 Merge pull request #53543 from vnen/joint-waring-release
Joint2D: Use boolean instead of warning string for validity test
2021-10-07 21:06:06 +02:00
Paulb23
44e260e247 Allow breakpoints in closed files 2021-10-07 19:48:58 +01:00
Paulb23
bec8ae7ba6 Preserve script editor state through tab closes 2021-10-07 19:44:23 +01:00
George Marques
082f624ef4 GDScript: Fix method ptrcall on release 2021-10-07 15:08:21 -03:00
George Marques
70e1a50cd1 Joint2D: Use boolean instead of warning string for validity test
Those strings are stripped at release there's a false positive that the
bodies are valid, causing a crash.
2021-10-07 14:18:44 -03:00
Hugo Locurcio
f6d7f37592 Document null argument limitation with SceneTree.call_group() 2021-10-07 18:55:29 +02:00
Hugo Locurcio
01d1e9f576 Don't allow translucent colors in built-in sky material properties
The colors' alpha channel is ignored, so there's no point in
exposing it in the editor.
2021-10-07 18:12:16 +02:00
Hugo Locurcio
0269d8e871 Clamp Environment's SSR fade-in and fade-out to positive values
Negative values result in rendering glitches.
2021-10-07 17:59:55 +02:00