Rémi Verschelde
d8b30d42f5
Fix warnings for operator precedence disambiguation [-Wparentheses]
...
Fixes the following GCC 5 warnings:
```
core/io/resource_format_binary.cpp:1721:29: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses]
core/typedefs.h:108:24: warning: suggest parentheses around comparison in operand of '!=' [-Wparentheses]
editor/plugins/spatial_editor_plugin.cpp:2202:58: warning: suggest parentheses around comparison in operand of '!=' [-Wparentheses]
editor/plugins/spatial_editor_plugin.cpp:5002:12: warning: suggest explicit braces to avoid ambiguous 'else' [-Wparentheses]
main/input_default.cpp:346:59: warning: suggest parentheses around '-' inside '<<' [-Wparentheses]
main/input_default.cpp:348:60: warning: suggest parentheses around '-' inside '<<' [-Wparentheses]
main/input_default.cpp:579:57: warning: suggest parentheses around '-' inside '<<' [-Wparentheses]
modules/gridmap/grid_map_editor_plugin.cpp:613:14: warning: suggest explicit braces to avoid ambiguous 'else' [-Wparentheses]
modules/theora/video_stream_theora.cpp:335:34: warning: suggest parentheses around '+' in operand of '&' [-Wparentheses]
modules/theora/video_stream_theora.cpp:336:35: warning: suggest parentheses around '+' in operand of '&' [-Wparentheses]
modules/visual_script/visual_script_property_selector.cpp:215:38: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
scene/gui/rich_text_label.cpp:424:84: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
scene/gui/rich_text_label.cpp:512:80: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
scene/gui/scroll_container.cpp:173:36: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
scene/gui/scroll_container.cpp:173:86: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
scene/gui/tree.cpp:1419:98: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
```
2018-09-27 10:29:48 +02:00
Rémi Verschelde
2b084352b9
Fix warnings on non-static data member initializers (C++11 feature)
...
We're not formally using C++11 yet so those trigger compilation warnings
(at least with GCC 5):
./main/input_default.h:122:30: warning: non-static data member initializers only available with -std=c++11 or -std=gnu++11
CursorShape default_shape = CURSOR_ARROW;
^
Note: We may allow those eventually (especially for non-int static const),
but most of current occurrences were inconsistent with all other classes.
See also http://www.stroustrup.com/C++11FAQ.html#member-init
2018-09-27 10:29:48 +02:00
Ignacio Etcheverry
2e87703136
Merge pull request #22460 from neikeq/issue-22403
...
Mono: Fix not creating generic Array or Dictionary where expected
2018-09-27 00:38:39 +02:00
Ignacio Etcheverry
50fd5ef3b5
Mono: Fix not creating generic Array or Dictionary where expected
2018-09-27 00:11:31 +02:00
Ignacio Etcheverry
0f3de6ef3a
Do not update cache if the C# API assembly is out of sync
2018-09-26 23:59:38 +02:00
Rémi Verschelde
a2b6be23ad
ENet: Remove redundant if condition
...
Closes #22445 .
2018-09-26 10:53:45 +02:00
Fabio Alessandrelli
977c9477c1
Set ENet service time to 0.
...
Process all packets in queue, but never wait.
2018-09-25 16:26:45 +02:00
Fabio Alessandrelli
b0f166987a
Server platform builds (dummy) mobile_vr module.
...
Protect GL functions in mobile_vr with ifdefs.
2018-09-25 12:29:31 +02:00
Rémi Verschelde
5adf7aa6b7
SCons: Fix checks for clang in env['CXX']
...
They would match the whole path instead of only the filename.
2018-09-25 11:15:25 +02:00
Fabio Alessandrelli
df43b94e6e
Update WebSocket documentation
2018-09-24 01:50:37 +02:00
Fabio Alessandrelli
4b92956db7
Implement WebSocket clean close detection.
2018-09-24 01:50:37 +02:00
Fabio Alessandrelli
5d91e87c64
Implement WebSocket close notify.
2018-09-24 01:50:37 +02:00
Andrea Catania
d226ba7c2b
Corrected cast_motion query behaviour
2018-09-22 11:17:31 +02:00
Andrea Catania
29e01f97e4
Added rayshape solver algorithm to soft body configurator fixes #22283 fixes #22249 fixes #22281
2018-09-22 09:42:19 +02:00
Rémi Verschelde
ef7b384861
doc: Misc formatting fixes
2018-09-21 15:34:11 +02:00
Max Hilbrunner
a384cffc44
Merge pull request #22316 from Faless/poll_more_checks_easy_squash
...
Add checks for clean disconnect in HTTP/TCP/SSL.
2018-09-21 15:03:55 +02:00
Fabio Alessandrelli
92de6df113
Add checks for clean disconnect in HTTP/TCP/SSL.
...
Half-open TCP connection can, of course, only be detected by
writing the socket, or waiting for TCP timeout.
2018-09-21 14:34:57 +02:00
Rémi Verschelde
83758a9004
doc: Sync classref with current source
2018-09-21 09:33:05 +02:00
JFonS
9ffc30699f
Fix selection box staying when editing a GridMap
2018-09-20 11:50:38 +02:00
JFonS
463af5b6ef
Fix typo in SimplexNoise documentation
2018-09-20 11:03:23 +02:00
JFonS
4faa5acaa7
Replace "persistance" with "persistence"
...
Replace "persistance" with "persistence" in the simplex code.
Also made some minor fixes to the docs.
2018-09-19 21:00:10 +02:00
Rémi Verschelde
2306ec211c
Merge pull request #22257 from AndreaCatania/fixes
...
Daily physics Fixes
2018-09-19 20:41:37 +02:00
Hugo Locurcio
a386af67ec
Improve SimplexNoise documentation and fix typos
...
Spaces were added after code blocks to ensure correct rendering
on the online class reference.
2018-09-19 20:25:09 +02:00
Andrea Catania
0a2c154c8e
Added automatically set velocity when rigid is kinematic
2018-09-19 19:46:07 +02:00
Andrea Catania
42f2ff2f8d
Added check to prevent contact signal to happen too early
2018-09-19 19:01:59 +02:00
George Marques
b1187b9a2f
GDScript: Revert extra deletion when creating instance
...
Revert part of e4af39cbc0
that was causing
a crash.
2018-09-19 11:17:47 -03:00
George Marques
825e85ab23
GDScript: Error on empty blocks at the end of file
...
Fix #15415
2018-09-19 11:17:46 -03:00
George Marques
02acb07d81
GDScript: Fix autocompletion inference after is
check
...
Fix #21915
2018-09-19 11:17:46 -03:00
George Marques
726e836cd9
GDScript: Fix infinite loop in autocomplete
...
It happened when the definition of the variable contained the variable
itself.
2018-09-19 11:17:46 -03:00
George Marques
e6a6ea65c7
GDScript: Forbid enum values to shadow constants
...
- Don't allow constants to shadow parent members.
- Fix a spelling mistake.
Fix #13175
2018-09-19 11:17:46 -03:00
George Marques
6c70c4c358
GDScript: Fix autocomplete crash when searching default values
...
Fix #21700
2018-09-19 11:17:46 -03:00
George Marques
b530031442
GDScript: Allow Object constants to be used with qualifier
...
Fix #15125
2018-09-19 11:17:46 -03:00
George Marques
4907a1cd28
GDScript: Fix stack address test in compiler
2018-09-19 11:17:45 -03:00
Rémi Verschelde
f148e8eede
SCons: Fix ARVR can_build arity
2018-09-18 08:56:44 +02:00
Ignacio Etcheverry
e463834a8b
Fix missing mono internal call
...
- Also fixed uninitalized variable in buildscript
2018-09-17 22:54:47 +02:00
Ignacio Etcheverry
a4e4dd3966
Merge pull request #22193 from neikeq/idontlikesanditscoarseandroughandirritatinganditgetseverywhere
...
Mono: Build and external editor improvements for OSX
2018-09-17 20:22:05 +02:00
Ignacio Etcheverry
50f6dbff87
Mono: Fix opening code editors in OSX and cleanup
2018-09-17 20:00:19 +02:00
Ignacio Etcheverry
9610bc9580
Merge pull request #22151 from 999eagle/monoexe
...
Check for mono binary when finding version
2018-09-17 19:55:43 +02:00
Ignacio Etcheverry
b032738a51
Add some mono root dir hints to the build script
...
This enhancement is specially noticeable in OSX, since it includes Mono's install location (both official and homebrew). This makes it possible to build Godot with Mono on OSX without pkg-config (pkg-config is bundled with Mono, but it's not added to PATH, so finding it would require finding the Mono root directory first).
2018-09-17 19:34:35 +02:00
Rémi Verschelde
4075c80ea9
Merge pull request #22165 from DualMatrix/atan2_plain_wrong
...
Fixed argument names having wrong order for atan2
2018-09-17 12:33:26 +02:00
Rémi Verschelde
dbee7856e3
Merge pull request #22157 from muiroc/fix_cast_crash
...
Add null check in godot result callback
2018-09-17 11:09:06 +02:00
DualMatrix
4bad2beeed
Fixed argument names being swapped for atan2
...
The arguments of atan2() should be y,x instead of x,y This was just wrong since the internal atan2 already had y,x as parameters, so if you followed the autocomplete the result would just be wrong.
2018-09-16 21:27:54 +02:00
Mariusz Chwalba
47bf26c40d
test for depreciacion warnings only on debug builds
...
Fix adherence to clang-format rules
2018-09-16 19:37:51 +02:00
muiroc
23a61c7342
Add null check in godot result callback
2018-09-16 16:02:15 +02:00
Sophie Tauchert
99cd17b102
Check for mono binary when finding version
2018-09-16 15:20:44 +02:00
Rémi Verschelde
68e1ef49b1
Merge pull request #22095 from KellyThomas/transform-interpolatewith
...
[Mono] Transform - add InterpolateWith()
2018-09-16 01:37:19 +02:00
Fabio Alessandrelli
0e56377e96
Allow system certs file to be used by Editor.
...
Note, it will only used by the Editor, not when running the game.
This allows package maintainer to compile Godot to use system installed
certificates when accessing the AssetLib.
2018-09-15 14:45:54 +02:00
Kelly Thomas
d4b2423428
[Mono] implement Transform.InterpolateWith()
2018-09-15 13:08:21 +08:00
Fabio Alessandrelli
c0e4d7efca
Add GDScript slave keyword deprecation warning.
2018-09-15 01:50:34 +02:00
Fabio Alessandrelli
1e9b46d687
Clearly deprecate sync too in favor of remotesync.
...
NOTE: This changes the RPC_MODE_* enum values.
Games should be re-exported. GDNative rebuilt.
2018-09-15 00:06:03 +02:00
Fabio Alessandrelli
d6b31daec6
Rename slave keyword to puppet
...
The slave keyword will still be available as deprecated in 3.1 but will
be dropped from future releases.
2018-09-15 00:06:03 +02:00
Rémi Verschelde
5961a6da03
Merge pull request #21717 from willnationsdev/edicon-refactor
...
Refactor editor icon retrieval
2018-09-14 17:24:04 +02:00
Rémi Verschelde
2aad7f1376
Merge pull request #21569 from JFonS/add_noise_textures
...
Add SimplexNoise and NoiseTexture as new resources
2018-09-14 16:57:26 +02:00
willnationsdev
5436abefe4
Refactor editor icon retrieval
2018-09-14 09:27:56 -05:00
JFonS
f12a1b8863
Add SimplexNoise and NoiseTexture as new resources
...
SimplexNoise can be used to generate parameterized fractal noise based on Open Simplex.
NoiseTexture uses SimplexNoise to generate noise textures for using in
shaders/visual effects.
2018-09-14 15:24:34 +02:00
Thomas Herzog
e0f763f1c9
[GDNative] add Variant::Operator
2018-09-13 17:23:38 +02:00
Rémi Verschelde
1a16dabfb5
Merge pull request #21982 from luzpaz/misc-typos
...
Misc. typos
2018-09-13 10:59:00 +02:00
luz.paz
08bde5b2de
Misc. typos
...
Found via `codespell -q 3 -I ../godot-word-whitelist.txt --skip="./thirdparty,*.po"`
2018-09-12 21:39:17 -04:00
Ignacio Etcheverry
995a40e8ef
Move modules/mono/glue/cs_files to modules/mono/glue/Managed/Files
...
Added dummy MSBuild project and solution to get tooling help when editing these files.
2018-09-12 22:03:36 +02:00
Ignacio Etcheverry
5e57beebb1
Mono: Fix build regression due to wrong return type
2018-09-12 21:08:18 +02:00
Ignacio Etcheverry
6ae47ff19b
C#: Fix explicit enum values when exporting member
2018-09-12 18:54:20 +02:00
Rémi Verschelde
277b24dfb7
Make core/ includes absolute, remove subfolders from include path
...
This allows more consistency in the manner we include core headers,
where previously there would be a mix of absolute, relative and
include path-dependent includes.
2018-09-12 09:52:22 +02:00
Ignacio Etcheverry
d21c64cc3b
C#: Fix cs_files glue mismatch bug
2018-09-12 03:24:08 +02:00
Ignacio Etcheverry
e558e1ec09
Fix/workaround for issue #21667
...
When a Reference managed instance is garbage collected and its finalizer is called, it could happen that the native instance is referenced once again before the finalizer can unreference and memdelete it. The workaround is to create a new managed instance when this happens (at least for now).
2018-09-12 03:24:08 +02:00
Ignacio Etcheverry
61426464ea
Add some mono root hint dirs for OSX
...
Fixes #13355
2018-09-12 03:24:08 +02:00
Ignacio Etcheverry
691d4e3835
Allow special characters in C# glue files
...
Fixes #21139
- Surround the generated file modules/mono/glue/cs_compressed.gen.h with ifdef TOOLS_ENABLED
2018-09-12 03:24:08 +02:00
Ignacio Etcheverry
b1356a3590
Cleanup of c# api files and bindings generator
...
- We no longer generate RID and NodePath C# classes. Both will be maintained manually.
- We no longer generate C# declarations and runtime registration of internal calls for the following classes: RID, NodePath, String, GD, SignalAwaiter and Godot.Object (partial base).
- We no longer auto-generate the base members of Godot.Object. They will be maintained manually as a partial class.
This makes it easier to maintain these C# classes and their internal calls, as well as the bindings generator which no longer generates C# classes that don't derive from Godot Object, and it no longer generates the Godot.Object base members (which where unreadable in the bindings generator code).
- Added missing 'RID(Object from)' constructor to the RID C# class.
- Replaced MONO_GLUE_DISABLED constant macro with MONO_GLUE_ENABLED.
- Add sources in module/mono/glue even if glue is disabled, but surround glue files with ifdef MONO_GLUE_ENABLED.
2018-09-12 03:23:45 +02:00
Rémi Verschelde
0d04fb76e1
Fix mistake in previous commit
2018-09-11 18:12:40 +02:00
Rémi Verschelde
af57515775
UPnP: Fix includes of thirdparty headers
2018-09-11 18:09:12 +02:00
Ignacio Etcheverry
8366da5bc6
Merge pull request #21822 from aaronfranke/mono-pascal
...
[Mono] Various style changes and naming standardization
2018-09-10 23:52:00 +02:00
Aaron Franke
627ed98ed1
[Mono] Various style changes and naming standardization
2018-09-10 15:22:10 -04:00
Aaron Franke
4743852466
[Mono] Tabs -> Spaces
2018-09-10 15:12:49 -04:00
Rémi Verschelde
0faafa6f4d
Fix crash when extending non-existing GDScript file
...
Fixes #21682 with a partial revert of #21411 .
The ~Ref() destructor (from 'scriptres') already takes care
of freeing the 'script' resource.
2018-09-10 20:46:20 +02:00
Rémi Verschelde
d9a96878f2
Merge pull request #21921 from AndreaCatania/bugfix2
...
Fix bullet crashes
2018-09-10 08:20:15 +02:00
Andrea Catania
b252e66414
Fiex bullet crash
2018-09-10 07:55:11 +02:00
Poommetee Ketson
bb0e8d260c
Fix indentation in bullet SCsub
2018-09-10 12:22:23 +07:00
George Marques
af290f7b7d
Merge pull request #21866 from Paulb23/fix_scientific_notation_highlight_issue_21435
...
Fixed scientific notation not highlighting correctly, issue 21435
2018-09-09 18:21:33 -03:00
Juan Linietsky
ffe158ae85
Merge pull request #21861 from fire/visual_script_18024
...
Change the default variable Visual Script constructor to use EditorInspector and etc
2018-09-08 17:05:03 -03:00
Paulb23
f051f5110e
Fixed scientific notaion not highlighting correctly, issue 21435
2018-09-08 13:42:11 +01:00
K. S. Ernest (iFire) Lee
7ce9e67355
Change the default variable constructor to use EditorInspector and updated property hints that were changed.
2018-09-08 02:51:23 -07:00
Andrea Catania
3eaaf712db
Fixed crash during raycast and CCD radius calculation
2018-09-07 20:38:30 +02:00
Juan Linietsky
fc50728d45
Merge pull request #21808 from AndreaCatania/optitri
...
Optimized bullet trimesh collision
2018-09-07 15:09:26 -03:00
Andrea Catania
6142448417
Update bullet to Master 12409f1118a7c7a266f9071350c70789dfe73bb9
2018-09-07 16:11:04 +02:00
Andrea Catania
88967e4001
Fixing trimesh precision
2018-09-06 18:53:03 +02:00
Andrea Catania
9b446f1cc3
Optimized in case is used just 1 shape with no transform
2018-09-06 18:19:05 +02:00
Rémi Verschelde
3a8f8381f2
Merge pull request #21771 from WiggleWizard/get-stack-fix
...
Fixed return type for get_stack() function call
2018-09-05 19:46:12 +02:00
Andrea Catania
ce138d3449
Fixed bullet area vs Trimesh shape overlap
2018-09-05 13:43:02 +02:00
WiggleWizard
d227a9ae12
Fixed return type for get_stack() function call
2018-09-05 11:29:06 +01:00
Will Nations
fadf2d2afd
Fix invalid deref in NativeScript script classes
2018-09-04 08:35:28 -05:00
Max Hilbrunner
21ea1d89ef
Merge pull request #21605 from Faless/ws_no_proto
...
Allow WebSocket connect with no sub-protocols.
2018-08-31 13:15:46 +02:00
Fabio Alessandrelli
6bc97cc7cc
Allow WebSocket connect with no sub-protocols.
2018-08-30 20:23:16 +02:00
Thomas Herzog
917bd5b2c2
[NativeScript] implement refcount instance binding funcs
2018-08-30 19:55:04 +02:00
Thomas Herzog
492b4cf837
[GDNative] add initial core 1.1 extension
2018-08-30 19:18:55 +02:00
Rémi Verschelde
cb63cc86e5
Merge pull request #21575 from YeldhamDev/gridmap_deprecated_fix
...
Small change on how GridMap's "theme" is deprecated
2018-08-30 09:03:11 +02:00
Rémi Verschelde
5267099a87
doc: Sync classref with current source
2018-08-29 22:25:11 +02:00
Michael Alexsander Silva Dias
8ede2647ed
Small change on how GridMap's "theme" is deprecated
2018-08-29 17:14:06 -03:00
Andrea Catania
9a67a07a2c
Fixed crash if convex has 0 vertices
2018-08-29 17:34:26 +02:00
Rémi Verschelde
907b7a3897
Merge pull request #21538 from jmf/master
...
Fix CSGBox size
2018-08-29 15:03:01 +02:00
Ibrahn Sahir
2a823a38ac
Initialise rays_found count in test_ray_separation.
...
Prevents branch on uninit that could result in crashes with
move_and_slide.
2018-08-29 13:23:14 +01:00
Yuri Chornoivan
06e73522dc
Fix vformat(), minor typos and word puzzles
2018-08-29 11:50:39 +03:00
jmf
11c90b0bb3
Fix to make CSGBox the size that is entered in Width, Height and Depth instead of twice those lengths.
2018-08-28 14:41:41 -03:00
Rémi Verschelde
57ba7caa6d
Merge pull request #21511 from eska014/webm-nomt
...
Fix WebM and Theora video in HTML5 export
2018-08-28 07:56:52 +02:00
Ignacio Etcheverry
6b10e3750e
Merge pull request #21497 from neikeq/hm
...
C# generated classes ignore warning CS1591 and cleanup
2018-08-27 21:43:46 +02:00
Ignacio Etcheverry
aa2bcf3dfc
C# generated classes ignore warning CS1591 and cleanup
2018-08-27 20:39:51 +02:00
Rémi Verschelde
66778eae71
Merge pull request #21420 from elasota/fix-last-mipmap
...
Fix uninitialized mipmap levels
2018-08-27 17:48:41 +02:00
Rémi Verschelde
f06b7d40c8
Merge pull request #21449 from vnen/gdscript-builtin-is
...
Allow `is` operator to test built-in types
2018-08-27 17:48:11 +02:00
Rémi Verschelde
5b87864385
Merge pull request #21369 from Noshyaar/exportflag
...
Deprecating bit flags export with no hint text
2018-08-27 17:47:21 +02:00
Ignacio Etcheverry
78bb53f85d
Merge pull request #21205 from KellyThomas/c-sharp-feature-parity-quat
...
[Mono] Quat - add some missing constructors and methods
2018-08-27 16:18:09 +02:00
Rémi Verschelde
49cf675ef4
Merge pull request #21450 from vnen/gdscript-type-space
...
Remove space before colon on type hints
2018-08-27 10:42:19 +02:00
Rémi Verschelde
3dc63a710f
Merge pull request #21469 from akien-mga/glsl-clang-format
...
Style: Enable clang-format on GLSL shaders
2018-08-27 10:12:24 +02:00
Rémi Verschelde
ddfef86836
Fix build after c2a9cb34
...
`return` statements were missing, and those warnings do not need to be
behind #ifdefs, they do not expose any deprecated API.
2018-08-27 10:10:40 +02:00
Rémi Verschelde
2131f101b6
Merge pull request #21470 from elasota/fix-tiled-exr
...
Fix tiled EXR import
2018-08-27 09:46:57 +02:00
elasota
4b7885fb1e
Fix tiled EXR crash, update tinyexr to head to fix corrupted uncompressed EXR loading
2018-08-27 02:52:12 -04:00
Rémi Verschelde
98cc2ce1dd
Merge pull request #21433 from AndreaCatania/megafix
...
Multiple fixes on Physics things
2018-08-27 07:46:40 +02:00
Rémi Verschelde
4226d56ca9
Style: Enable clang-format on GLSL shaders
...
As of clang-format 6.0.1, putting the `/* clang-format off */` hint
around our "invalid" `[vertex]` and `[shader]` statements isn't enough
to prevent a bogus indent of the next comments and first valid statement,
so we need to enclose that first valid statement in the unformatted chunk.
2018-08-27 07:34:14 +02:00
Leon Krause
92b259ccf1
Fix WebM module for HTML5 platform
2018-08-27 04:08:04 +02:00
Ignacio Etcheverry
db55d8a4b6
Merge pull request #21423 from exts/mono/collections
...
[Mono] Added Collections namespace to Array & Dictionary
2018-08-26 19:11:45 +02:00
George Marques
de45b18ddb
GDScript: Remove space before colon on type hints
2018-08-26 13:43:13 -03:00
George Marques
4b974a36b7
GDScript: Allow is
operator to test built-in types
2018-08-26 13:31:23 -03:00
Andrea Catania
64b5eaf43c
Correctly set safe_motion on cast_motion query Fixes : #21212
2018-08-26 12:09:52 +02:00
Andrea Catania
c2a9cb343b
Added deprecated to joints un/used parameters
2018-08-26 09:10:30 +02:00
Crazy-P
e4af39cbc0
Fixes several resource leaks in ...
...
- gdscript
- gdscript_compiler
- regex
- android/export
- gles3/rasterizer (scene and storage)
2018-08-26 09:19:02 +08:00
exts
035d498af2
Added Collections namespace to Array & Dictionary
2018-08-25 17:19:37 -05:00
elasota
de2a36505a
Fix mipmap levels not being initialized
2018-08-25 17:22:53 -04:00
Juan Linietsky
8c435a343e
Merge pull request #16927 from neikeq/rework-refcount-notify
...
Notify instance binding data api of refcount increment/decrement
2018-08-25 11:01:55 -03:00
Rémi Verschelde
77185aaf21
Merge pull request #21049 from AndreaCatania/joints
...
Improved 6DOF joint implementation
2018-08-24 17:10:54 +02:00
Ignacio Etcheverry
d72a281468
Merge pull request #20717 from PJB3005/18-08-04-godot-exceptions
...
Fix Mono exception handling.
2018-08-24 16:27:43 +02:00
Ignacio Etcheverry
750f128a05
Merge pull request #20707 from aaronfranke/mono-combine
...
[Mono] Move several related small files
2018-08-24 15:53:38 +02:00
Poommetee Ketson
cee6d5620a
Deprecating bit flags export with no hint text
2018-08-24 20:46:04 +07:00
Rémi Verschelde
52466d57e9
Make some debug prints verbose-only, remove others
2018-08-24 14:59:01 +02:00
Rémi Verschelde
de59fe04e7
Add print_verbose to print to stdout only in verbose mode
...
Equivalent of the cumbersome:
if (OS::get_singleton()->is_stdout_verbose())
print_line(msg);
2018-08-24 09:23:20 +02:00
Kelly Thomas
a941684590
mono: Quat - add some missing constructors and methods
2018-08-24 07:56:54 +08:00
Pieter-Jan Briers
af39684885
Fix Mono exception handling.
...
First of all, this fixes the handling of exceptions so the engine actually notices them,
it was broken in 4172fa03b5
.
Next, unhandled exceptions now do NOT cause an abort(). They're logged now,
so before #16987 . The pending exception thing still works though.
2018-08-23 20:21:36 +02:00
Aaron Franke
514856d8c7
[Mono] Move several small related files
2018-08-23 12:50:04 -04:00
Kelly Thomas
46207ae7aa
[Mono] AABB - Position, Size, End setters, Rect2 - End setter
2018-08-23 23:45:18 +08:00
Rémi Verschelde
7f8f76ffbb
Merge pull request #21301 from elasota/multithread-cvtt
...
Multithread BPTC compression jobs
2018-08-23 09:33:47 +02:00
Rémi Verschelde
18e1268cd7
Merge pull request #21254 from YeldhamDev/tile_grid_map_side
...
Add option to move Tile/GridMap editors to another side
2018-08-23 09:04:12 +02:00
Rémi Verschelde
1e729630d6
Merge pull request #21240 from aaronfranke/mono-project-vector
...
[Mono] Vector2/3 Project methods
2018-08-23 08:59:26 +02:00
Rémi Verschelde
a2acbb0bfb
Merge pull request #21167 from elasota/squish-quality-config
...
Support higher-quality S3TC compression modes
2018-08-23 08:58:44 +02:00
elasota
8c4e24862b
Multithread CVTT compression jobs
2018-08-22 22:42:22 -04:00
Ignacio Etcheverry
908a30964a
Notify instance binding data api of refcount increment/decrement
2018-08-23 01:38:48 +02:00
Michael Alexsander Silva Dias
6fa1b5eca7
Add option to move Tile/GridMap editors to another side
2018-08-22 19:18:23 -03:00
Rémi Verschelde
61f15878de
Merge pull request #21283 from YeldhamDev/gridmap_meshlib_rename
...
Rename instances of the word "theme" to "mesh_library" in GridMap and MeshLibrary editors
2018-08-22 22:41:40 +02:00
Ignacio Etcheverry
980b81dd2a
Merge pull request #21174 from KellyThomas/c-sharp-feature-parity-rect2
...
[Mono] Rect2 - add Abs(), rename private fields
2018-08-22 22:34:45 +02:00
Rémi Verschelde
d9cad85f43
Merge pull request #21229 from marcelofg55/ns_profiling
...
Implemented profiling functions for NativeScript
2018-08-22 22:27:42 +02:00
Michael Alexsander Silva Dias
5c6be1aea5
Rename instances of the word "theme" to "mesh_library" in GridMap and MeshLibrary editors
2018-08-22 16:52:38 -03:00
Marcelo Fernandez
a323b7a1ba
Implemented profiling functions for NativeScript
2018-08-22 15:40:41 -03:00
Aaron Franke
434973fb83
[Mono] Vector2/3 Project methods
2018-08-22 13:27:35 -04:00
elasota
4cd866685e
Use cluster fit at higher quality levels
2018-08-22 12:05:25 -04:00
Rémi Verschelde
3573d5f4ae
Merge pull request #21281 from elasota/fix-squish-sse
...
Fix Squish SSE misconfiguration
2018-08-22 09:55:57 +02:00
Rémi Verschelde
a6979e7c66
Merge pull request #21279 from vnen/gdscript-fixes
...
Assorted GDScript fixes
2018-08-22 09:53:52 +02:00
elasota
35f6ba5c5d
BPTC support
2018-08-21 22:56:04 -04:00
elasota
04410346bb
Fix Squish SSE misconfiguration
2018-08-21 22:21:56 -04:00
George Marques
94d662ad55
GDScript: Ignore unused arguments/local vars that start with _
...
Makes it simple to ignore particular arguments without adding special
comments, especially in engine-defined functions.
2018-08-21 20:29:43 -03:00
George Marques
4d2b9a4b35
GDScript: Show warning messages only on debugger
...
Don't show on console/output anymore.
2018-08-21 20:29:33 -03:00
Ignacio Etcheverry
143c471eff
Mono: Fix weird crash when loading corlib
2018-08-22 00:49:38 +02:00
Ignacio Etcheverry
5df91099c7
Merge pull request #18502 from space-wizards/18-04-29-assembly-load-hook
...
assembly_load_hook fallback for registering GDMonoAssemblies.
2018-08-22 00:27:35 +02:00
Rémi Verschelde
404ee1a56b
Style: Fix issues that went past CI
2018-08-21 21:28:06 +02:00
Rémi Verschelde
a319d72071
Merge pull request #21253 from aaronfranke/plane-constants
...
Rename Plane constants, add to Mono
2018-08-21 21:16:41 +02:00
Rémi Verschelde
28e9aedbdd
Merge pull request #21267 from akien-mga/color-grayscale
...
Deprecate incorrect Color::gray()
2018-08-21 20:29:56 +02:00
George Marques
fdf18a4198
GDScript: Fix undefined behavior on GDScriptTokenizerBuffer
2018-08-21 13:54:52 -03:00
Andrea Catania
0b98834b77
Added ray / shape / point / motion / rest cast exclusion of area and or body
2018-08-21 18:51:08 +02:00
George Marques
abbdb9d951
GDScript: Forbid invalid identifiers in match bindings
...
Also forbid shadowing a variable from an upper scope.
2018-08-21 13:38:18 -03:00
George Marques
d97624e295
GDSCript: Fix cyclic class dependency detection
2018-08-21 13:14:11 -03:00
Rémi Verschelde
2969dffbe3
Deprecate incorrect Color::gray()
...
This average is not a proper approximation of a grayscale value,
get_v() is better suited for that.
If we want a real to_grayscale() conversion, it's somewhat more
involved: https://en.wikipedia.org/wiki/Grayscale
Remove the deprecated Gray() from C# bindings as it conflicts
with new named color constants.
2018-08-21 17:48:31 +02:00
Rémi Verschelde
912131fe03
Merge pull request #20101 from panzergame/shape_margin
...
Expose bullet shape margin to UI.
2018-08-21 16:17:11 +02:00
Aaron Franke
a986686ac4
Rename Plane constants, add to Mono
...
But I'm not tagging PR as [Core] or [Mono] due to it being a minor change anyway.
2018-08-21 01:35:07 -04:00
Rémi Verschelde
4ea3e4f551
doc: Sync classref with current source
2018-08-21 00:35:46 +02:00
Juan Linietsky
d88d0d457d
Fixes to move and slide and ray separation, implement separation in Godot physics
2018-08-20 17:31:55 -03:00
Juan Linietsky
1b66b08fdb
Merge pull request #20908 from AndreaCatania/kiSlope
...
Improved move_and_slide function stay on slope
2018-08-20 13:24:28 -03:00
Rémi Verschelde
661c9ece7c
Add PROPERTY_HINT_PLACEHOLDER_TEXT for String properties
...
Use it to provide a better example for application identifiers
on Android, iOS and macOS, where users thought they *had* to use
this as a magic token.
2018-08-20 13:48:05 +02:00
Rémi Verschelde
789d1f2e07
Merge pull request #21208 from jmca/master
...
Prevent "cannot use a string pattern on a bytes-like object"
2018-08-20 09:30:01 +02:00
Justin Abene
c6a4ca5c9e
Prevent "cannot use a string pattern on a bytes-like object"
...
Fixes #21207
2018-08-20 00:42:47 -04:00
John Teasdale
7323f7998b
Bullet picking will now ignore objects without input_ray_pickable
2018-08-19 13:14:12 -07:00
Hugo Locurcio
649c3bee3b
Highlight multiline strings as strings instead of comments
...
Since multiline comments are not officially supported in GDScript, it is
more common to see multiline strings being used as strings rather than
as comments (which are actually standalone expressions here).
This closes #21142 .
2018-08-19 13:47:57 +02:00
Andrea Catania
0010d9c82a
Added ray shape and move_and_slide with snapping on 3D.
...
Added stop_on_slope on 2d part
2018-08-19 13:45:23 +02:00
Kelly Thomas
792a8446ac
mono: add Abs() to Rect2 and rename private fields
2018-08-19 19:18:12 +08:00
Andrea Catania
9826456f2e
Improved move_and_slide function to stay on slope and fall on steep slope
2018-08-18 15:11:51 +02:00
Ignacio Etcheverry
7287300433
Mono: Improve C# core files (glue/cs_files) buildsystem
...
- Search C# files recursively in 'glue/cs_files'.
- Determine a version for the C# core files automatically. The latest modified time will do for now.
2018-08-17 13:51:55 +02:00
Rémi Verschelde
968b31e971
Merge pull request #20561 from willnationsdev/script-class-ns
...
Add NativeScript support for script classes via exported script properties.
2018-08-16 20:03:49 +02:00
Rémi Verschelde
333999c24f
Fix Theora/Webm loaders declaring binary extension
...
RES_BASE_EXTENSION is only to declare our proprietary binary formats
(e.g. "scn", "res", etc.).
Fixes #20395 .
2018-08-16 19:17:24 +02:00
Tristan Porteries
e5bfa98d0f
Expose bullet shape margin to UI.
...
The margin value is exposed into the UI for shape ressource.
This value can be modified through set_margin and get from get_margin
or by using the property margin. Each time the margin is modified
the associated collision shape is recreated and the margin value is
used in ShapeBullet::prepare.
2018-08-16 16:58:15 +02:00
Bastiaan Olij
4194581823
Delay initialising lens distortion shader so GLES2 doesn't crash
2018-08-16 20:42:47 +10:00
Andrea Catania
a12e3bab23
Improved 6DOF joint implementation, and removed useless function from cone joint
2018-08-15 18:14:32 +02:00
willnationsdev
05f717376b
Add NativeScript support for script classes.
2018-08-15 10:58:13 -05:00
Will Nations
3ed9231117
Fix error spam from loading script class icons
2018-08-15 10:17:28 -05:00
Rémi Verschelde
040c6be426
Merge pull request #20560 from willnationsdev/class_icons
...
Add custom icons to script classes.
2018-08-15 15:16:29 +02:00
Rémi Verschelde
4548ec4a49
Merge pull request #20945 from neikeq/dict-erase-retbool
...
Dictionary: remove erase_checked(key), make erase(key) return bool
2018-08-15 01:08:23 +02:00
Juan Linietsky
4e55835e48
Merge pull request #18096 from aaronfranke/master
...
[Core] Split up math_2d.h
2018-08-14 18:58:32 -03:00
Will Nations
6d9cc032e7
Add custom icons to script classes.
2018-08-14 14:18:05 -05:00
Rémi Verschelde
b4f579b5ba
Merge pull request #20583 from neikeq/issue-15371
...
Fix case where exported properties value is lost
2018-08-14 21:08:56 +02:00
Kelly Thomas
815d08f10c
mono: add constants to transform and vector structs
2018-08-15 02:03:36 +08:00
Ignacio Etcheverry
21d285e30f
Dictionary: remove erase_checked(key), make erase(key) return bool
2018-08-14 19:19:05 +02:00
Ignacio Etcheverry
d7b9fcd336
Merge pull request #20890 from KellyThomas/mono-is-instance-valid
...
mono: add IsInstanceValid(), move WeakRef()
2018-08-14 18:12:18 +02:00
Kelly Thomas
9341129d14
mono: add IsInstanceValid(), move WeakRef()
2018-08-14 15:48:54 +08:00
Rémi Verschelde
695b8d254e
SCons: Fix mono_root initialization
...
As advised by @neikeq.
2018-08-14 08:55:37 +02:00
Ignacio Etcheverry
c4e75aa63a
Merge pull request #20706 from mysticfall/issue-20705
...
Add missing GetPtr() for Dictionary<> and Array<>
2018-08-13 22:37:09 +02:00
Rémi Verschelde
139e621338
Merge pull request #20913 from pulkomandy/master
...
Rebase patches for fixing haiku build.
2018-08-13 21:26:15 +02:00
Teashrock
51a0a38135
Fixed absent variable exception while trying to raise another exception.
2018-08-13 16:28:28 +02:00
Chaosus
179e15f876
Remove usage console spam
2018-08-13 16:51:17 +03:00