George Marques
aeb0b3114d
GDScript: Fix type detection on Object typed assign
...
Also make typed assigns a debug-only thing, so release builds are more
lenient on errors.
2018-07-25 20:50:12 -03:00
George Marques
a3ae4a9510
GDScript: Allow accessing constants of outer classes
2018-07-25 20:50:12 -03:00
George Marques
a62f4af7ba
GDScript: Enable built-in function introspection in non-tools
...
Only for debug builds. Fix problems in non-tools targets.
2018-07-25 20:50:12 -03:00
George Marques
3d6609303b
GDScript: Fix bogus error when a cursor token is found on class
2018-07-25 20:50:12 -03:00
George Marques
1ac9c0fe3a
GDScript: Allow strict conversion when assigning typed variables
2018-07-25 20:50:12 -03:00
George Marques
96ee93e8c7
GDScript: Fix mismatching between export hint and type hint
2018-07-25 20:50:12 -03:00
George Marques
4cb17191b8
GDScript: Allow inherited method to add optional arguments
...
Also show the parent method signature in the error message.
2018-07-25 20:50:11 -03:00
George Marques
cd6ad5462c
GDScript: Fix returned value of get_default_argument_count()
2018-07-25 20:50:11 -03:00
George Marques
65c069c8d9
GDScript: Fix main script detection
2018-07-25 20:50:11 -03:00
George Marques
b7bd85e70c
GDScript: Look up local scope first for detecting type
2018-07-25 20:50:11 -03:00
Hein-Pieter van Braam
832e2bfcd3
Merge pull request #20137 from hpvb/reduce-vector-cow
...
Reduce unnecessary COW on Vector by make writing explicit
2018-07-26 01:26:46 +02:00
Hein-Pieter van Braam
0e29f7974b
Reduce unnecessary COW on Vector by make writing explicit
...
This commit makes operator[] on Vector const and adds a write proxy to it. From
now on writes to Vectors need to happen through the .write proxy. So for
instance:
Vector<int> vec;
vec.push_back(10);
std::cout << vec[0] << std::endl;
vec.write[0] = 20;
Failing to use the .write proxy will cause a compilation error.
In addition COWable datatypes can now embed a CowData pointer to their data.
This means that String, CharString, and VMap no longer use or derive from
Vector.
_ALWAYS_INLINE_ and _FORCE_INLINE_ are now equivalent for debug and non-debug
builds. This is a lot faster for Vector in the editor and while running tests.
The reason why this difference used to exist is because force-inlined methods
used to give a bad debugging experience. After extensive testing with modern
compilers this is no longer the case.
2018-07-26 00:54:16 +02:00
Tiger Caldwell
5421e46a43
Fixed Issue #20399
2018-07-25 18:50:12 -04:00
Todd Ross
9423f23ffb
allow comments and whitespace before shader_type declaration
2018-07-26 00:17:57 +02:00
Rémi Verschelde
96ce66e00f
Merge pull request #20455 from Calinou/add-user-data-dropdowns
...
Add menu buttons to open the project and editor data folders
2018-07-26 00:01:49 +02:00
Hugo Locurcio
b4f6b20273
Add menu buttons to open the project and editor data folders
2018-07-25 23:41:35 +02:00
Hugo Locurcio
0254a40817
Add "editor" and "standalone" feature tags
...
These feature tags can be used to check whether the project was
started from an editor binary or from an export template binary.
2018-07-25 23:27:50 +02:00
Aaron Franke
55d976467d
Expose 64-bit Color methods to GDScript and fix/update Color XML doc
2018-07-25 15:35:29 -05:00
Aaron Franke
de4b096898
[Core] 64-bit int Color methods
2018-07-25 15:34:24 -05:00
Aaron Franke
e3368d692d
[Mono] Fix Color incorrect ordering of int export methods, added 64-bit
...
[Mono] Fix Color incorrect ordering of int export methods, added 64-bit long export methods.
2018-07-25 15:34:24 -05:00
Rémi Verschelde
e38051970c
Merge pull request #20448 from volzhs/duplicated-code
...
Remove duplicated codes
2018-07-25 22:20:47 +02:00
Will Nations
3de15363ab
Add script hierarchies,add-script btn auto-derives
2018-07-25 15:18:45 -05:00
Juan Linietsky
79d4be275f
Merge pull request #20260 from fire/editor_property_type
...
Add editor property type so that inspector can search for objects.
2018-07-25 16:59:28 -03:00
Ignacio Etcheverry
7e75b9b2c0
Merge pull request #20458 from neikeq/igiveuponbranchnames
...
Mono module bug fixes
2018-07-25 21:55:33 +02:00
K. S. Ernest (iFire) Lee
23744d8064
Add editor property type so that inspector can search for objects. This is a regression.
2018-07-25 12:54:35 -07:00
Ignacio Etcheverry
762c912e8e
Fix continuous attempt to reload domain with API assemblies out of sync
2018-07-25 21:54:21 +02:00
Ignacio Etcheverry
f1130f9a8a
Mono: Fix domain reload never triggering
2018-07-25 21:31:02 +02:00
Ignacio Etcheverry
8edf85b09c
Fix '!valid' error spam on C# script instance create
2018-07-25 21:30:49 +02:00
Ignacio Etcheverry
5aefe5d936
Mono: Fix null dereferences
2018-07-25 21:30:11 +02:00
Rémi Verschelde
c0c795474e
Merge pull request #20453 from ippan/fix_coremidi_case
...
change framework name CoreMidi to CoreMIDI
2018-07-25 21:07:22 +02:00
Rémi Verschelde
cbf85ea743
Merge pull request #20456 from Paulb23/issue_20429_fix_right_click_crash
...
Fix crash on doc right click, issue 20429
2018-07-25 21:01:10 +02:00
Rémi Verschelde
19fe78fe6f
Merge pull request #20450 from fire/vs_generic_search_20433
...
Visualscript: Don't show Shift+A search box at every screen.
2018-07-25 20:54:45 +02:00
Rémi Verschelde
237148e80f
Merge pull request #18368 from Gamblify/RasterizerEngineSync
...
sync rasterizers with engine
2018-07-25 20:33:37 +02:00
Paulb23
6696b16685
Fix crash on doc right click, issue 20429
2018-07-25 19:24:06 +01:00
Max Hilbrunner
bacc02b7d8
Merge pull request #20452 from fire/vs_hide_empty_categories_20433
...
Visualscript: Hide empty categories for basic types and methods.
2018-07-25 20:08:05 +02:00
K. S. Ernest (iFire) Lee
31008c9199
Visualscript: Don't show Shift+A search box at every screen and reuse EDIT_FIND_NODE_TYPE (ctrl-f) shortcut.
...
The generic search shortcut is now CTRL-F.
2018-07-25 09:34:52 -07:00
PanPan
746a15142f
change framework name CoreMidi to CoreMIDI
2018-07-26 00:06:17 +08:00
Ignacio Etcheverry
fe28e323b3
Merge pull request #20298 from PJB3005/18-07-20-mono-partial-api-ext
...
Makes Mono binding classes partial & adds GetNode<T>.
2018-07-25 18:03:57 +02:00
K. S. Ernest (iFire) Lee
5b2c4b77e2
Visualscript: Hide empty categories for basic types and methods.
2018-07-25 08:56:03 -07:00
Juan Linietsky
41a0ecb59b
Merge pull request #20449 from Chaosus/matrix_conversion
...
Added conversions between matrixes in shaders
2018-07-25 12:23:57 -03:00
Chaosus
ca0a6c3fca
Added conversions between matrixes in shaders
2018-07-25 18:14:52 +03:00
Thomas Herzog
95d9302248
Merge pull request #20370 from marcelofg55/gdnative_crash
...
Fix possible crash at NativeScript::get_base_script
2018-07-25 17:09:51 +02:00
volzhs
946be8be50
Remove duplicated codes
2018-07-25 23:34:25 +09:00
Marcelo Fernandez
77f3c0b495
Fix possible crash at NativeScript::get_base_script
2018-07-25 10:58:15 -03:00
Alexander Holland
2290cc6227
Added String.format "no index" support
2018-07-25 13:23:44 +02:00
Rémi Verschelde
9e16f4a370
Merge pull request #20441 from AlexHolly/fix-string-format-case-placeholder
...
Fix format ignores case in placeholder
2018-07-25 12:23:29 +02:00
Alexander Holland
84db7056b7
Fix format ignores case in placeholder
2018-07-25 12:14:48 +02:00
Max Hilbrunner
46985ae075
Merge pull request #20440 from Chaosus/fixtexturecrash
...
Fix game crash when you pass invalid or null parameter to ImageTexture.set_data
2018-07-25 12:00:49 +02:00
Chaosus
bde962dbdd
Fix crash when you pass invalid parameter to ImageTexture.set_data
2018-07-25 12:23:34 +03:00
Rémi Verschelde
f778bd8e69
Merge pull request #20404 from TigerCaldwell/master
...
Ensured consistency between RigidBody, PhysicsDirectBodyState, PhysicsServers and their 2D counterparts
2018-07-25 08:25:34 +02:00