Commit graph

13534 commits

Author SHA1 Message Date
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
Gilles Roudiere 896e5a64d3 Fixes wrong calculation of gridcontainer's children size 2018-03-18 22:33:17 +01:00
Leon Krause d6c9d8d778 Disable Emscripten assertions in release_debug builds
The messages generated by some assertions can be confusing to users.
2018-03-18 21:33:54 +01:00
robfram 5358befb41 Fix bad rendering of BBCode tables in RichTextLabel
Text overflowed canvas as tables didn't calculate correctly the width
of their columns. They used the whole table width available for each
column. Also, the `cell` parameter was wrongly parsed if used with its
optional argument (expand ratio).

This PR fixs the parsing of `cell` parameter (i.e. `cell=e`) and the
distribution of the full table width between columns, but it overrides
automatically the `expand` flag if the column is smaller than it could
be, to allow a better UX out-of-the-box. It keeps the `expand_ratio`
flag to let the user customize how every column grows in relation to
the rest.

Partially fix #6289.
2018-03-18 18:06:24 +01:00
Pedro J. Estébanez 536611704a Fix listing files inside directory in pack file
When adding a directory path to the inventory of the pack, an empty file name was being added to the file list. That made `Directory.get_ntext()` signal end-of-list too early so that files in a subdirectory were missed.

Fixes #15801.
Helps with #16798.
2018-03-18 14:04:50 +01:00
Pieter-Jan Briers 11aa330a6f Improve Input.is_action_just_* docs.
More clarification.
2018-03-18 13:41:25 +01:00
robfram 28ab60422d Fix saving unmodified scenes and resources
When `_save_all_scenes` or `save_resource_in_path` was called, they
always saved all the scenes and the resource no matter if they were
modified or not. For example, when `saving before run` option was
checked, it always overwrote the current scene and the default
environment simply by opening and runing the project.

This PR adds checks for unsaved scenes (using the same `unsave` check
others method used) and modified resources (comparing last modified
time and last import time).

Fix #6025.
2018-03-18 11:58:40 +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
Poommetee Ketson 760b0567a6
Merge pull request #17590 from YeldhamDev/iph_typo_fix
Fixed small typo in the "InstancePlaceholder" doc

[ci skip]
2018-03-18 08:33:41 +07:00
Michael Alexsander Silva Dias 712d6e724a Fixed small typo in the "InstancePlaceholder" doc. 2018-03-17 16:00:36 -03:00
Gilles Roudiere 038de54b1f Fixes scrollbars in Canvas Item Editor 2018-03-17 12:18:33 +01:00
Rémi Verschelde 201d2d7226
Merge pull request #17564 from ShyRed/fixbuild
Open textfile in textmode
2018-03-17 08:50:21 +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
Fabio Alessandrelli c531262190
Merge pull request #16947 from Faless/ui_actions
GUI elements ui_action usage, improvements
2018-03-16 20:55:11 +01:00
ShyRed 75308d7a30 Open textfile in textmode
Open mapping files in textmode as they are textfiles.
2018-03-16 16:28:05 +01:00
Leon Krause e06a56eac8 Fix typo in engine.js 2018-03-16 15:40:00 +01:00
Max Hilbrunner 7275fb6170
[DOCS] Node: Remove duplicate information 2018-03-16 11:48:45 +01:00
Rémi Verschelde cc617dc5d1 SCons: properly close files when reading controller mappings
Fixup to #17296.
2018-03-16 08:40:33 +01:00
Rémi Verschelde f17c35b447
Merge pull request #17537 from Noshyaar/intcam
InterpolatedCamera: use internal_process
2018-03-16 08:10:37 +01:00
Hein-Pieter van Braam 395ecc2235
Merge pull request #16964 from mrcdk/audio_server_bus_changed_fix
AudioServer emit bus_layout_changed signal when adding, moving or del…
2018-03-16 00:10:52 +01:00
Hein-Pieter van Braam bb331d85b8
Merge pull request #17130 from nical/issue-17050
Fix polyline rendering when width <= 1.
2018-03-16 00:04:07 +01:00
Hein-Pieter van Braam 009b0bab49
Merge pull request #17248 from Cygon/implement-extra-culling-margin
Apply culling margin (fixes issue #16115)
2018-03-15 23:45:59 +01:00
Poommetee Ketson 6b22ec5f6c InterpolatedCamera: use internal_process 2018-03-16 05:15:26 +07:00
Hein-Pieter van Braam 99f286e23f
Merge pull request #17264 from poke1024/fix-gesture-key-event-accepted
Fix gesture events being blocked
2018-03-15 23:13:04 +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
Hein-Pieter van Braam 64b336b367
Merge pull request #17293 from bncastle/basebutton_fix_pressed
Fix "ui_accept" action not calling _pressed() function in GDScript Button
2018-03-15 22:58:49 +01:00
Fabio Alessandrelli b0186b41bb
Merge pull request #17237 from RandomShaper/fix-ssl-handshake
Fix HTTPClient SNI support when verify is off
2018-03-15 22:43:34 +01:00
Hein-Pieter van Braam e4e0ba908a
Merge pull request #17296 from cart/controller-mapping-autogen
Generate controller mapping class from one or more SDL2 database files
2018-03-15 22:42:06 +01:00
Hein-Pieter van Braam 9bc0503c91
Merge pull request #17376 from marcelofg55/file_get_path
Added File.get_path and File.get_path_absolute functions
2018-03-15 22:21:21 +01:00
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 9bb1b55486
Merge pull request #17514 from brylie/patch-1
Add brief description
2018-03-15 20:45:26 +01:00
Rémi Verschelde e2dd6671dc
Merge pull request #17527 from poke1024/fix-17522
Fix debugger_stdout_settings being ignored
2018-03-15 20:40:14 +01:00
Rémi Verschelde d3648b51b1
Merge pull request #17533 from JFonS/shader_allow_hint_defaults
Hinted shader uniforms can have a default value
2018-03-15 20:24:44 +01:00
Rémi Verschelde d5f3f3ddc2
Merge pull request #17541 from mhilbrunner/docs-node
[DOCS] Node: Networking updates, fix outdated and missing docs
2018-03-15 20:03:13 +01:00
mhilbrunner 5a3e841c60 [DOCS] Node: Networking updates, fix outdated and missing docs 2018-03-15 20:00:34 +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 a8147d0f8b
Merge pull request #17536 from bruvzg/fix_mingw_build
Fix MinGW cross-build
2018-03-15 16:50:01 +01:00
bruvzg e337eecd17
Fix MinGW cross-build 2018-03-15 17:29:55 +02:00
JFonS 479f531635 Hinted shader uniforms can have a default value 2018-03-15 15:23:40 +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
Bastiaan Olij 5356423377 A few fixes on the ARVR Server 2018-03-15 23:31:02 +11:00
Rémi Verschelde 6f8b79ea5f
Merge pull request #17528 from BastiaanOlij/missing_uwp_boolvariable
Added missing import BoolVariable
2018-03-15 12:47:43 +01:00
Poommetee Ketson 01ec06d9ae
Fix script template on _ready behavior 2018-03-15 18:38:53 +07:00
Bastiaan Olij cc9e8aa732 Added missing import BoolVariable
Didn't like the missing BoolVariable :)
2018-03-15 22:35:44 +11:00
Bernhard Liebl 2b728de8f2 Fix debugger_stdout_settings being ignored 2018-03-15 12:22:10 +01:00
Rémi Verschelde 506c492657
Merge pull request #17520 from eska014/wasm-webgl1
Check only for WebGL 1.0 before starting downloads, move test to HTML file
2018-03-15 08:55:14 +01:00
Leon Krause 61026e62bf Check only for WebGL 1.0, move test to HTML file
Whether to use WebGL 1.0 or 2.0 can only be determined at runtime after
reading project settings, so check for the lower version.

The test is now in the HTML file, so if desired WebGL 2.0 can be
checked early by changing the behaviour there.
2018-03-15 04:04:24 +01:00
Brylie Christopher Oxley 32fc6c9041
Add brief description 2018-03-14 23:23:38 +02:00
Rémi Verschelde 955397dfd5
Merge pull request #17194 from garyo/scons_find_msvc
Enable SCons to autodetect Windows MSVC compiler
2018-03-14 21:27:00 +01:00