Rémi Verschelde
df79cc86a5
Merge pull request #18119 from sheepandshepherd/nativescript_property_list
...
Fix NativeScript property list order
2018-04-19 21:37:46 +02:00
Rémi Verschelde
bf7ca623a6
Fix Coverity reports of uninitialized scalar variable
...
Fixes most current reports on Coverity Scan of uninitialized scalar
variable (CWE-457): https://cwe.mitre.org/data/definitions/457.html
These happen most of the time (in our code) when instanciating structs
without a constructor (or with an incomplete one), and later returning
the instance. This is sometimes intended though, as some parameters are
only used in some situations and should not be double-initialized for
performance reasons (e.g. `constant` in ShaderLanguage::Token).
2018-04-19 15:20:45 +02:00
Rémi Verschelde
3018132244
Merge pull request #18204 from tagcup/quat_scale
...
Avoid converting Quat to Euler angles when not necessary.
2018-04-18 13:55:35 +02:00
Rémi Verschelde
952f7d71aa
Merge pull request #18142 from AndreaCatania/coverity1
...
Removed useless check
2018-04-18 12:49:47 +02:00
Xavier Cho
6b611e6431
#18051 : Fix indentation issues introduced during clean up
2018-04-17 07:53:27 +09:00
Xavier Cho
e59fad3924
#18051 : Do not use var
in a for-loop, or where type is not obvious
2018-04-17 07:39:37 +09:00
Xavier Cho
94edd92248
#18051 : Use common name for Color type argument
2018-04-17 07:39:37 +09:00
Xavier Cho
f0bf5532fa
#18051 : Remove redundant verbatim prefixes
2018-04-17 07:39:37 +09:00
Xavier Cho
85787776a5
#18051 : Use default parameter value
2018-04-17 07:39:37 +09:00
Xavier Cho
b765c051cb
#18051 : Use array initializer when applicable
2018-04-17 07:39:37 +09:00
Xavier Cho
9097c71255
#18051 : Remove redundant parenthesis
2018-04-17 07:39:37 +09:00
Xavier Cho
93dd59d763
#18051 : Remove unnecessary variable assignments
2018-04-17 07:39:37 +09:00
Xavier Cho
fdfc478c88
#18051 : Use 'var' when applicable
2018-04-17 07:39:37 +09:00
Xavier Cho
0ef3e0577b
#18051 : Remove redundant casts and 'using', 'else', 'this' statements
2018-04-17 07:39:37 +09:00
Xavier Cho
9e2e6bb1e2
Remove duplicated declaration of RoundToInt() from Mathf
2018-04-17 07:39:37 +09:00
Will Vincent
b6b8c7b215
Remove incorrect & potentially confusing references to Euler
...
e is referred to as Euler’s number, so technically the MATH_EXP description in VisualScript doc was not incorrect, though could potentially lead to confusion.
e is different from Euler’s constant however, making the existing GDScript exp & VisualScriptMathConstant descriptions nvalid.
2018-04-15 11:40:31 -05:00
tagcup
a5e0bb447c
Avoid converting Quat to Euler angles when not necessary.
...
Also ensure that get_scale doesn't arbitrarlity change the signs of scales, ensuring that the combination of get_rotation and get_scale gives the correct basis.
Added various missing functions and constructors.
Should close #17968 .
2018-04-14 15:53:25 -04:00
Fabio Alessandrelli
eac2863c25
Merge pull request #18154 from mhilbrunner/issue-12512
...
Add DNS resolution in NetworkedMultiplayerEnet::create_client()
2018-04-13 23:09:17 +02:00
mhilbrunner
b0826dec05
Add DNS resolution in NetworkedMultiplayerEnet::create_client()
2018-04-13 22:31:01 +02:00
Ignacio Etcheverry
e3590a2522
Merge pull request #18038 from Chaosus/mathf
...
[Mono] Improvements for Mathf
2018-04-13 22:22:28 +02:00
Chaosus
655a4e6540
[Mono] Improve Mathf
2018-04-13 20:15:49 +03:00
Pedro J. Estébanez
00e98458ba
Revert "Unify http- and percent- encode/decode"
...
This reverts commit b76ee30917
.
2018-04-12 21:12:34 +02:00
Fabio Alessandrelli
6b9ec810c6
Implement get_peer_[address|port] in ENet/WSServer
...
Also implement get_connected_host and get_connected_port in WebSocketPeer
(not supported in HTML5 due to browser limitation).
Add shorthand disconnect_peer(id) for get_peer(id)->close() like in ENet to
WebSocketServer.
2018-04-12 12:30:51 +02:00
Andrea Catania
2cfa861222
Removed useless check
2018-04-12 11:37:36 +02:00
Andrea Catania
df2a626b49
Fixed wrong function call
2018-04-12 11:02:43 +02:00
Andrea Catania
f0abdf06ad
Rigidbody wake up when hitten by a kinematic body
2018-04-12 07:59:12 +02:00
sheepandshepherd
bc110b3771
Fix NativeScript property list
2018-04-11 09:43:07 +02:00
Fabio Alessandrelli
a522bb1106
Merge pull request #18070 from mhilbrunner/godot-net-kick
...
NetworkedMultiplayerEnet: Add disconnecting/kicking peers
2018-04-10 21:06:21 +02:00
mhilbrunner
c531287328
NetworkedMultiplayerEnet: Add disconnecting/kicking peers
2018-04-10 19:00:05 +02:00
Rémi Verschelde
cb7fe2c793
doc: Sync classref with current source
2018-04-10 10:12:42 +02:00
Rémi Verschelde
e15f2636ea
Merge pull request #18081 from AndreaCatania/arcle
...
Corrected area overlap cleaning
2018-04-09 22:04:25 +02:00
Rémi Verschelde
36552c2c90
Merge pull request #18040 from Paulb23/color_region_cache
...
Fixed colour regions and added local colour region cache
2018-04-09 16:05:26 +02:00
Andrea Catania
45b778c7f8
Fixed area overlap cleaning
2018-04-09 09:33:29 +02:00
Ignacio Etcheverry
ea0e73f3c8
Merge pull request #17864 from NikodemL/fix_mono_bottom_panel_issue_activated
...
Fixed mono bottom panel to select the correct file when messages are filtered
2018-04-09 09:15:43 +02:00
Juan Linietsky
34e367597d
Merge pull request #16556 from aragar/master
...
For-in loop variable added to autocompletion
2018-04-08 17:25:01 -03:00
Juan Linietsky
cd7e9d9642
Merge pull request #17583 from RandomShaper/enhance-uri-utils
...
Enhance uri utils
2018-04-07 17:07:29 -03:00
Juan Linietsky
187b14ae24
Merge pull request #17730 from RandomShaper/radio-buttons-in-menus
...
Radio buttons in menus
2018-04-07 16:41:39 -03:00
Paulb23
b571a29df5
Fixed color regions and added local color region cache
2018-04-07 14:14:19 +01:00
Emmanuel Leblond
adecd6f66f
Correct profiling_frame naming in pluginscript
2018-04-07 00:11:26 +02:00
Emmanuel Leblond
e97336a557
Fix Pluginscript add_global_constant mandatory value check
2018-04-06 19:20:12 +02:00
Rémi Verschelde
bdfa10fc8f
Merge pull request #17899 from AndreaCatania/area_cleaning
...
Fixed physics server area cleaning
2018-04-06 08:15:22 +02:00
Andrea Catania
776942981b
Fixed physics server area cleaning
2018-04-06 07:48:30 +02:00
karroffel
2e1f239fe6
[NativeScript] replace error macros by simple returns
2018-04-06 01:40:26 +02:00
Thomas Herzog
eaa5dfbdbd
Merge pull request #17980 from karroffel/nativescript-1.1-global-type-tags
...
[NativeScript] added global type tag system
2018-04-05 15:09:35 +02:00
Rémi Verschelde
e1b9c98032
Merge pull request #17806 from Zylann/fix_heightmap_shape_size_check
...
Make heightmap shape usable in PhysicsServer
2018-04-05 13:29:57 +02:00
karroffel
ad93d3e277
[NativeScript] added global type tag system
2018-04-05 00:06:33 +02:00
Paulb23
63c8d0f455
Renamed GDSyntaxHighlighter to GDScriptSyntaxHighlighter
2018-04-04 20:02:42 +01:00
Thomas Herzog
7ca2e73dea
Merge pull request #17965 from karroffel/gdnativelib-config-api
...
[GDNative] some GDNativeLibrary improvements
2018-04-04 16:09:37 +02:00
karroffel
f29139f3cf
[GDNative] enable saving GDNativeLibrary as sub resource
2018-04-04 13:07:43 +02:00
karroffel
57c0339d9f
[GDNative] easier GDNativeLib handling
2018-04-04 12:24:10 +02:00
Andrea Catania
444b8471a3
Corrected physics query max result checking
2018-04-04 11:55:58 +02:00
Rémi Verschelde
e1fef9bd76
Merge pull request #17959 from AndreaCatania/kinfix2
...
Fixed kinematic sliding on trimesh
2018-04-04 11:21:49 +02:00
Andrea Catania
b050525072
Fixed kinematic sliding on trimesh
2018-04-04 10:49:10 +02:00
Rémi Verschelde
5ede505f14
Merge pull request #17923 from Paulb23/add_abstract_syntax_highlighter
...
Abstracted the syntax highlighter from text edit.
2018-04-04 09:50:51 +02:00
Rémi Verschelde
1710582473
Merge pull request #17847 from Faless/lws_update
...
LWS v2.4.2, mbedTLS v2.8.0, Websocket SSL support
2018-04-03 23:14:01 +02:00
Rémi Verschelde
82c26f74ad
Merge pull request #17865 from delftswa2018/enumLookupFix
...
Ctrl+Clicking a enum now scrolls down to it in the docs.
2018-04-03 22:43:07 +02:00
Rémi Verschelde
a7dd698d4d
Merge pull request #17900 from AndreaCatania/area_mon
...
physics area added monitorable check
2018-04-03 22:09:56 +02:00
Felix Yang
7d5a40c3e6
Ctrl+Clicking a enum now scrolls down to it in the docs.
2018-04-03 21:56:54 +02:00
Rémi Verschelde
95b499644e
Merge pull request #17834 from Rubonnek/move-to-initializer-list
...
Move GodotSharp and MonoBuildTab member variables to initializer list
2018-04-03 21:01:58 +02:00
Fabio Alessandrelli
2e078142a0
Websocket client SSL support
2018-04-03 20:13:57 +02:00
Fabio Alessandrelli
490dd9f946
Generalize SSL cert reading from file
2018-04-03 20:13:57 +02:00
Rémi Verschelde
fa9104204f
Merge pull request #17940 from Alexander-Alekseev/mono_keep_csharp6
...
[mono] Fixes #17936 as GodotSharp (Core\Basic.cs) requires C#7 now
2018-04-03 12:55:34 +02:00
Rémi Verschelde
cc8c757929
Merge pull request #17933 from Rubonnek/comment-debugging-messages
...
Comment out some debugging messages when playing Theora files
2018-04-03 12:44:26 +02:00
Alexander Alekseev
5677aed175
[mono] Fixes #17936 as GodotSharp (Core\Basic.cs) requires C#7 now, but we most probably should keep C#6 yet
2018-04-03 09:48:03 +03:00
Wilson E. Alvarez
9590282ae8
Comment out some debugging messages when playing Theora files
2018-04-02 16:48:06 -04:00
Paulb23
f7c727e6c3
Abstracted the syntax highlighter from text edit
2018-04-02 12:41:44 +01:00
Alexander Alekseev
b569251110
Fix of a possible memory leak: ConcavePolygonShapeBullet::setup was able to exit without releasing the 'shapeInterface' pointer.
2018-04-02 09:29:34 +03:00
Andrea Catania
fe768f4f00
physics area added monitorable check
2018-04-01 11:27:18 +02:00
Thomas Herzog
098c7ba4f9
Merge pull request #17878 from karroffel/nativescript-1.1-bughunt
...
[GDNative] fixed issue with library unloading order and header update
2018-03-31 11:41:09 +02:00
karroffel
0b92aded23
[GDNative] fixed issue with library unloading order
2018-03-31 01:45:18 +02:00
karroffel
ce36ecda4c
[GDNative] added GDCALLINGCONV to instance binding functions
2018-03-31 01:44:50 +02:00
Ignacio Etcheverry
d2eb731878
Merge pull request #17772 from Chaosus/monowrap
...
Add wrap functions to C#
2018-03-31 00:12:16 +02:00
Nikodem Lokatelj
4fdee1d9f1
Fixed _issue_activated to take the correct issue id from the list
2018-03-30 16:32:14 +02:00
Marc Gilleron
a66e1af168
Make heightmap shape usable from PhysicsServer
...
- Fixed bad size check
- Fixed bad member initialization
- Removed unused cell_size (Bullet expects us to use localScaling)
- Accept precomputed min/max height, will be calculated if not provided
2018-03-28 20:33:51 +02:00
Fabio Alessandrelli
e7b9e2f970
Fix IPhone and OSX cross compilation
2018-03-28 19:08:20 +02:00
Wilson E. Alvarez
3f86fefb64
Move GodotSharp and MonoBuildTab member variables to initializer list
2018-03-27 21:14:52 -04:00
Pedro J. Estébanez
a6dc160d5c
Use radio-button-like menu entries where applicable
2018-03-27 19:19:45 +02:00
Pedro J. Estébanez
b76ee30917
Unify http- and percent- encode/decode
...
There was a percent-prefixed version, which was exposed, and a http-prefixed version which was not (only to GDNative).
This commit keeps the percent-prefixed versions, but with the http-prefixed implementations.
2018-03-27 19:18:30 +02:00
Chaosus
d52722c6da
Added wrap functions to C#
2018-03-26 14:33:09 +03:00
Carter Anderson
91f271fa9e
Fix mono basis GetEuler bug and marshalling/unmarshalling
2018-03-24 13:45:11 -07:00
Ignacio Etcheverry
a8d8c06753
Merge pull request #17134 from aaronfranke/master
...
[Mono] Replace float with real_t, other misc C# improvements
2018-03-24 21:10:41 +01:00
Aaron Franke
ff97c97c93
Replace float with real_t, default Vectors, other misc C# improvements
...
Replace float with real_t in most files, defined at the top of each file via using. Objects such as Vector3 now accept doubles as inputs, and convert to real_t internally. I've added default Vectors such as Vector3.Zero. Other misc C# improvements such as Mathf.RoundToInt(). Color continues to use float only because high precision is not needed for 8-bit color math and to keep things simple. Everything seems to compile and work fine, but testing is requested, as this is the first time I've ever contributed to Godot.
2018-03-22 21:53:21 -05:00
Poommetee Ketson
ff070de986
s/2017/2018/g for gles2, websocket, linux appdata
2018-03-21 16:07:51 +07:00
PJB3005
6a7f552c6f
Fix mono build properly!
...
Fixes the mistake I made in #17603 to make it require Python > 3.6.
2018-03-19 16:36:03 +01:00
Rémi Verschelde
4f97d5a7e2
Merge pull request #17603 from PJB3005/18-03-18-fix-mono-build-python3
...
Fix Mono builds with Python 3.
2018-03-19 09:53:23 +01:00
Ignacio Etcheverry
883afd1b4d
Merge pull request #17619 from neikeq/mono-runtime-main-args
...
Mono: Runtime main args and assembly search fixes
2018-03-18 23:16:44 +01:00
Ignacio Etcheverry
fa1d656af4
Mono: Runtime main args and assembly search fixes
...
- Setup runtime main args during initialization. This must be done manually by embedders who do not call mono_runtime_run_main. Fixes NullReferenceException in System.Environment.
- Continue to search the assembly in the rest of the search locations if loading it from one of them failed.
2018-03-18 23:07:04 +01:00
Pieter-Jan Briers
998f1977a8
Fix Mono builds with Python 3.
...
A subprocess call wasn't specifying an encoding,
so this gave a TypeError in Python 3.
2018-03-18 10:51:35 +01:00
Ignacio Etcheverry
389ad72399
Merge pull request #17179 from paulloz/mono-assemblies-preload-facades
...
[mono] add the 'Facades' subfolder to the searched directories
2018-03-16 21:40:42 +01:00
Geoffrey
09c887f38e
Implemented interface for bullet joint motors
2018-03-16 13:37:15 +01:00
Hein-Pieter van Braam
aed2fedd16
Merge pull request #17291 from Warlaan/master
...
completed-signal for coroutines with more than one yield
2018-03-15 23:11:37 +01:00
Rémi Verschelde
99c1323a08
Merge pull request #17388 from Hinsbart/mono_class_name
...
Mono: Avoid invalid class names.
2018-03-15 19:47:39 +01:00
Andreas Haas
700d07cf7c
Mono: Avoid invalid class names.
...
Disallow reserved keywords as class names and prefix base class with the Godot
namespace if it's the same as the class name.
Fixes #12483
2018-03-15 19:25:06 +01:00
Rémi Verschelde
d2f929304b
Merge pull request #17529 from Noshyaar/patch-1
...
Fix script template on `_ready` behavior
2018-03-15 14:05:23 +01:00
Poommetee Ketson
01ec06d9ae
Fix script template on _ready
behavior
2018-03-15 18:38:53 +07:00
Lars Kokemohr
3dfef37628
completed-signal is emitted by all GDScriptFunctionStates of a coroutine now, allowing to yield for completion of a function with more than one yield inside.
2018-03-14 16:42:13 +01:00
Wilson E. Alvarez
e5ae9750ed
Fixed leak in BulletPhysicsServer
2018-03-13 15:24:30 -04:00
Ignacio Etcheverry
d6c802f3ae
Merge pull request #17235 from paulloz/mono-glue-enhancements
...
[Mono] change function names to PascalCase and set abstract classes as abstract
2018-03-13 17:00:28 +01:00
Max Hilbrunner
ec3f5218e8
[DOCS] Net.MultiplayerEnet: List returned errors
2018-03-13 15:55:52 +01:00
Rémi Verschelde
ab03574e4a
Merge pull request #17079 from Noshyaar/leak2
...
GridMapEditorPlgn: fix a leak
2018-03-13 13:44:48 +01:00