George Marques
fb3dc2670a
GDScript: Fix range() being treated as array when optimized out
...
The call of range() in a for loop is optimized to use int or vectors, to
avoid allocating an array, however the type was set as array still. With
the new typed VM this is an issue as the type mismatch the actual value,
resulting in wrong instructions to be selected.
2020-11-25 11:35:07 -03:00
George Marques
2e528ef382
GDScript: Fix mishandling of stack pointers
...
- Replace the for loop temporaries by locals. They cause conflicts with
the stack when being popped, while locals are properly handled in the
scope.
- Change the interface for the codegen so the for loop list doesn't live
through the whole block if it's a temporary.
- Keep track of the actual amount of local variables in the stack. Using
the size of the map is misleading in cases where multiple locals have
the same name (which is allowed when there's no shadowing).
- Added a few debug checks for temporaries, to avoid them being wrongly
manipulated in the future. They should not live more than a line of
code.
- Rearrange some of compiler code to make sure the temporaries don't
live across blocks.
2020-11-25 11:24:13 -03:00
Rémi Verschelde
c5451468cf
Merge pull request #43854 from akien-mga/ptrcall-always-on
...
Core: Always enable ptrcall, remove PTRCALL_ENABLED define
2020-11-25 15:10:32 +01:00
Rémi Verschelde
d76806d322
Core: Always enable ptrcall, remove PTRCALL_ENABLED define
...
ptrcall is now also used to optimize calls in GDScript, on top of the existing
use by the GDNative and Mono modules.
It no longer makes sense to make it optional.
2020-11-25 14:08:17 +01:00
Andrii Doroshenko (Xrayez)
ba68383706
Add AspectRatioContainer
class
...
Co-authored-by: Ugis Brekis <ugis.brekis@productmadness.com>
2020-11-25 15:06:40 +02:00
Rémi Verschelde
8c713fa9bf
Merge pull request #43833 from volzhs/fix-scrollcontainer-bar-max-value
...
Fix to update scroll bar has correct max value in ScrollContainer
2020-11-25 13:27:36 +01:00
Rémi Verschelde
81842a7cd6
Merge pull request #43850 from madmiraal/fix-useless-assignment
...
Fix useless assignement in webrtc/library_godot_webrtc.js
2020-11-25 12:17:21 +01:00
Rémi Verschelde
6dfcc4aa80
Merge pull request #43793 from Calinou/doc-mono-resources
...
Document C# garbage collection caveats in Reference and Resource
2020-11-25 11:12:09 +01:00
Marcel Admiraal
4f654dad13
Fix useless assignement in webrtc/library_godot_webrtc.js
2020-11-25 10:09:53 +00:00
Rémi Verschelde
113ea1de2a
Merge pull request #43837 from KoBeWi/butt_on
...
Update clear button when clicked
2020-11-25 08:21:49 +01:00
Tomasz Chabora
836b78f329
Update clear button when clicked
2020-11-25 00:42:07 +01:00
volzhs
67c2f2445f
Fix to update scroll bar has correct max value in ScrollContainer
2020-11-25 05:30:55 +09:00
Rémi Verschelde
32b31a5fa4
Merge pull request #43730 from qarmin/core_drivers_default_values
...
Initialize class/struct variables with default values in core/ and drivers/
2020-11-24 13:00:27 +01:00
Rémi Verschelde
4159baff6c
Merge pull request #42648 from naithar/fix/native_video_view
...
[iOS] Native video fixes
2020-11-24 10:41:01 +01:00
Rémi Verschelde
617031434f
Merge pull request #43803 from m4gr3d/update_signing_and_zipalign_logic_master
...
Update gradle build files to automatically perform signing and zipalign tasks for custom builds
2020-11-24 08:39:06 +01:00
Rémi Verschelde
43e383e656
Merge pull request #43786 from greenfox1505/3.2_Fix-Camera2D-ZoomRotation-Master
...
fixed Camera2D rotation with non-square zoom
2020-11-24 08:38:16 +01:00
Rémi Verschelde
59fdfc77e8
doc: Sync classref with current source
2020-11-23 23:44:44 +01:00
Rafał Mikrut
7bd03b7188
Initialize class/struct variables with default values in core/ and drivers/
2020-11-23 17:38:46 +01:00
Rémi Verschelde
60fd7bfe42
Merge pull request #43798 from Calinou/doc-improve-audiostreampleyer3d
...
Improve the AudioStreamPlayer3D class documentation
2020-11-23 17:13:49 +01:00
Rémi Verschelde
e1e3aa4f23
Merge pull request #43796 from nekomatata/profiling-error-spam
...
Fix DebuggerMarshalls errors while profiling
2020-11-23 17:10:50 +01:00
Hugo Locurcio
95618e2937
Improve the AudioStreamPlayer3D class documentation
2020-11-23 16:56:05 +01:00
PouleyKetchoupp
d346c30269
Fix DebuggerMarshalls errors while profiling
...
Fixed check for array size before func_size: when func_size is 0 there's
only 1 entry left and not 3.
2020-11-23 07:59:56 -07:00
Hugo Locurcio
0565c76e8b
Document C# garbage collection caveats in Reference and Resource
2020-11-23 14:01:50 +01:00
Eric M
7941235e06
Add is_valid() check for InputEventKey in CanvasItemEditor.
2020-11-23 21:52:15 +10:00
Rémi Verschelde
50db0e66ac
Merge pull request #43747 from Faless/js/4.0_lint
...
[HTML5] Linting, fixes.
2020-11-23 12:38:17 +01:00
Fabio Alessandrelli
4617a7fa9c
[HTML5] Run eslint --fix.
...
Should I write a poem about this whole new world? ;)
2020-11-23 12:15:18 +01:00
Fabio Alessandrelli
c38984d286
[HTML5] Enforce JavaScript style with eslint.
...
Applies to javascript files inside the platform library folder, the
exposed Engine code, and any javascript files in modules.
Files ending with ".externs.js" will be ignored, you can create a
".eslintignore" file to specify extra files to be ignored.
2020-11-23 12:15:18 +01:00
Eric M
efe5c250d5
Implement new shortcuts system.
...
unhandled_key_input changed to unhandled_button_input. Controls can set a 'shortcut_context' which they can then use to determine if their shortcuts should be triggered or not, based on if the viewport's focused GUI control is a child of their 'shortcut context'.
2020-11-23 21:14:26 +10:00
Eric M
fc806409f4
Removed unhandled_key_input from editor AudioBus and instead connect to gui_input signal on tree for handling of effects shortcuts.
2020-11-23 21:14:26 +10:00
Eric M
9c69281f87
Remove unused unhandled_key_input method in EditorHelp. Search popup and focus is handled by an external MenuButton shortcut.
2020-11-23 21:14:25 +10:00
Eric M
9d7d20a978
Added accept_event() calls for SceneTreeDock and BaseButton
2020-11-23 21:14:25 +10:00
Rémi Verschelde
18023cc3ed
Merge pull request #43788 from RandomShaper/ref_singleton
...
Make warning about Reference singletons more accurate
2020-11-23 11:26:10 +01:00
Pedro J. Estébanez
e79162ec4e
Make warning about Reference singletons more accurate
2020-11-23 10:42:44 +01:00
Rémi Verschelde
a248e6f8c3
Merge pull request #43781 from MaxMutantMayer/regex_unit_tests
...
Move and add new RegEx test cases
2020-11-23 10:07:07 +01:00
Rémi Verschelde
ba989a1d39
Merge pull request #43627 from aaronfranke/pixelvi
...
Use Vector2i instead of Vector2 for Image get_pixelv and set_pixelv
2020-11-23 10:04:49 +01:00
Rémi Verschelde
4ed42bfc29
Merge pull request #43725 from vnen/gdscript-typed-vm-2
...
GDScript: Typed VM Take 2
2020-11-23 09:59:20 +01:00
Rémi Verschelde
6221210c6c
Merge pull request #43727 from Calinou/test-add-aabb
...
Add a test suite for AABB
2020-11-23 09:30:44 +01:00
Rémi Verschelde
663d0d79fa
Merge pull request #43754 from Calinou/primary-grid-steps-default-pot
...
Use a power-of-two value for Primary Grid Steps in the 3D editor
2020-11-23 08:54:05 +01:00
Rémi Verschelde
f218550c48
Merge pull request #43774 from Calinou/doc-overdraw-no-vertex-displacement
...
Document that vertex displacement isn't visible in overdraw debug mode
2020-11-23 08:03:14 +01:00
Fredia Huya-Kouadio
918b218b55
Update gradle build files to automatically perform signing and zipalign tasks for custom builds.
2020-11-22 18:11:54 -08:00
greenfox
b9c0897713
fixed Camera2D rotation with non-square zoom
2020-11-22 18:09:33 -06:00
Maximilian Mayer
7edb50a31c
Move and add new RegEx test cases
...
Test cases for 'RegEx' are moved from 'test_string.h' to own test suite
in 'test_regex.h'. Additionally, new tests are introduced and '_init' is
removed as it isn't implemented/used anywhere.
2020-11-22 22:48:03 +01:00
Rémi Verschelde
6bd4074f76
Merge pull request #43777 from Calinou/doc-transparent-webm
...
Document that WebM videos don't support the alpha channel
2020-11-22 20:07:21 +01:00
Hugo Locurcio
1a616726cf
Document that WebM videos don't support the alpha channel
2020-11-22 17:43:07 +01:00
Hugo Locurcio
b297d595a5
Document that vertex displacement isn't visible in overdraw debug mode
...
See #24232 .
2020-11-22 16:28:00 +01:00
Rémi Verschelde
5ab727b460
Merge pull request #43773 from Calinou/tweak-editor-help-default-shortcut
...
Bind the editor's Search Help function to F1 by default
2020-11-22 16:24:00 +01:00
Hugo Locurcio
42685f514f
Bind the editor's Search Help function to F1 by default
...
Now that the F1 key is available, we can bind Search Help to the key
generally used in other applications to open the help menu.
2020-11-22 15:26:17 +01:00
Rémi Verschelde
25ebee328c
Merge pull request #43699 from winterpixelgames/PR-render-validation-fixes
...
fix for two incorrectly bound texture formats
2020-11-22 12:03:18 +01:00
Rémi Verschelde
52e2650b8f
Merge pull request #43728 from vnen/variant-getter-set-type
...
Fix variant getters not setting return type
2020-11-22 09:50:38 +01:00
Hugo Locurcio
31cf3e2572
Use a power-of-two value for Primary Grid Steps in the 3D editor
...
This matches the 2D editor default behavior.
Powers of two are usually better for grid divisions as they are often
used in level design.
2020-11-21 21:35:23 +01:00