Ariel Manzur
5546929712
added implementation of is_valid_ip_address()
...
(cherry picked from commit a3131a6b5b
)
2016-12-11 12:35:06 +01:00
Ariel Manzur
d8b0070b8c
added windows support for ipv6, cleaned up unix code
...
(cherry picked from commit 672225b710
)
2016-12-11 12:35:06 +01:00
Ariel Manzur
904285f4b4
address type for http client
...
(cherry picked from commit 1c2ac490cf
)
2016-12-11 12:35:06 +01:00
Ariel Manzur
53fea7f196
fixed some byte order and parsing problems
...
(cherry picked from commit 1d45f35a4a
)
2016-12-11 12:35:06 +01:00
Ariel Manzur
fd1022fd29
adding ipv6
...
(cherry picked from commit 887a897c02
)
2016-12-11 12:35:06 +01:00
ISylvox
0413d85add
vsnc --> vsync
...
(cherry picked from commit b5c383fd61
)
2016-11-15 08:34:43 +01:00
SPTelur
51fe9fc132
Some missing License notice has been added
...
(cherry picked from commit df737ebb46
)
2016-11-15 08:34:16 +01:00
Pedro J. Estébanez
fada9d7a8e
Clean/fix triangulation internals
...
Drop unused variable
Remove commented-out code
Fix leak by using Vector instead of raw memory
(cherry picked from commit 0e1972aa51
)
2016-11-15 08:30:09 +01:00
volzhs
2b00fdc679
Fix wrong number for ERR_* on comment
...
(cherry picked from commit 42f2380190
)
2016-11-15 08:29:09 +01:00
Ariel Manzur
67f65f6639
memory ops implemented as OS functions by default
2016-11-08 19:04:56 -03:00
Rémi Verschelde
eaf803f71e
style: Various other PEP8 fixes in Python files
...
Done with `autopep8 --select=E7`, fixes:
- E701 - Put colon-separated compound statement on separate lines.
- E702 - Put semicolon-separated compound statement on separate lines.
- E703 - Put semicolon-separated compound statement on separate lines.
- E711 - Fix comparison with None.
- E712 - Fix (trivial case of) comparison with boolean.
- E713 - Fix (trivial case of) non-membership check.
- E721 - Fix various deprecated code (via lib2to3).
2016-11-02 22:30:34 +01:00
Rémi Verschelde
a7389217f8
style: Fix PEP8 blank lines issues in Python files
...
Done with `autopep8 --select=E3,W3`, fixes:
- E301 - Add missing blank line.
- E302 - Add missing 2 blank lines.
- E303 - Remove extra blank lines.
- E304 - Remove blank line following function decorator.
- E309 - Add missing blank line.
- W391 - Remove trailing blank lines.
2016-11-02 22:29:36 +01:00
Rémi Verschelde
e259bf8bbb
style: Fix PEP8 whitespace issues in Python files
...
Done with `autopep8 --select=E2,W2`, fixes:
- E201 - Remove extraneous whitespace.
- E202 - Remove extraneous whitespace.
- E203 - Remove extraneous whitespace.
- E211 - Remove extraneous whitespace.
- E221 - Fix extraneous whitespace around keywords.
- E222 - Fix extraneous whitespace around keywords.
- E223 - Fix extraneous whitespace around keywords.
- E224 - Remove extraneous whitespace around operator.
- E225 - Fix missing whitespace around operator.
- E226 - Fix missing whitespace around operator.
- E227 - Fix missing whitespace around operator.
- E228 - Fix missing whitespace around operator.
- E231 - Add missing whitespace.
- E231 - Fix various deprecated code (via lib2to3).
- E241 - Fix extraneous whitespace around keywords.
- E242 - Remove extraneous whitespace around operator.
- E251 - Remove whitespace around parameter '=' sign.
- E261 - Fix spacing after comment hash.
- E262 - Fix spacing after comment hash.
- E265 - Format block comments.
- E271 - Fix extraneous whitespace around keywords.
- E272 - Fix extraneous whitespace around keywords.
- E273 - Fix extraneous whitespace around keywords.
- E274 - Fix extraneous whitespace around keywords.
- W291 - Remove trailing whitespace.
- W293 - Remove trailing whitespace.
2016-11-02 22:28:28 +01:00
Rémi Verschelde
561c1f17a1
style: Start applying PEP8 to Python files, indentation issues
...
Done with `autopep8 --select=E1`, fixes:
- E101 - Reindent all lines.
- E112 - Fix under-indented comments.
- E113 - Fix over-indented comments.
- E115 - Fix under-indented comments.
- E116 - Fix over-indented comments.
- E121 - Fix a badly indented line.
- E122 - Fix a badly indented line.
- E123 - Fix a badly indented line.
- E124 - Fix a badly indented line.
- E125 - Fix indentation undistinguish from the next logical line.
- E126 - Fix a badly indented line.
- E127 - Fix a badly indented line.
- E128 - Fix a badly indented line.
- E129 - Fix a badly indented line.
2016-11-02 22:26:55 +01:00
Damon
e3be51f87c
Fix locale for macOS-style locales
...
(cherry picked from commit 1e7f078ce9
)
2016-10-31 00:04:39 +01:00
Damon Myers
68b6b50d28
Change set_locale to fallback to the global language ( #6910 )
...
(cherry picked from commit 470ead74db
)
2016-10-31 00:04:26 +01:00
volzhs
e56961f58b
Fix comparison bug with InputEvent
...
(cherry picked from commit b76a0ca40c
)
2016-10-31 00:02:04 +01:00
Rémi Verschelde
5a49e45d21
SCsub: Add python shebang as a hint for syntax highlighting
...
Also switch existing shebangs to "better" /usr/bin/env python.
(cherry picked from commit fc8ccd5b8c
)
2016-10-30 14:51:34 +01:00
Juan Linietsky
7d25d20861
Added a generic AStar implementation to Godot.
...
It's pretty fast, use it for games where Navigation does not cut it.
(cherry picked from commit 827a9aa829
)
2016-10-18 18:35:44 +02:00
Fabio Alessandrelli
ea48675ffa
Properly handle absolute paths in Globals::localize_path
...
This give a proper fix for #4280 - #3106 , allowing absolute paths
that starts from the file system, not the resource folder
(cherry picked from commit 2f2cea070e
)
2016-10-17 20:49:12 +02:00
Răzvan Cosmin Rădulescu
04255541a0
Fixes hash float negative 0 problem
...
Before this was giving an error:
var a = {Vector2(1, 0): 5, Vector2(-1, 0): 7}
print(a)
print(a[Vector2(1, 0)])
print(a[-Vector2(1, 0)])
This simple commit fixes the issue.
(cherry picked from commit 9ad0850301
)
2016-10-17 20:48:15 +02:00
Mateusz Adamczyk
ce1138cb02
Added simple check to viewport, if matrix32 is invesile ( https://github.com/godotengine/godot/issues/6296 ).
...
(cherry picked from commit 8671836b76
)
2016-10-09 17:40:37 +02:00
Răzvan Cosmin Rădulescu
97ebfddaaf
fixes #6331 , Variant::can_convert
...
(cherry picked from commit f2af5ab949
)
2016-10-09 17:34:00 +02:00
J08nY
5b942f056a
Vector3: added angle_to(Vector3 other)
...
(cherry picked from commit deb36b44d1
)
2016-10-09 17:33:36 +02:00
J08nY
44ba542de6
Vector3: format properly, fix indents
...
(cherry picked from commit f468cfc379
)
2016-10-09 17:33:30 +02:00
Pedro J. Estébanez
12d4d65668
Improve debug focus behavior
...
Fix focusing debugged game on Windows
Add re-focusing editor on continue
(cherry picked from commit 66dac878ac
)
2016-10-09 17:29:59 +02:00
Fabio Alessandrelli
56dc7aa568
Properly encode InputEvent of type NONE. Fix #5987
...
In the editor settings you can disable default editor shortcuts.
When a default shortcut is disabled an InputEvent of type NONE must
be stored in the config file to allow the editor to remember that setting.
variant_parser.cpp was not properly encoding InputEvent of type NONE causing
the "corruption" of the editor settings file.
(cherry picked from commit 941f460384
)
2016-10-09 17:29:27 +02:00
J08nY
f315d352ec
PCKPacker: moved from tools into core, fixes #4129
...
(cherry picked from commit b1fba2e013
)
2016-10-09 17:28:11 +02:00
volzhs
73e7ccabf5
Fix typo for word_wrap
...
(cherry picked from commit c333659ebc
)
2016-10-09 17:23:58 +02:00
volzhs
721599c797
Fix error when using 2 or more slashes on resource path
...
(cherry picked from commit 0866f49f4e
)
2016-10-09 17:23:53 +02:00
Andreas Haas
5adb75c2e7
Throw error when trying to emit a non-existing signal.
...
closes #6017
(cherry picked from commit 276087e92d
)
2016-10-09 17:22:08 +02:00
Andreas Haas
33223e7a8a
Add function to get readable names for joystick events
...
Closes #6476
(cherry picked from commit e0fcd9331a
)
2016-10-09 17:19:57 +02:00
anneomcl
12edde80f2
Fix for #6158 . Converting Vector2 to Size2 for scaling functions.
...
(cherry picked from commit aa5ade834c
)
2016-10-09 17:18:54 +02:00
Andreas Haas
94e5c48004
Expose Vector2::clamped() to scripts
...
Needed this and wondered that there's no built-in function for it.
So I wanted to implement it and saw that it's actually already there, just wasn't bound ^^
(cherry picked from commit c21412fa7e
)
2016-10-09 17:18:29 +02:00
Andreas Haas
e788ffff65
Fix input action pressed state not changing for quick joystick movements.
...
fixes #6488
Also removes a bunch of dead code related to checking if a joystick axis is pressed.
(cherry picked from commit 84783fe77b
)
2016-10-09 17:16:19 +02:00
supaiku
3f30a22cb0
Show object string cast instead of object id in debugger
...
(cherry picked from commit 0108e7c33a
)
2016-09-18 23:06:51 +02:00
Rémi Verschelde
48d1e8bd4e
InputEvent: Fix event comparisons when type is NONE
...
Was a regression from 2e5a4cb5ca
.
Fixes #6376 .
(cherry picked from commit eff6519aaf
)
2016-09-18 23:03:10 +02:00
Rémi Verschelde
de5f49aac5
i18n: Update list of supported locales based off glibc
...
Fixes #5733 , fixes #6214 .
(cherry picked from commit 54e97e5ee6
)
2016-09-18 23:02:14 +02:00
volzhs
265715f5b2
Show last added action on Input Map and implement InputEvent "=="
...
(cherry picked from commit 2e5a4cb5ca
)
2016-09-01 08:45:37 +02:00
caryoscelus
83864514f9
fix string iterator
...
Since strings are null-terminated, size() returns incorrect length,
so use length() instead.
fixes #6287
(cherry picked from commit 810fbb70ae
)
2016-09-01 08:44:30 +02:00
Ignacio Etcheverry
b1ea299edf
Matrix32: Add constructor that takes six real_t params
...
(cherry picked from commit 3578800230
)
2016-09-01 08:44:22 +02:00
Franklin Sobrinho
f9aeb91850
Implemented UndoRedo mergeable modes
...
(cherry picked from commit debf574df3
)
2016-09-01 08:41:04 +02:00
Franklin Sobrinho
5f9e6d2b48
Added add_property_info function to Globals and EditorSettings classes
...
(cherry picked from commit 9f242ed6e5
)
2016-09-01 08:40:49 +02:00
Juan Linietsky
58556f5f95
Fixed bug in make_dir_recursive, closes #6016
...
(cherry picked from commit df6dbadc3e
)
2016-08-08 23:45:39 +02:00
eska
03a4b8cbc8
Revert documentation of return type for FuncRef::call_func from b80c42e
...
bind_native_method doesn't support this style of return type documentation.
2016-08-08 17:49:30 +02:00
Rémi Verschelde
37ce438787
Merge pull request #5976 from allkhor/master
...
Fix String::is_valid_integer() for single symbols + and -
2016-07-31 20:07:20 +02:00
eska
b80c42ef4e
Document FuncRef, GDFunctionState, InstancePlaceholder, RID, World2D
2016-07-30 21:27:58 +02:00
allkhor
09c4d65b64
Fix String::is_valid_integer() for single symbols + and -
2016-07-31 00:18:30 +06:00
Ignacio Etcheverry
2d4c4b6ea9
Fix regression with str() improvements for math types
2016-07-28 14:58:12 +02:00
Rémi Verschelde
c6c9f29827
Merge pull request #5921 from neikeq/pr-issue-5919
...
Prettier str() for some math types
2016-07-27 17:23:17 +02:00
Ignacio Etcheverry
eefca1ada9
Prettier str() for some math types
2016-07-27 17:00:07 +02:00
Bojidar Marinov
2150855faf
Fix reading of empty StringArray-s in .tscn
...
Closes #5912
2016-07-27 17:59:42 +03:00
Juan Linietsky
9151eb591d
Changed the way the step decimals are computed to a safer way, fixes many issues.
2016-07-26 17:25:10 -03:00
Juan Linietsky
c9d0053754
Merge pull request #5524 from pkowal1982/master
...
Array has(var value) function
2016-07-24 12:21:29 -03:00
Rémi Verschelde
308d405c31
Turn some prints to error logs, remove others
...
Fixes #5876 in passing.
2016-07-24 00:02:19 +02:00
Johan Manuel
5d52146ff7
Fix warnings in core/variant_op.cpp
...
Adds default cases in switches where needed, and replaces '0;' with ';;'
in macro expansions (as suggested by @vnen in #5587 ).
2016-07-23 14:58:37 +02:00
Rémi Verschelde
c57b992774
Merge pull request #5847 from 29jm/patch-3
...
Expose virtual keyboard functions to GDScript
2016-07-22 08:39:07 +02:00
Johan Manuel
ec8c6e2c7c
Expose virtual keyboard functions to GDScript
2016-07-21 23:58:58 +02:00
Rémi Verschelde
d723e5a62f
Merge pull request #5560 from vnen/os-request-attention
...
Add OS.request_attention() for Windows
2016-07-21 17:29:45 +02:00
Juan Linietsky
79a7473cac
put text formats for resources and scenes as priority
2016-07-19 21:40:05 -03:00
Juan Linietsky
0988970c1f
Fixed properly not save signals that already exist in their base scenes, closes #5656
2016-07-19 21:26:12 -03:00
Rémi Verschelde
87d0515d09
Fix main scene not being saved when set via Play button
...
Fixes #1134 for real. Also tweaked the engine.cfg template
and the preference order when browsing for the main scene.
2016-07-19 21:35:14 +02:00
Rémi Verschelde
525fb01fd2
Revert "Homogeinize resource formats loaders/savers"
...
The text format definition needs to stay in `scene/` as it relies
on other scene components, and `core/` must stay self-contained.
This reverts commits a5e27503fd
and 1492fd8460
.
2016-07-19 18:15:01 +02:00
Rémi Verschelde
c328693e83
Merge pull request #5709 from akien-mga/pr-get-engine-version
...
OS: Add get_engine_version method
2016-07-18 00:55:29 +02:00
Rémi Verschelde
b2953bc1cc
OS: Add get_engine_version method
...
Fixes #5693 .
2016-07-18 00:54:56 +02:00
Rémi Verschelde
8de5aedb9e
Merge pull request #5718 from jay3d/master
...
Added gyroscope support to Godot and Android
2016-07-18 00:52:15 +02:00
Rémi Verschelde
22419082d9
Remove some noisy debug prints
...
Part of #5031
2016-07-17 18:25:21 +02:00
Juan Linietsky
24d86e33a6
Merge pull request #5467 from RandomShaper/enhance-tidy-extensions
...
Enhance/tidy file extensions management
2016-07-16 09:28:49 -03:00
Rémi Verschelde
f07d4f556a
i18n: Add missing locale identifiers for Bengali and Urdu
...
Fixes errors showing up since the addition of those WIP translations.
2016-07-16 13:17:09 +02:00
Jamil Halabi
370ae3512d
Added gyroscope support to Godot and Android
2016-07-16 01:43:32 +08:00
George Marques
9a931e333c
Fix binding of File::get_sha256()
...
Fix #5698
2016-07-14 14:23:22 -03:00
punto-
bba89aef3b
Merge pull request #5559 from Hinsbart/connected_joysticks
...
Input: add get_connected_joysticks() method.
2016-07-10 14:00:27 -03:00
Juan Linietsky
9dac41432e
Merge pull request #5443 from samuelgrigolato/iterate-string-in-gdscript
...
Add support to String type in gdscript iteration
2016-07-10 13:32:37 -03:00
Juan Linietsky
28641fd9b8
Merge pull request #5525 from SuperUserNameMan/window_get_latin_kb_variant
...
windows get_latin_keyboard_variant() implementation and gdscript binding, #5503
2016-07-10 12:41:05 -03:00
Rémi Verschelde
3a70d4a072
Merge pull request #5589 from akien-mga/pr-unused-var
...
Removing some more unused vars and dead code
2016-07-09 14:33:30 +02:00
Rémi Verschelde
a15de80942
classref: Fix arg name for is_action_pressed/released
...
Also position TEXTURE_SPHERE constant properly.
2016-07-08 23:40:43 +02:00
Rémi Verschelde
f40f360a2c
Remove unused variables (fourth pass) + dead code
...
Also fix a potential regression from 3fcb9b1ec1
.
2016-07-08 16:47:55 +02:00
Pawel Kowal
96eb97cbbf
Array has(var value) function
2016-07-07 11:40:38 +02:00
George Marques
29b62ce5d0
Make sure builtin types' constants remain in order
...
This adds a list of constants for VariantCall to make sure the order of
register is kept when showing in the editor help and in the documentation.
This also remove the sorting of constants from the doctool, so it keeps
the natural order in classes.xml.
2016-07-05 17:09:16 -03:00
George Marques
5c355a63d3
Add OS.request_attention() for Windows
2016-07-05 12:29:08 -03:00
J08nY
0f767fe8b9
Fixed HQ2x compiler warnings
2016-07-05 16:52:31 +02:00
Andreas Haas
45cfd199a4
Input: add get_connected_joysticks() method.
...
fixes #5465
2016-07-05 14:08:02 +02:00
SuperUserNameMan
7a142780f0
windows get_latin_keyboard_variant() implementation and gdscript binding
2016-07-03 19:35:13 +02:00
Juan Linietsky
eade613dc7
Merge pull request #5522 from neikeq/pr-issue-5519
...
Prettier str() for arrays
2016-07-02 11:35:30 -03:00
Ignacio Etcheverry
38ed5d9c7d
Prettier str() for arrays
2016-07-02 15:54:37 +02:00
Juan Linietsky
72ab3c2236
Do a second stage remap, so it considers translation first, atlas second, closes #5147
2016-06-29 10:18:46 -03:00
Pedro J. Estébanez
1492fd8460
Make text formats preferent over binary ones
2016-06-28 19:25:10 +02:00
Pedro J. Estébanez
92f10a3582
Tidy up population of extensions list
2016-06-28 18:58:40 +02:00
Pedro J. Estébanez
a5e27503fd
Homogeinize resource formats loaders/savers
2016-06-28 18:27:12 +02:00
Rémi Verschelde
bd424d8f73
Fix style bug in event queue
...
Same fix as for 1f9812ab83
Not sure if this code actually does anything though, `buffer_max_used` seems unused.
2016-06-28 08:00:33 +02:00
Juan Linietsky
1f9812ab83
fix bug in reporting of message queue size
2016-06-27 19:07:58 -03:00
Juan Linietsky
efdcf205d2
Make most resources (save for packedscenes and scripts) reload if they change on disk. Closes #4059 .
2016-06-27 13:17:20 -03:00
Juan Linietsky
47d6cc08bb
Properly deliver localized coordinates when passing gui events through parents, closes #4215
2016-06-27 10:00:36 -03:00
Samuel Grigolato
9ac7eaa89c
Add support to String type in gdscript iteration. #5188
2016-06-26 21:13:31 -03:00
Juan Linietsky
fb9d1498bf
Cleaner way to enable ptrcall
2016-06-26 11:59:25 -03:00
Juan Linietsky
3813160ea0
-Fix crashes with thread_exit()
...
-Added draft of C script API (still disabled and unused)
2016-06-26 10:54:45 -03:00
Rémi Verschelde
8a5d23c820
Merge pull request #5412 from vnen/dvector-invert-bind
...
Expose *Array.invert() to script
2016-06-26 09:46:51 +02:00
George Marques
a6ec3af349
Expose *Array.invert() to script
...
Properly solve #4601 .
2016-06-25 14:16:28 -03:00
Juan Linietsky
8dac3bf3b1
Added function to notify ScriptLanguage when a thread is created/freed, allows scripts to allocate a stack there via TLS
2016-06-25 10:41:23 -03:00
Juan Linietsky
62dfee768d
changed way to return reference
2016-06-24 20:06:07 -03:00