Ignacio Etcheverry
b9b7dcdf00
C#: Improve tool script support and fix reloading issues
2018-11-30 20:43:06 +01:00
Erik
78c9677816
GDscript function str2var now returns input string on invalid input
...
str2var used to raise a blocking error when invalid input was passed. Now it logs an error message and
returns the input string. This solution was proposed in #13021 .
Closes #11457 and #13021 .
2018-11-28 14:47:40 +01:00
Rémi Verschelde
06db076fc6
Merge pull request #24025 from aaronfranke/analyzer-errors
...
Fix many errors found by PVS-Studio
2018-11-28 14:08:50 +01:00
Rémi Verschelde
b47d4e1ba5
Merge pull request #24017 from eska014/rt-squish
...
Enable squish decompression in runtime builds
2018-11-28 12:40:43 +01:00
Leon Krause
32751e09ac
Build squish decompression in runtime
2018-11-28 11:11:58 +01:00
Aaron Franke
cb01268562
Fix many errors found by PVS-Studio
...
Fix errors 2, 3, 4, 6, 8, 9, 11, 12, 13, 14, and 15.
2018-11-28 05:03:24 -05:00
Rémi Verschelde
78cdbc54b0
Merge pull request #23994 from AndreaCatania/prec
...
Added function to control 6DOF precision
2018-11-28 10:30:47 +01:00
Rémi Verschelde
3f41bd1522
Merge pull request #23996 from Windfisch/bulletfix
...
Add more max-checking to physics queries
2018-11-28 10:30:09 +01:00
Juan Linietsky
3a93499f89
Allow signal connecting even if script is invalid (only when compiled with tools), fixes #17070
2018-11-27 19:55:37 -03:00
Andrea Catania
a395d809a5
Added function to control 6DOF precision
2018-11-27 07:11:28 +01:00
Florian Jung
e10c3e7ec5
Add more max-checking to physics queries
...
Fixes some out-of-bounds problems when there are more collisions than
have been requested for. This extends what has been done in 444b8471a3
.
Fixes godotengine/godot#23990
2018-11-26 18:15:58 +01:00
Rémi Verschelde
942855a9ee
Merge pull request #23961 from Faless/lws_poll_all
...
Websocket LWS keep servicing till no CB are left
2018-11-26 11:48:31 +01:00
Rémi Verschelde
7b2ac28326
Merge pull request #23959 from RandomShaper/fix-dangling-script-fix
...
Fix dangling script fix
2018-11-26 10:13:00 +01:00
Fabio Alessandrelli
c3d3f1dedb
Websocket LWS keep servicing till no CB are left
...
Apparently, only a single WRITABLE/READABLE callback is called at each
servicing. For this reason, we want to keep servicing until we end up
not receiving any callback.
When that happens, we can assume that we can't (or don't want to) write
more, and that there is nothing left to read in the socket buffer.
2018-11-25 17:25:03 +01:00
Pedro J. Estébanez
06b6cea62e
Fix crash on signal/resume to dangling target
2018-11-25 13:16:45 +01:00
Carter Anderson
d339824f15
Parse C# generics and type constraints correctly
2018-11-24 18:29:23 -08:00
Pedro J. Estébanez
b499537e68
Revert "Fix crash on signal/resume to dangling target"
...
This reverts commit 54bdc1e1f6
.
2018-11-24 23:46:13 +01:00
Rémi Verschelde
1c169413ff
Merge pull request #23740 from ttencate/unused_argument_22139
...
Prevent unused_argument warning when passing arg to parent constructor
2018-11-23 01:07:22 +01:00
Rémi Verschelde
7a9e4c2602
Merge pull request #22953 from DualMatrix/properties_gone
...
Fixed parents export vars not appearing in inspector if parent is class_name.
2018-11-22 19:34:41 +01:00
Andrea Catania
c6e6249143
Improved algorithm that check collision
2018-11-22 09:03:21 +01:00
Liangdi
dced53b4d9
add undeclared function params of VisualScriptEditor::_selected_method , Fixes #23475
2018-11-21 21:25:19 +08:00
Michael Alexsander Silva Dias
da7d3c5a58
Make opening menus with the same parent on mouse focus explicit
2018-11-20 20:37:45 -02:00
Ignacio Etcheverry
d275d848b3
C#: Replace calls to old of old Basis(Vec3,Vec3,Vec3) constructor
2018-11-20 22:23:09 +01:00
Rémi Verschelde
477e89a8a2
Merge pull request #23760 from BastiaanOlij/fix_tangent_direction
...
Fixing tangent and binormal logic
2018-11-20 14:13:36 +01:00
Rémi Verschelde
84dcf9ca19
Merge pull request #23824 from BastiaanOlij/polygon_caps
...
Adding UVs on end caps for CSGPolygon
2018-11-20 13:59:46 +01:00
Rémi Verschelde
173b342ca7
Remove trailing whitespace
...
With `sed -i $(rg -l '[[:blank:]]*$' -g'!thirdparty') -e 's/[[:blank:]]*$//g'`
(+ manual revert of some thirdparty code under `platform/android`).
2018-11-20 11:15:02 +01:00
Rémi Verschelde
5c3422873f
doc: Another indentation fixup
2018-11-20 10:20:00 +01:00
Ignacio Etcheverry
5712daf2d9
Merge pull request #23833 from neikeq/hh
...
C#: Fix Basis(Vec3,Vec3,Vec3) constructor
2018-11-20 06:13:29 +01:00
Ignacio Etcheverry
bf94eed60c
C#: Fix Basis(Vec3,Vec3,Vec3) constructor
...
Now it sets axes in order to match GDScript implementation.
2018-11-20 02:08:22 +01:00
Bastiaan Olij
bcef4b8dc6
Fixing tangent and binormal logic
2018-11-19 22:27:05 +11:00
Bastiaan Olij
9703153396
Adding UVs on end caps
2018-11-19 22:08:49 +11:00
Rémi Verschelde
fafece44a2
Merge pull request #23789 from vnen/gdscript-empty-class-bug
...
Check for valid values when checking for class members
2018-11-18 11:23:43 +01:00
George Marques
3d2d04afd4
Check for valid values when checking for class members
...
- Check if GDScript was compiled correctly before checking its functions
and properties.
- Check if native class name is actually set before looking for it in
the ClassDB.
2018-11-17 23:23:40 -02:00
George Marques
0bc953d83b
Allow primitives to be compared to Object types with is
2018-11-17 22:41:08 -02:00
Rémi Verschelde
5075e372f3
Merge pull request #23668 from sdfgeoff/fix_angular_constraints
...
Exposing more of bullets 6DOF spring constraints
2018-11-17 16:15:33 +01:00
Juan Linietsky
6ed1be9637
Merge pull request #23743 from BastiaanOlij/csg_mikkt_tangent
...
Adding mikkt tangent support to CSG objects
2018-11-16 23:24:52 +01:00
Juan Linietsky
f141f747de
Fix Squish decompression, closes #18109
2018-11-16 19:12:00 -03:00
Ibrahn Sahir
d1550215b0
Fix some undefined behaviour in Bullet module.
...
Nulling mainShape when it's deleted to avoid double free.
Initialising vector in inertia calculation to work around bug in bullet.
2018-11-16 14:20:09 +00:00
Bastiaan Olij
caf14e77db
Adding mikkt tangent support to CSG objects
2018-11-17 00:07:18 +11:00
Juan Linietsky
8306d60e85
Get rid of gridmap error due to not yet valid cursor instance, fixes #17546
2018-11-16 09:10:44 -03:00
Juan Linietsky
0b1e93ccd4
-Make sure monitorable cant be flipped while flushing queries, fixes #17330
...
-Also added set_deferred, this was missing.
2018-11-16 08:49:26 -03:00
Thomas ten Cate
4a530433d4
Prevent unused_argument warning when passing arg to parent constructor
...
This requires creating the FunctionNode object a bit sooner, and setting
it as the current_function while parsing the parent constructor call
arguments.
Note that the return type has not yet been parsed at this point, but
that doesn't seem to be a problem.
Fixes #22139
2018-11-16 10:46:05 +01:00
Ibrahn Sahir
f8a1c77fcf
Assign pointer null in RegEx::clear to avoid double free on destruction.
2018-11-15 13:36:40 +00:00
Rémi Verschelde
b2f96b2892
Merge pull request #22940 from Faless/lws_buffers_bis
...
Better buffering for WebSocket
2018-11-13 09:54:06 +01:00
Geoffrey Irons
e149327be0
Added angular restitution
...
Adding angular and linear springs
Added getters
2018-11-13 09:24:00 +01:00
Fabio Alessandrelli
c066db4d59
Convert WebSocket module to use PacketBuffer class
2018-11-12 22:55:17 +01:00
Fabio Alessandrelli
4847b5bff5
Add new PacketBuffer class for buffered peers
2018-11-12 21:49:50 +01:00
George Marques
7f6f9abb2f
Make enum values not be script constants if enum is named
...
Anonymous enums still creates script constants.
Also add a check to see if name used for enum is already defined.
2018-11-11 01:42:20 -02:00
Rémi Verschelde
c02cd5139f
Merge pull request #23490 from Faless/lws_client_memfix
...
Fix access to freed mem in WS client after #23241
2018-11-10 22:18:42 +01:00
Rémi Verschelde
87d27e1250
Merge pull request #23639 from neikeq/gg
...
Fix GDScript placeholder fallback
2018-11-10 21:33:19 +01:00
Ignacio Etcheverry
7c4c646749
Fix GDScript placeholder fallback
2018-11-10 20:06:17 +01:00
Naoto Kondo
3feabd6756
PluginScript: Add support for the new() method
2018-11-10 17:28:30 +09:00
Ignacio Etcheverry
43e3582058
Merge pull request #23505 from zorbathut/zorbathut/updateproject
...
Add option for automatic project updating.
2018-11-08 18:06:24 +01:00
Ignacio Etcheverry
9fa1e0b415
Merge pull request #23595 from neikeq/ff
...
Fix assertion fail when loading assembly on project export
2018-11-08 17:10:23 +01:00
Ignacio Etcheverry
0f3fc93070
Fix assertion fail when loading assembly on project export
2018-11-08 16:47:15 +01:00
Juan Linietsky
f2e54057ae
-Moved EditorDefaultValue to ClassDB, made it core
...
-Removed one and zero hints for properties, replaced by default value
2018-11-08 11:30:59 -03:00
Ignacio Etcheverry
6d7dc9d98b
Merge pull request #23583 from neikeq/ee
...
Improve the C# API projects generation
2018-11-08 01:52:27 +01:00
Ignacio Etcheverry
02d5ff4cd0
Improve the C# API projects generation
...
- Now there is only one solution that contains both GodotSharp and GodotSharpEditor project. Previously we had one solution for each project
- GodotSharpEditor reference GodotShatp with a 'ProjectReference'. Previously it was a 'Reference' to the assembly
- This also simplifies the command line option to generate this solution: 'godot --generate-cs-api <OutputDir>'
2018-11-08 01:05:22 +01:00
Rémi Verschelde
1e6537bcc8
Merge pull request #23537 from fire/visualscript-virtual-_function-crash-23536
...
Fix creating a visual script virtual function after minimizing crashes #23536 and misc vs warning
2018-11-06 22:13:19 +01:00
Rémi Verschelde
8f39b36a1a
Merge pull request #23535 from fire/empty-script-interface-tscn-23495
...
Fix empty script interface crash on tscn load. #23495
2018-11-06 20:29:35 +01:00
K. S. Ernest (iFire) Lee
ef78181073
Fix empty script interface crash on tscn load.
...
Add fail conditions to protect the visual script function and also fix the initiating cause.
2018-11-06 11:11:23 -08:00
Kanabenki
30d473689c
Add missing flag for exported enum
2018-11-06 10:00:56 +01:00
K. S. Ernest (iFire) Lee
34d1cea6b8
On virtual method creation cancel don't do anything.
2018-11-05 14:13:30 -08:00
Ryan Schmitt
366c7e0f48
Fix false error when exporting enum in c#
2018-11-05 01:22:15 -08:00
Rémi Verschelde
118c78372e
Merge pull request #23523 from akien-mga/docs-https-latest
...
doc: Use HTTPS for docs.godotengine.org and point to latest branch
2018-11-05 09:39:20 +01:00
Rémi Verschelde
fcd761e889
Merge pull request #23519 from Rubonnek/remove-unnecessary-assignments
...
Removed unnecessary assignments
2018-11-05 09:05:03 +01:00
Rémi Verschelde
5f8af252e8
doc: Use HTTPS for docs.godotengine.org and point to latest branch
...
Fixes #23509 .
2018-11-05 08:46:27 +01:00
Wilson E. Alvarez
71df4caf8f
Removed unnecessary assignments
2018-11-04 22:19:30 -05:00
Ben Rog-Wilhelm
ff6588569b
Add option for automatic project updating.
2018-11-04 09:55:42 -08:00
Fabio Alessandrelli
e3008b71c3
Fix access to freed mem in WS client after #23241
...
I was wrong in assuming that String had to survive long enough to avoid
it, what actually needed to survive was the CharString obtained from the
acsii() or utf8() function.
At least according to valgrind
2018-11-03 23:39:15 +01:00
Fabio Alessandrelli
f17d83e758
Fix UWP build.
...
Add missing os_uwp.cpp include for VisualServerWrapMT.
Add global env forced include to fix freetype in UWP.
2018-11-03 17:19:44 +01:00
Rémi Verschelde
eed56bce14
Merge pull request #23404 from YeldhamDev/gdscript_log_methods
...
Add new "push_*()" functions to GDScript
2018-11-02 11:06:40 +01:00
Juan Linietsky
b9dd095275
Fix CSG shape generation with meshes without indices, fixes #23364
2018-11-01 15:19:47 -03:00
Michael Alexsander Silva Dias
92342690f7
Rename "Log*()" functions to "Push*()" in C#
2018-10-31 15:40:38 -03:00
Michael Alexsander Silva Dias
1ca61a35d8
Add new "push_*()" functions to GDScript
2018-10-31 15:40:19 -03:00
Rémi Verschelde
45154be35f
Merge pull request #23337 from RandomShaper/fix-autocomplete-crash
...
Fix GDScript assuming awareness of whole ClassDB
2018-10-31 10:36:25 +01:00
Rémi Verschelde
4fb35520fb
Merge pull request #23345 from zorbathut/brogwilhelm/logfunctions/cs
...
Add new log functions for C#.
2018-10-29 23:41:37 +01:00
Rémi Verschelde
5e999414d3
Merge pull request #23355 from buresu/fix-gdnative-loading-on-mac
...
GDNative: Fixes a library path problem after exporting app for OSX
2018-10-29 10:38:55 +01:00
Rémi Verschelde
f7b6d41fe7
Merge pull request #23353 from Chaosus/update_vscript_theme
...
Updates visualscript editor when theme is changed
2018-10-29 10:34:45 +01:00
Rémi Verschelde
019760d611
Merge pull request #23276 from lupoDharkael/gdn-api
...
Update GDNative API
2018-10-29 10:01:07 +01:00
Naoto Kondo
63cba9ba62
GDNative: Fixes a problem that active_library_path is wrong after exporting app for mac
2018-10-28 23:57:51 +09:00
Chaosus
45fe9f1845
Updates visualscript editor when theme is changed
2018-10-28 16:14:14 +03:00
Pedro J. Estébanez
7095a71c02
Fix GDScript assuming awareness of whole ClassDB
2018-10-28 03:07:35 +01:00
Pedro J. Estébanez
f39ea99c08
Unify ClassDB lookups for code completion
2018-10-28 03:07:34 +01:00
Ignacio Etcheverry
2cf02f302f
Fix C# parsing the full name of base types
...
Previously it would fail if the type name included its namespace.
2018-10-28 01:31:27 +02:00
lupoDharkael
2380f320e0
Update GDNantive API
...
Add missing Rect2 methods to GDNative API
Add missing Quat methods to GDNative API
Add missing NodePath methods to GDNative API
Add missing String methods to GDNative API
Add missing Array methods to GDNative API
Add missing Basis methods to GDNative API
Add missing Color methods to GDNative API
Update gdnative_api.json
2018-10-26 17:25:57 +02:00
Ben Rog-Wilhelm
f2476f8a7c
Add new log functions for C#.
2018-10-25 20:32:50 -07:00
Rémi Verschelde
aa6876df50
Merge pull request #23212 from YeldhamDev/menubar_consistency
...
Fix inconsistences in some buttons in the Canvas/Spatial editor menubar
2018-10-25 18:44:01 +02:00
Ignacio Etcheverry
d47cec43f2
Merge pull request #23162 from neikeq/cc
...
Proper support for namespaces and other enhancement/fixes
2018-10-25 18:18:40 +02:00
Ignacio Etcheverry
1aac95a737
Parse C# script namespace and class
...
- Added a very simple parser that can extract the namespace and class name of a C# script.
2018-10-25 18:00:24 +02:00
Ignacio Etcheverry
c6e2873605
Fix msvc warnings in mono module
...
- `modules\mono\csharp_script.cpp(576): warning C4099: 'CSharpScriptDepSort': type name first seen using 'class' now seen using 'struct'`
- `modules\mono\signal_awaiter_utils.cpp(144): warning C4003: not enough actual parameters for macro 'ERR_FAIL_V'`
- `modules\mono\editor\net_solution.cpp(101): warning C4129: '%': unrecognized character escape sequence`
- (several) `modules\mono\glue\cs_compressed.gen.h(222): warning C4129: 'E': unrecognized character escape sequence`
2018-10-25 18:00:24 +02:00
Ignacio Etcheverry
92af2e620b
Do not generate API project GUIDs randomly
2018-10-25 18:00:24 +02:00
Ignacio Etcheverry
611a476224
Support globs in csproj includes
2018-10-25 18:00:17 +02:00
Ignacio Etcheverry
b42f7b7fae
C#: Fix crash when disposing Reference on domain finalize
2018-10-25 17:21:42 +02:00
Michael Alexsander Silva Dias
46d02bade4
Fix inconsistences in some buttons in the Canvas/Spatial editor menubar
2018-10-25 12:15:39 -03:00
Rémi Verschelde
7a42df3626
doc: Sync with current source
2018-10-25 15:14:47 +02:00
Rémi Verschelde
1169196f04
Merge pull request #22779 from Superwaitsum/LimitSettings
...
Limit several project settings
2018-10-25 11:38:06 +02:00
Rémi Verschelde
220f50e790
Merge pull request #23240 from kubecz3k/complete-getters
...
Optional getters/setters editor autocomplete
2018-10-25 10:47:33 +02:00
Superwaitsum
e5041ad0f5
Add some limits on the Editor Settings
2018-10-24 19:46:33 -05:00
Rémi Verschelde
d2eabd826b
Merge pull request #22701 from swenner/fix-21867-jpeg-is-rgb
...
load JPG images as rbg instead of rgba, fixes #21867
2018-10-24 20:03:39 +02:00