Hein-Pieter van Braam
f8706cbdf2
Merge pull request #17407 from poke1024/fix-hsv-mismatch
...
Fix mismatch between Color.h and Color.from_hsv()
2018-03-15 22:16:57 +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
Bernhard Liebl
1d3b5d5a2f
Fix mismatch between Color.h and Color.from_hsv()
2018-03-14 21:04:02 +01:00
Rémi Verschelde
b64d4e3a83
Merge pull request #17486 from bojidar-bg/x-fix-clang-negation-warn
...
Fix a potential bug hinted by clang
2018-03-13 20:02:42 +01:00
Bojidar Marinov
9f6c0c6eae
Duplicate Arrays and Dictionaries when instancing scene in editor
...
Also, add deep (=false) parameter to Array.duplicate and Dictionary.duplicate
Fixes #13971
2018-03-13 17:18:08 +02:00
Bojidar Marinov
4d81e8afe6
Fix a potential bug hinted by clang
2018-03-13 17:10:28 +02:00
Marcelo Fernandez
a4e64c5454
Added File.get_path and File.get_path_absolute functions
2018-03-13 12:07:37 -03:00
Rémi Verschelde
b4da44981a
Merge pull request #17254 from Chaosus/updatewrap
...
Update wrap functions
2018-03-13 12:33:57 +01:00
Rémi Verschelde
ced5b57a60
Merge pull request #17257 from and3rson/master
...
Fix garbage in string padding.
2018-03-13 12:30:42 +01:00
Rémi Verschelde
18d543d7ab
Merge pull request #17311 from marcelofg55/export_err_checks
...
Improved error checking at EditorExportPlatformPC::export_project
2018-03-13 12:17:53 +01:00
Rémi Verschelde
4287c7822b
Merge pull request #17440 from viktor-ferenczi/issue-5042
...
Properly closing all files in Python build code
2018-03-13 11:49:58 +01:00
Rémi Verschelde
08415d0f53
Merge pull request #17319 from eska014/polyclipper-toolsonly
...
Build polygon clipper only in tools builds
2018-03-13 11:01:28 +01:00
robfram
ea94a82596
Fix non working action names containing whitespaces
...
Now the action name is quoted if it contains spaces. Also, quotation
mark (") is added to the forbidden character list for action names, as
it was also a bug.
Fix #17322
2018-03-12 21:28:41 +01:00
Viktor Ferenczi
272ecddb28
Properly closing all files in Python code
2018-03-11 14:55:50 +01:00
Rémi Verschelde
8ded15b035
Merge pull request #16485 from poke1024/vector2-cross
...
Bring back Vector2.cross()
2018-03-08 08:50:20 +01:00
Bernhard Liebl
9d7856620c
Bring back Vector2.cross()
2018-03-07 21:10:31 +01:00
Leon Krause
802b6d3669
Reinstate WebGL 1.0 driver in HTML5 platform
2018-03-07 20:38:14 +01:00
Leon Krause
fa760082f5
Build polygon clipper only in tools builds
2018-03-06 21:53:37 +01:00
ShyRed
051b4d6f19
Adjust decimal precision
...
Increase the number of significant digits when converting from double to string.
2018-03-06 20:40:29 +01:00
Marcelo Fernandez
0876502f72
Improved error checking at EditorExportPlatformPC::export_project
2018-03-06 14:23:17 -03:00
Chaosus
70bb31a7b2
Update wrap functions
2018-03-06 10:34:37 +03:00
Andrew Dunai
0269e366f1
Fix garbage in string padding.
2018-03-04 19:45:33 +02:00
Marcelo Fernandez
d780d774aa
Clean and expose get_audio/video_driver_* funcs on OS class
2018-03-04 14:18:05 -03:00
Pedro J. Estébanez
602da6fa4f
Fix wrong SSL handshake
...
The name of the remote host is passed to mbed TLS in all cases so the client hello message is correctly formed.
2018-03-04 01:22:59 +01:00
Mavropoulos Ioannis
60b2ee1624
enhance mipmaps
2018-03-03 23:19:31 +02:00
Fabio Alessandrelli
df391cc5be
Add new MultiplayerAPI class
...
Handles all the high level networking stuff
2018-03-03 18:28:49 +01:00
Nicolas Silva
e73266a51c
Allow degenerate triangles in polygon triangulation when necessary.
2018-02-28 22:46:56 -05:00
Hein-Pieter van Braam
d702d7b335
Fix various valgrind reported uninitialized variable uses
2018-02-28 21:55:13 +01:00
Ignacio Etcheverry
f37090ccf4
Mono: Better versioning and gracefully unloading of Godot API assemblies
2018-02-25 20:56:27 +01:00
Poommetee Ketson
67e20dc2b6
(Magnify|Pan)Gesture: implement as_text
2018-02-24 10:35:25 +07:00
Neil Graham
617d3cde1a
change to clang format
2018-02-24 13:59:02 +13:00
Rémi Verschelde
23ebae01dc
Refactor version macros and fix related bugs
...
The previous logic with VERSION_MKSTRING was a bit unwieldy, so there were
several places hardcoding their own variant of the version string, potentially
with bugs (e.g. forgetting the patch number when defined).
The new logic defines:
- VERSION_BRANCH, the main 'major.minor' version (e.g. 3.1)
- VERSION_NUMBER, which can be 'major.minor' or 'major.minor.patch',
depending on whether the latter is defined (e.g. 3.1.4)
- VERSION_FULL_CONFIG, which contains the version status (e.g. stable)
and the module-specific suffix (e.g. mono)
- VERSION_FULL_BUILD, same as above but with build/reference name
(e.g. official, custom_build, mageia, etc.)
Note: Slight change here, as the previous format had the build name
*before* the module-specific suffix; now it's after
- VERSION_FULL_NAME, same as before, so VERSION_FULL_BUILD prefixed
with "Godot v" for readability
Bugs fixed thanks to that:
- Export templates version matching now properly takes VERSION_PATCH
into account by relying on VERSION_FULL_CONFIG.
- ClassDB hash no longer takes the build name into account, but limits
itself to VERSION_FULL_CONFIG (build name is cosmetic, not relevant
for the API hash).
- Docs XML no longer hardcode the VERSION_STATUS, this was annoying.
- Small cleanup in Windows .rc file thanks to new macros.
2018-02-23 20:15:29 +01:00
Fabio Alessandrelli
920d2bfdfa
Add two new default actions ui_end, ui_home
...
Used by Slider and Scrollbar
2018-02-23 13:01:28 +01:00
Poommetee Ketson
f4f92b55e1
Color:fix setting V switch S to old V value
2018-02-22 16:43:00 +07:00
geequlim
24e6361cba
Save runtime node as scene from the remote scene tree.
2018-02-22 10:00:13 +08:00
luz.paz
612ab4bbc6
Fix typos with codespell
...
Found via `codespell -q 3 --skip="./thirdparty,./editor/translations" -I ../godot-word-whitelist.txt`
Whitelist consists of:
```
ang
doubleclick
lod
nd
que
te
unselect
```
2018-02-21 19:46:06 +01:00
Juan Linietsky
9e3a1e5401
Add base support for 2D meshes in Godot, including Sprite -> Mesh2D conversion.
2018-02-21 09:39:09 -03:00
Rémi Verschelde
57d562b394
Fix loading project.binary from PCK file
...
Regression introduced in #16825 .
My logic was correct, but not the error code I was expecting.
The error reporting in FileAccess likely needs a review too.
2018-02-21 09:07:59 +01:00
Neil Graham
bc7db7a08d
add Image::bumpmap_to_normalmap conversion function
2018-02-21 11:43:58 +13:00
Rémi Verschelde
37a6ce5a42
Merge pull request #15563 from poke1024/gdscript-shuffle
...
Add shuffle() method to Array
2018-02-19 21:53:08 +01:00
Rémi Verschelde
7455244866
Merge pull request #15852 from poke1024/color_hsv
...
Add Color.from_hsv()
2018-02-19 21:51:04 +01:00
Rémi Verschelde
7839076f95
Improve error reporting of ProjectSettings::setup()
...
And use it to better report errors in the console and project manager
when a project.godot file is corrupted.
Fixes #14963 .
2018-02-19 16:41:43 +01:00
Artem Varaksa
d35e486228
Clean up some bad words from code comments
2018-02-17 16:00:39 +03:00
Rémi Verschelde
0c7bed45c4
Add locale renames for Hebrew and Indonesian on Windows
...
Windows does not fully respect ISO 639-1 like other systems,
so we have to override its locale values for those languages.
Also added comments to document the locale provenance.
2018-02-14 18:49:27 +01:00
Rémi Verschelde
e0f43e0678
Merge pull request #15564 from RandomShaper/adpod-topmost
...
Add new window setting: always on top
2018-02-14 16:43:40 +01:00
Rémi Verschelde
574133e4e0
Merge pull request #15892 from Zylann/add_missing_vs_bindings
...
Added all missing VisualServer bindings
2018-02-14 16:05:49 +01:00
Rémi Verschelde
b48cc669e2
Merge pull request #16169 from hungrymonkey/issue_16160
...
Change function signature from float to double to match type get_doub…
2018-02-14 15:50:47 +01:00
Fabio Alessandrelli
67b600d957
Add mbedtls module
2018-02-14 01:26:23 +01:00
Marcelo Fernandez
ea1d726a46
Added OS::center_window to center the window precisely on desktop platforms
2018-02-12 15:45:41 -03:00
Ibrahn Sahir
95dfa5b96d
fix for segfault when using CallBasic in visual script on release build
2018-02-12 17:09:00 +00:00
Chaosus
f2c22791ce
Fix is_point_in_triangle
2018-02-08 19:59:52 +03:00
Rémi Verschelde
cbdd410a6f
Merge pull request #15899 from karroffel/stringbuffer-template-arg
...
add template argument for size in StringBuffer
2018-02-07 11:37:10 +01:00
Nicolas Silva
91215e1919
Fix polygon triangulation failure.
...
The ear clipping algorithm used to triangulate polygons has a slightly too conservative point-in-triangle test which can, in some configurations prevent it from finding a possible tessellation. Relaxing the test by considering that points exactly on edges don't belong the triangle fixes the issue. Changing the semantic of the test is safe because no other code makes use of it. A more detailed explanation can be found in issue #16395 .
Fixes #16395 .
2018-02-05 16:01:24 +01:00
Hein-Pieter van Braam
e836a7d88d
Kill an old debugging message
...
When running the engine with -d we get a message on the command-line for
each control being clicked. After discussing with @reduz it seems that
this is old and should be removed. Commented out as requested.
2018-02-05 11:18:49 +01:00
Timur Celik
c16f61190c
Fix broken variant call of Vector3.snapped
2018-02-03 19:57:12 +01:00
Paolo Perkovic
08d4bfacaf
Fix inconsistencies and typos in argument names
2018-02-01 16:47:20 +01:00
Rémi Verschelde
906ac2fc9d
Merge pull request #16002 from bruvzg/mono_loading_form_res
...
[Mono] Allow loading assemblies (including mscorlib) from resources.
2018-02-01 14:36:05 +01:00
Rémi Verschelde
e7cf2b2e77
Merge pull request #16188 from Schweigert/master
...
Display set_nodelay to GDScript
2018-01-31 17:26:12 +01:00
bruvzg
b3ddf12fb1
Mono: Allow loading mscorlib
from resources.
2018-01-31 09:20:46 +02:00
Marlon Henry Schweigert
87adf9cfba
Display set_nodelay to GDScript
...
Pass enabled arg
Rename set_nodelay to set_no_delay
Add description to the method
Change description
2018-01-30 13:22:15 -02:00
Rémi Verschelde
5b580fb69b
Merge pull request #15995 from GodotExplorer/pr-debugger-weakref
...
Remote debugger send the real instance of WeakRef referenced to
2018-01-30 13:43:02 +01:00
Poommetee Ketson
ebe2337515
Fix wrong return type of xform functions
2018-01-30 18:45:54 +07:00
hungrymonkey
d2f1c87063
Change function signature from float to double to match type get_doubleCloses #16160
2018-01-29 15:45:46 -08:00
Hein-Pieter van Braam
7577252b1b
Use the appropriate Variant hash and compare functions for Dictionaries
...
Dictionaires did not use the VariantHasher and VariantComparator making
them unsafe for use with NaN values as keys. This PR uses the
appropriate Variant implementations for these functions.
var d = {}
d[Vector2(NAN, NAN)] = 0
d[Vector2(NAN, NAN)] = 0
print(d.size())
will now output '1' and not '2'
This fixes #16031
2018-01-27 15:11:39 +01:00
Ariel Manzur
81426ff0a8
- Improves portability in joystick buttons enum
...
- Fixes linking bug in modules split library
2018-01-24 19:12:54 -03:00
Bernhard Liebl
eb1f9375ea
Detects crash-related marshalling errors due to NAN values
2018-01-24 19:24:18 +01:00
Rémi Verschelde
5342ec32b5
Merge pull request #15844 from letheed/better-error-msg
...
Make cyclic resource inclusion error message more helpful
2018-01-24 11:52:52 +01:00
Geequlim
10f0451cc2
Remote debugger send the real instance of WeakRef referenced to
2018-01-23 17:17:35 +08:00
Bernhard Liebl
c1e099b48f
Add Geometry::line_intersects_line_2d()
2018-01-21 15:31:34 +01:00
karroffel
ac2a9bb267
add template argument for size in StringBuffer
...
Until now the pre-allocated array size was defined to be 64 without
a way of adjusting it from the calling side.
This commit adds the size as a template parameter.
2018-01-20 20:03:17 +01:00
Marc Gilleron
e415fd05bb
Added all missing VisualServer bindings
...
- Added bindings for multimesh, immediate, skeleton, light, reflection probe, gi probe, lightmap, particles, camera, environment, scenario, instance
- Removed draw and sync, were duplicates of force_* equivalents
- Bumped binders max arguments from 11 to 13
- Wrote some wrappers as not all methods were variant-friendly
2018-01-20 16:59:26 +01:00
karroffel
30822e8ab7
fixed crash with StringBuilder
...
When using a newly created StringBuilder then the as_string() method
will crash when trying to free an allocated 0-sized chunk of memory.
When 0 bytes get allocated with memnew_arr then a NULL pointer gets
returned. When trying to free that pointer the programm will crash.
2018-01-20 15:26:58 +01:00
Ariel Manzur
e2b50e1abb
improves portability with some compilers
2018-01-18 19:16:34 -03:00
Bernhard Liebl
be55171231
Add Color.from_hsv()
2018-01-18 22:13:00 +01:00
Rémi Verschelde
9f479f096c
Fix typos in code and docs with codespell
...
Using v1.11.0 from https://github.com/lucasdemarchi/codespell
2018-01-18 22:01:42 +01:00
letheed
37c4bc64de
Make cyclic resource inclusion error message more helpful
2018-01-18 18:35:24 +01:00
Rémi Verschelde
6c46787749
doc: Replace some more "val" with "value" + sync
2018-01-17 10:43:23 +01:00
Rémi Verschelde
09ca100658
Revert "Fix bad color to HTML conversion. Alpha channel was added before RGB."
2018-01-16 10:22:22 +01:00
Juan Linietsky
03475ba197
Filled tutorial field in most relevent classes.
...
Added tutorial display in doc.
2018-01-15 18:41:13 -03:00
K. S. Ernest (iFire) Lee
ef1c26a9a5
Make sure PropertyHint matches in the VisualScript editor.
2018-01-15 22:19:54 +01:00
bruvzg
d0868a8f40
Fix String::itos/String::num_int64(INT64_MIN) output.
2018-01-13 22:06:08 +02:00
Paul Joannon
a066f896d8
get_target_fps and set_target_fps now both use an int
2018-01-12 14:26:21 +01:00
Paul Joannon
e08b6c9a9c
fix set_stream_peer binding in PacketPeer
2018-01-12 14:25:05 +01:00
Rémi Verschelde
e24f2c6489
Merge pull request #15611 from bojidar-bg/x-bind-more-properties
...
Bind many more properties to scripts
2018-01-12 09:00:20 +01:00
Juan Linietsky
2cde466ebd
-Remove color operator clamping, which is unnecesary. Fixes #15184 , fixes #14686 .
...
-Refresh progress bar less often, makes baking, exporting, etc. faster.
2018-01-12 00:08:32 -03:00
Bojidar Marinov
9b8e8b2220
Bind many more properties to scripts
...
Notable potentially breaking changes:
- PROPERTY_USAGE_NOEDITOR is now PROPERTY_USAGE_STORAGE | PROPERTY_USAGE_NETWORK, without PROPERTY_USAGE_INTERNAL
- Some properties were renamed, and sometimes even shadowed by new ones
- New getter methods (some virtual) were added
2018-01-12 00:58:14 +02:00
Juan Linietsky
9a62829759
Merge pull request #15531 from AndreaCatania/p2
...
Fixed crash on duplicate GIProbe baking
2018-01-11 16:44:18 -03:00
AndreaCatania
5ac441131e
Fixed crash on duplicate GIProbe baking
2018-01-11 19:50:33 +01:00
Ruslan Mustakov
a6157245b1
Dont print error when loading resource from cache
2018-01-11 20:46:18 +07:00
poke1024
75d69fb4ec
Add shuffle() method to Array
2018-01-10 19:36:53 +01:00
Bernhard Liebl
a01c33c9d0
Object class checking on bound method calls
2018-01-10 18:41:47 +01:00
robfram
19915d674c
Fix bad color to HTML conversion. Alpha channel was added befor RGB.
2018-01-09 22:34:00 +01:00
Ignacio Etcheverry
5be356b72f
Mono: Implement stack info for errors and exceptions
2018-01-09 17:19:03 +01:00
Todd Ross
6e932c3108
obsolete UndoRedo max_steps; no users identified
2018-01-08 10:57:07 -06:00
Rémi Verschelde
1fea0adc5c
Merge pull request #15337 from touilleMan/fix-classdb_get_method_list-without-instrospection
...
Fix _ClassDB::get_method_list when instrospection is disabled
2018-01-08 15:18:20 +01:00
Rémi Verschelde
fe841fe827
Merge pull request #15437 from GodotExplorer/pr-fix-15424
...
Add null checking for paramaters in UndoRedo
2018-01-07 13:03:47 +01:00
Rémi Verschelde
0593daa826
Merge pull request #15382 from mrcdk/poolarrays_neq_fix
...
Fix NEQ operation for Arrays and Pool*Arrays
2018-01-07 13:01:23 +01:00
Rémi Verschelde
42ee9541fd
Merge pull request #15297 from poke1024/runner-limit-errs
...
Limit number of errors and messages sent by runner
2018-01-07 12:38:08 +01:00
geequlim
a6e0dcdcbf
Add null checking for paramaters in Undoredo
2018-01-07 18:47:55 +08:00
Juan Linietsky
50b975548d
Removed PBM bitmap loader, added abiliy to importi mages as bitmap. Fixes #14828
2018-01-06 16:38:36 -03:00
Jerome67000
b5885c43eb
Fix crash when using Image.resize() without calling Image.create() first
2018-01-06 13:20:45 +01:00
MrCdK
b2617e72e5
Fix NEQ operation between 2 different Arrays
...
it was returning false if it found the same content in both arrays which isn't correct, it should return true when it finds different values
2018-01-06 04:19:48 +01:00
Juan Linietsky
b1ab44aa05
Print error if a resource can't load from script, fixes #15313
2018-01-05 17:35:48 -03:00
Pedro J. Estébanez
ee2c31d306
Add new window setting: always on top
...
Implemented for Windows and Linux.
2018-01-05 21:31:04 +01:00
Rémi Verschelde
e4213e66b2
Add missing copyright headers and fix formatting
...
Using `misc/scripts/fix_headers.py` on all Godot files.
Some missing header guards were added, and the header inclusion order
was fixed in the Bullet module.
2018-01-05 01:22:23 +01:00
Emmanuel Leblond
c1e2ed1d84
Fix _ClassDB::get_method_list to returns only what's available when introspection is disabled
2018-01-04 19:04:05 +01:00
Emmanuel Leblond
e315c94900
Change OS::initialize signature to return Error (fix segfault on x11)
2018-01-04 15:15:55 +01:00
firefly2442
f066991aa7
found via cppcheck:
...
remove code that will never run
make definition and declaration names for parameters match
change floats that were being set to bool values
remove pointer that is never used
2018-01-03 21:23:48 -07:00
Rémi Verschelde
66d541c69d
Merge pull request #15280 from poke1024/ringbuffer-cow
...
Avoid redundant copy-on-writes in RingBuffer
2018-01-04 00:21:07 +01:00
Bernhard Liebl
df84ecd043
Checks on input_buffer in PacketPeerStream
2018-01-03 21:12:58 +01:00
Juan Linietsky
474523d409
Revert "Add missing image format RGB10A2. Fixes #14964 "
2018-01-03 16:43:07 -03:00
Bernhard Liebl
2909085774
Avoid redundant copy-on-writes in RingBuffer
2018-01-03 19:08:53 +01:00
Bernhard Liebl
c7c764220c
Limit number of errors and messages sent by runner
2018-01-03 17:23:09 +01:00
Rémi Verschelde
6b6f60defc
Merge pull request #15220 from ibrahn/variantcall-defargs-fix
...
fix VariantCall default parameter ordering
2018-01-03 12:50:04 +01:00
Rémi Verschelde
459ee51338
Merge pull request #15093 from poke1024/canvas-editor-select
...
More exact picking for canvas editor
2018-01-03 11:15:28 +01:00
Rémi Verschelde
6d812ad27f
Merge pull request #15051 from binbitten/bug-fixes
...
Add missing image format RGB10A2. Fixes #14964
2018-01-03 10:17:48 +01:00
Rémi Verschelde
a24dd678fd
Merge pull request #15274 from GodotExplorer/debugger-fix-15238
...
Fix a bug for debugger
2018-01-03 08:37:24 +01:00
Rémi Verschelde
6322b0bbb7
Merge pull request #12814 from guilhermefelipecgs/add_hardware_custom_cursor
...
Custom hardware-accelerated mouse cursor
2018-01-03 08:35:59 +01:00
Geequlim
6c8ec5a930
Fix crash while the debugger encode a freed object.
2018-01-03 13:58:27 +08:00
Juan Linietsky
14772d2213
Merge pull request #15083 from tagcup/spatial_rot_fix
...
Restore the behavior of Spatial rotations recently changed in c1153f5
.
2018-01-02 15:02:19 -03:00
Rémi Verschelde
4973b7a513
Merge pull request #14916 from poke1024/reduce-startup-time
...
Ramp up remote debugger wait time
2018-01-02 11:33:30 +01:00
Rémi Verschelde
b50a9114b1
Update copyright statements to 2018
...
Happy new year to the wonderful Godot community!
2018-01-01 14:40:47 +01:00
Noshyaar
a6328011d8
Merge pull request #14973 from poke1024/docs-word-selection
...
Double-click word selection for RichTextLabel (i.e. docs)
2018-01-01 18:51:35 +07:00
Noshyaar
8dcc28254c
Merge pull request #15091 from poke1024/fix-rect2-distance-to
...
Fix Rect2::distance_to() not returning 0
2018-01-01 18:37:46 +07:00
Ibrahn Sahir
96706168d0
fix VariantCall default parameter ordering
2017-12-31 14:58:45 +00:00
Bernhard Liebl
b80bc553dd
Double-click word selection for RichTextLabel (i.e. docs)
2017-12-28 17:44:22 +01:00
tagcup
e9896b17a9
Restore the behavior of Spatial rotations recently changed in c1153f5
.
...
That change was borne out of a confusion regarding the meaning of "local" in #14569 .
Affine transformations in Spatial simply correspond to affine operations of its Transform. Such operations take place in a coordinate system that is defined by the parent Spatial. When there is no parent, they correspond to operations in the global coordinate system.
This coordinate system, which is relative to the parent, has been referred to as the local coordinate system in the docs so far, but this sloppy language has apparently confused some users, making them think that the local coordinate system refers to the one whose axes are "painted" on the Spatial node itself.
To avoid such conceptual conflations and misunderstandings in the future, the parent-relative local system is now referred to as "parent-local", and the object-relative local system is called "object-local" in the docs.
This commit adds the functionality "requested" in #14569 , not by changing how rotate/scale/translate works, but by adding new rotate_object_local, scale_object_local and translate_object_local functions. Also, for completeness, there is now global_scale.
This commit also updates another part of the docs regarding the rotation property of Spatial, which also leads to confusion among some users.
2017-12-27 16:40:49 -05:00
Bernhard Liebl
8505871a87
More exact picking for canvas editor
2017-12-27 20:24:58 +01:00
Bernhard Liebl
0d578fb765
Fix crash in StringBuffer::append()
2017-12-27 20:21:50 +01:00
Juan Linietsky
a663dbfdd8
Merge pull request #14744 from poke1024/stringname-compare
...
Avoid string allocations in AlphCompare
2017-12-27 15:44:45 -03:00
Juan Linietsky
988d29bdd8
Reimport now checks source path changes and imported files and their md5, fixes #14728
2017-12-27 15:22:04 -03:00
Bernhard Liebl
41c11894f1
Fix Rect2::distance_to() not returning 0
2017-12-27 09:56:52 +01:00
Noshyaar
ab444a8ca9
Merge pull request #14996 from neikeq/enums-mono
...
Mono: Make the bindings generator output enums
2017-12-27 10:29:00 +07:00
Noshyaar
de2247b9b4
Merge pull request #15045 from poke1024/vector2-inline
...
Inline some very common Vector2 operations
2017-12-27 10:25:08 +07:00
Juan Linietsky
c1153f5041
Change the rotate function of Spatial to be local, makes more sense. Closes #14569
2017-12-26 12:45:56 -03:00
Juan Linietsky
4a2eef4ad8
Removed the InputEvent ID field, which was unused and can cause bugs.
2017-12-26 09:49:31 -03:00
binbitten
267bad6b4c
Add missing image format RGB10A2. Fixes #14964
2017-12-25 21:01:01 +01:00
Bernhard Liebl
517227943f
Inline some very common Vector2 operations
2017-12-25 15:58:14 +01:00
Poommetee Ketson
6c897707ca
Add missing parameter names
2017-12-25 21:19:56 +07:00
Juan Linietsky
021f3c924b
-Removed OpenMP support, replaced by a custom class.
...
-Disabled Opus, implementation is wrong.
2017-12-24 09:32:12 -03:00
Ignacio Etcheverry
0a0a44da8d
Mono: Make the bindings generator output enums
...
- Switch to PascalCase for constants names
2017-12-24 04:20:41 +01:00
poke1024
e6d83a766a
Ramp up remote debugger wait time
2017-12-22 07:17:31 +01:00
Gilles Roudiere
71f5e17680
Fixes grow_margin not working at all
2017-12-21 23:53:31 +01:00
Juan Linietsky
c9d88fd8e8
Add functions to image to load a PNG or JPG from a buffer, closes #4024
2017-12-20 17:17:12 -03:00
Rémi Verschelde
f66ef74338
Merge pull request #14823 from willnationsdev/get-base-script
...
Add Script.get_base_script()/get_instance_base_type() to API
2017-12-20 16:39:35 +01:00
Will Nations
28561c2e7a
Add Script.get_base_script/instance_base_type API
2017-12-19 09:56:59 -06:00
Juan Linietsky
b3a1bf3245
Use a different strategy for path remaps, try loading from a remap file instead.
...
This ensures multiple PCK exports still work.
2017-12-18 11:21:49 -03:00
Rémi Verschelde
e83c502939
Merge pull request #14754 from willnationsdev/dictionary-copy
...
Added 'duplicate' function for Dictionary in C++ and API.
2017-12-17 23:58:59 +01:00
Will Nations
f19fc83546
Dictionary::copy -> ::duplicate
2017-12-17 16:07:15 -06:00
Guilherme Silva
a392dbdbe3
Add implementation for custom hardware cursor
2017-12-17 13:40:29 -02:00
Rémi Verschelde
ad3393743c
Merge pull request #14760 from hpvb/add-several-unlikely-macros
...
Add several unlikely() macros
2017-12-17 14:28:15 +01:00
Rémi Verschelde
6afb90c846
Merge pull request #14635 from poke1024/getline
...
Faster FileAccess::get_line()
2017-12-17 14:24:07 +01:00
Rémi Verschelde
d0abcf1a58
Merge pull request #14745 from poke1024/api-hash-arg-info
...
Faster ClassDB::get_api_hash()
2017-12-17 14:22:48 +01:00
Hein-Pieter van Braam
9ba134b463
Add several unlikely() macros
...
Based off of perf-based prediction misses these seem to be the
lowest-hanging fruit for quick (albeit small) improvements. These are
based on:
* baking a complex lightmap
* running platformer 3d
* running goltorus
2017-12-17 13:10:30 +01:00
Bernhard Liebl
b47ce5e5d6
Avoid string allocations in AlphCompare
2017-12-17 12:16:08 +01:00
Juan Linietsky
652c98a7be
Add epic hack so vsync can be toggled in run-time from script. Fixes #14458 .
...
Call needs to be routed via visual server to reach the proper thread.
2017-12-16 17:11:02 -03:00
poke1024
a3f1ed9af9
Faster FileAccess::get_line()
2017-12-16 16:27:21 +01:00
Bernhard Liebl
b17ae020bb
Faster ClassDB::get_api_hash()
2017-12-16 15:47:36 +01:00
Rémi Verschelde
6b7bed98f4
Merge pull request #14576 from poke1024/strings
...
Some performance tweaking of string handling
2017-12-16 13:10:30 +01:00
Ruslan Mustakov
9d6d20e67c
Remove get_stack_bottom
...
It's not used in godot-nim any longer and there were no other uses for
it.
2017-12-16 13:10:26 +07:00
Rémi Verschelde
cf7bd1a7e3
Merge pull request #14708 from Faless/get_packet_not_const_rebased
...
Remove "const" from PacketPeer get_packet/get_var, move windows network related stuff to drivers
2017-12-16 00:05:18 +01:00
Dmitry Koteroff
6fe415ca7f
Added rsplit() for String class
...
Docs updated
2017-12-15 22:23:58 +03:00
Rémi Verschelde
7767d89c45
Merge pull request #14580 from Krakean/string_split_new_arg
...
Added third argument for String.split() function
2017-12-15 19:56:39 +01:00
Dmitry Koteroff
5302fd125b
Added third argument for String.split() function (see issue #14349 )
...
Remove negative limit, leave only positive and make it reflect behaviour like in Python
Also limit renamed to maxsplit to match Python one.
Also docs updated.
Fix indent
2017-12-15 21:51:13 +03:00
poke1024
040d4dba6b
Some performance tweaking of string handling
2017-12-15 17:25:57 +01:00
Fabio Alessandrelli
92067b4714
Remove "const" from PacketPeer get_packet/get_var
...
They are NOT constant methods, as state by the comment message,
they fetch the last packet and then forget about it, actively
changing the state of the object.
2017-12-15 17:14:17 +01:00
Fabio Alessandrelli
206275f3e7
Fix javascript build error and improve #14604
2017-12-15 15:35:18 +01:00
Juan Linietsky
433cb6f490
fix compile issue
2017-12-15 09:04:57 -03:00
Juan Linietsky
251433847f
-Added new scene conversion to binary on export (disabled by default, please test)
...
-This method works by directly converting text to binary, so the scene does not need to be loaded and saved
2017-12-15 08:39:26 -03:00
Rémi Verschelde
108a36f515
Merge pull request #14604 from mhilbrunner/http-defaults
...
HTTP cleanup & better defaults
2017-12-15 07:53:38 +01:00
Juan Linietsky
93a63a5e1a
GDScript files are converted to binary on export now.
2017-12-14 15:34:47 -03:00
Rémi Verschelde
fb84b49d87
Fix type mismatch in OS::set_borderless_window
...
Closes #14663 .
2017-12-14 19:16:20 +01:00
Juan Linietsky
f3ad14224e
-Add lightmapper
...
-Fixes to unwrapper (remove degenerates), makes Thekla not crash
-Added optional cancel button in EditorProgress
-Added function to force processing of events (needed for cancel button)
2017-12-14 09:01:27 -03:00
mhilbrunner
966c054fc9
HTTP cleanup & better defaults
2017-12-14 10:59:42 +01:00
mhilbrunner
a7abb459c9
HTTPClient: Add PATCH method and missing HTTP status codes
2017-12-12 10:56:18 +01:00
Rémi Verschelde
2b41afb30e
Fix wrong return value in some virtual method bindings
2017-12-10 15:34:08 +01:00
Rémi Verschelde
a845411454
Style: Re-apply clang-format over recent invalid additions
2017-12-10 01:27:02 +01:00
Rémi Verschelde
626eebdec4
PropertyEditor: Fix display of property doc in tooltip
2017-12-09 22:54:12 +01:00
Rémi Verschelde
41e3592041
Merge pull request #13347 from Noshyaar/hang_in_there
...
Rect2: add function returning same rect with positive w and h
2017-12-09 18:08:09 +01:00
Stefano Bonicatti
c067cf2c6a
Fixes vsync setting ignored when using a separate thread for rendering
...
Setting the vsync in the main thread, after the rendering thread starts
and takes the OpenGL context fails, so we need to do that before.
Also, for some reason, the main thread cannot make current the context
anymore.
Fixes #13447
2017-12-09 01:43:23 +01:00
Rémi Verschelde
13c2ff9320
Style: Apply new clang-format 5.0 style to all files
2017-12-07 08:02:00 +01:00
Rémi Verschelde
d5ca9e2f6f
Style: Apply clang-format again on all files
...
Fixes issues introduced by newer clang-format versions or commits
pushed directly without using the clang-format pre-commit hook.
2017-12-07 08:02:00 +01:00
Rémi Verschelde
a88543c881
Merge pull request #14003 from karroffel/dictionary-iterate-fix
...
fix Dictionary iteration
2017-12-07 00:22:38 +01:00
Rémi Verschelde
e6f3253f7d
Merge pull request #12603 from GodotExplorer/beautify-json
...
Add indent and sort keys support for JSON.print
2017-12-06 23:53:05 +01:00
Rémi Verschelde
c033be4528
Merge pull request #14326 from RandomShaper/fix-chmod-error
...
Fix Windows-to-Linux export error
2017-12-06 23:16:18 +01:00
Juan Linietsky
a496dd4d38
Created internal usage flag to remove non editor properties from doc, closes #13334
2017-12-06 17:16:25 -03:00
Pedro J. Estébanez
7fb9508cfa
Fix Windows-to-Linux export error
...
Now chmod() returns ERR_UNAVAILABLE by default, to signal the caller the problem is lack of support instead of a failed operation.
2017-12-06 20:46:38 +01:00
karroffel
2ba4edbfb7
fix Dictionary iteration
2017-12-05 20:00:44 +01:00
Unknown
fd1b94e307
Improve slang, especially in user-visible parts
2017-12-05 15:41:38 +01:00
Juan Linietsky
d438ac0aed
-Implemented Proxy Textures (needed to solve the problem with ViewportTexture)
...
-Properly use hierarchy to initialize resources local to scene (solves problem of GUI in 3D)
2017-12-04 15:56:17 -03:00
Bastiaan Olij
4f9dac5bb1
Forgot to apply oversampling to Y
2017-12-03 22:32:42 +11:00
Juan Linietsky
9678231b10
Changed the dynamic library open function to allow setting the path of the library to open extra libraries.
2017-11-30 10:00:55 -03:00
Rhody Lugo
a65c0939fd
disable caching for targets using helper functions
2017-11-28 23:24:12 -04:00
Rhody Lugo
a4a222d62d
use the same cache for all branches for appveyor
2017-11-28 03:23:33 -04:00
Poommetee Ketson
5c9be411eb
Rect2: add function returning same rect with positive w and h
2017-11-28 00:41:29 +07:00
Rémi Verschelde
c7e53f1934
Fix javascript build after bc2e8d99
2017-11-27 08:17:28 +01:00
Rémi Verschelde
af9c67db0c
Allow customizing user:// path (folder in OS::get_data_path())
...
This allows to specify any valid folder name (including with subfolders) to use
as user:// on all platforms. The folder is constrained to the platform-specific
OS::get_data_path() (typically what `XDG_DATA_HOME` resolves to).
Fixes #13236 .
2017-11-26 19:02:32 +01:00
Juan Linietsky
bc2e8d99e5
Made Vector::ptrw explicit for writing, compiler was sometimes using the wrong function,
...
leading to unnecesary copy on writes and reduced performance.
2017-11-25 00:09:40 -03:00
Andreas Haas
c76a9b99b0
Core: Bind InputEventGesture events.
2017-11-24 19:23:04 +01:00