Commit graph

7143 commits

Author SHA1 Message Date
Fabio Alessandrelli
5f681d0b0f Allow non blocking UDP put_packet in C++.
- Add blocking mode option to PacketPeerUDP.
- put_packet returns ERR_UNAVAILABLE when operation would block.
- ENet module uses non-blocking UDP.
2017-03-24 02:30:11 +01:00
Fabio Alessandrelli
38d457170a Update ENet module to support custom ENet lib
Keep compatibility with upstream enet libraries
2017-03-24 02:30:05 +01:00
Juan Linietsky
efaeebab4d Several fixes to Android exporter and port.
Android seems to be working again!
2017-03-23 20:14:12 -03:00
Bojidar Marinov
18ab88b3f1
Make inline blocks in GDScript more pythonic
Fixes #8001
2017-03-23 20:07:02 +02:00
Ferenc Arn
6bb9b58b09 Explicitly documented that Transform.basis is not necessarily an orthogonal matrix.
Also added a check that in axis-angle rotations, axis is a normalized vector, and modified the docs accordingly.

Fixes #8113.
2017-03-23 12:27:00 -05:00
Pedro J. Estébanez
f5004b78d0 Implement warped mouse panning for 2D & 3D editors
Enabled by default as in Blender, but can be disabled separately for 2D & 3D;
the core functionality is in Input so this could be reused or even exposed to scripts in the future
2017-03-22 21:36:52 +01:00
Juan Linietsky
c37fad650f Export working (for linux at least) 2017-03-21 19:34:26 -03:00
Bojidar Marinov
927d15b815
Suppress error messages when using ConfigFile::get_value and a default is given
Fixes #8097
2017-03-21 19:56:54 +02:00
Juan Linietsky
b5a06cecff Export template management dialog.
Missing download (need to discuss this!)
2017-03-21 08:42:06 -03:00
Rémi Verschelde
33a2c5def0 Merge pull request #8095 from RandomShaper/fix-yield-crash
Fix random crashes when using yield()
2017-03-21 11:07:07 +01:00
Pedro J. Estébanez
0664a9ef8e Fix random crashes when using yield() 2017-03-21 02:53:06 +01:00
AlexHolly
636963b11d is_active to is_paused
rm doc
2017-03-19 22:29:20 +01:00
Rémi Verschelde
9061d6f8ce Merge pull request #8076 from akien-mga/travis-clang-format
Travis: Add clang-format test to ensure code quality
2017-03-19 16:10:12 +01:00
Rémi Verschelde
6aee289b3e Travis: Run clang-format static check
Commits or PRs that do not respect the clang-format style that we
enforce will fail the test.

Adding ubuntu-toolchain-r-test as its libstdc++ is necessary to install
libllvm-3.9.
2017-03-19 15:26:29 +01:00
Rémi Verschelde
26c6c2b01a Fix linking order for builtin freetype
Before this change the libfreetype_builtin.a lib would be appended
at the very end of the linking flags, after system libs such as -lX11
or -lkernel32.
2017-03-19 15:19:31 +01:00
Rémi Verschelde
6e476f8733 Merge pull request #8074 from Hinsbart/bind_parse_ev_3
Input: bind parse_input_event()
2017-03-19 10:00:08 +01:00
Andreas Haas
a69e449782
Input: bind parse_input_event()
When using get_tree().input_event(ev), the engine will JUST send the event down the SceneTree.
However, you won't get any of the benefits of the Input singleton:
- No InputMap actions will be emitted
- The internal input state won't be modified, so methods like `Input.get_mouse_pos()` or `Input.is_joy_button_pressed` won't return the expected output after sending the event.

This is fixed by using `Input.parse_input_event(ev)` instead.
I guess we'll also have to update the docs to reflect that this is the preferred method of sending custom InputEvents.
2017-03-19 09:20:44 +01:00
Rémi Verschelde
7eb8a67025 Merge pull request #8067 from Hinsbart/fix_ps_cross
InputMap: Rename joypad button "PS X" to "PS Cross".
2017-03-18 14:52:55 +01:00
Rémi Verschelde
b1f22fe756 Merge pull request #8066 from Hinsbart/fix_x11_cursor
X11: Don't reset mouse cursor theme.
2017-03-18 14:52:44 +01:00
Rémi Verschelde
00c4782910 Merge pull request #8051 from RayKoopa/resizable_new_node_dialog
Make Create New Node dialog resizable and burninate old dialog
2017-03-18 14:52:34 +01:00
Andreas Haas
f6a504fad4
InputMap: Rename joypad button "PS X" to "PS Cross". 2017-03-18 12:31:37 +01:00
Andreas Haas
fc84ccc468
X11: Don't reset mouse cursor theme.
On KDE (and possibly others) the "default" cursor theme is actually some system default, not the one you've set in the desktop setting.
This was especially annoying when using a white cursor, as Godot would then reset back to a dark one.
In my case it was also keeping the cursor from changing its shape.
2017-03-18 12:13:14 +01:00
Ray Koopa
c0c4ba4e94 Make Create New Node dialog resizable and burninate old dialog 2017-03-18 11:21:50 +01:00
Rémi Verschelde
f6715ac9cb Merge pull request #8063 from Hinsbart/about_diag
Editor: Fix "About" dialog
2017-03-18 11:00:25 +01:00
Rémi Verschelde
f3dbd9e792 Merge pull request #8042 from eska014/webgl2
Some WebGL 2 and build fixes/clean-up
2017-03-18 10:50:04 +01:00
Rémi Verschelde
14c01dfea7 Merge pull request #8037 from RandomShaper/remove-warning
Remove warning on owner re-assignment
2017-03-18 10:49:06 +01:00
Rémi Verschelde
60bdc37056 Merge pull request #8035 from DenisComtesse/android-screentouch-fix
Update mouse position on touch and release events (Android)
2017-03-18 10:48:26 +01:00
Rémi Verschelde
e55b7fa7d0 Merge pull request #8030 from RandomShaper/fix-redundant-connections
Fix redundant connections saved in sub-inheritance
2017-03-18 10:45:29 +01:00
Rémi Verschelde
3cf4103a89 Merge pull request #8023 from CrazyGuy108/master
List Control::has_point as a virtual method
2017-03-18 10:36:55 +01:00
Rémi Verschelde
5b6900ed9b Merge pull request #8014 from AlexHolly/fix-remove-and-skip
fix remove_and_skip()
2017-03-18 10:32:14 +01:00
Ramesh Mani Maran
27c7d253aa android: adding classpath and gradle plugins 2017-03-18 10:27:30 +01:00
Rémi Verschelde
111d3e8063 Merge pull request #7953 from RameshRavone/patch-1
support for multiple maven url
2017-03-18 10:25:49 +01:00
Andreas Haas
7ec697695f
Editor: Fix "About" dialog
Use a HBoxContainer instead of hardcoded positions.
2017-03-18 01:53:45 +01:00
Andreas Haas
bc547bbf36 Merge pull request #8062 from magyar123/master
Fixed typo in gdscript autocompletion.
2017-03-18 00:05:28 +01:00
mbalint12
edaf77abd6 Fixed typo in gdscript autocompletion.
There was a missing '!' sign, but autocompletion shows parent script members too.
2017-03-17 23:27:44 +01:00
eska
12dd86bba0 Some WebGL 2 and build fixes/clean-up 2017-03-17 15:56:48 +01:00
Rémi Verschelde
3ceefab232 Merge pull request #8020 from karroffel/class-db-inconsistency
fixed ClassDB inconsistencies
2017-03-15 19:09:43 +01:00
denis
55835167a4 Update mouse position on touch and release events (Android) 2017-03-15 17:41:21 +01:00
Pedro J. Estébanez
e3b4b7fa98 Remove warning on owner re-assignment 2017-03-15 12:28:57 +01:00
Pedro J. Estébanez
3b36df3730 Fix redundant connections saved in sub-inheritance 2017-03-15 11:46:45 +01:00
CrazyGuy108
9589936d6e
List Control::has_point as a virtual method
According to Issue #8018, a BIND_VMETHOD macro wasn't present in scene/gui/control.cpp, while it was declared to be a virtual method in scene/gui/control.h.

classes.xml was updated to also list this method in Control.
2017-03-14 19:08:13 -07:00
Juan Linietsky
af020160c6 more html5 fixes 2017-03-14 10:53:46 -03:00
Karroffel
6ab3213a55 fixed ClassDB inconsistencies
fixes #7960
2017-03-13 21:17:31 +01:00
Rémi Verschelde
52ddd9ac9c Merge pull request #8017 from volzhs/fix-dnd-2d-viewport
Fix drag and drop on 2d viewport
2017-03-13 16:25:07 +01:00
Rémi Verschelde
bde0c2e03e Merge pull request #8019 from Hinsbart/dim_fix
WindowDialog: Fix crash when running as ProjectManager
2017-03-13 16:14:04 +01:00
Andreas Haas
a2776af672
WindowDialog: Fix crash when running as ProjectManager
Fixes a bug introduced in #7970
2017-03-13 16:05:18 +01:00
volzhs
4d0a75750f Fix drag and drop on 2d viewport 2017-03-13 19:35:27 +09:00
Rémi Verschelde
af550e2f98 Merge pull request #8015 from RandomShaper/optimize-assert
Skip asserts on non-debug builds at compiler level
2017-03-13 11:08:44 +01:00
Rémi Verschelde
26c12ded24 Merge pull request #8011 from neikeq/pr-issue-6602-1
Fix connection errors when replacing node
2017-03-13 11:05:32 +01:00
Rémi Verschelde
b19b8f72e8 Merge pull request #8009 from Calinou/directional_shadow_interpolation
Improve directional shadow filtering by using linear interpolation
2017-03-13 11:03:45 +01:00