Commit Graph

13569 Commits

Author SHA1 Message Date
Poommetee Ketson ff070de986 s/2017/2018/g for gles2, websocket, linux appdata 2018-03-21 16:07:51 +07:00
Rémi Verschelde 10fa69285c Add --print-fps option to output FPS to stdout
Works both for the editor and games.

Projects can still use "debug/settings/stdout/print_fps" to enable it
permanently. The --print-fps option takes precedence (so works even if
the project setting is disabled). That setting is also no longer redefined
on the fly based on the verbose flag, that was a mess.
2018-03-21 09:08:51 +01:00
Brigham Henry Keys cd63e699ca Updated thekla_atlas to support arm64 2018-03-20 13:44:45 -05:00
Rémi Verschelde b49ca9486c
Merge pull request #17607 from RandomShaper/fix-bogus-file-in-pack
Fix listing files inside directory in pack file
2018-03-20 12:50:19 +01:00
Rémi Verschelde 6066b236aa
Merge pull request #17645 from volzhs/android-device-info
Fix getting Android device information
2018-03-20 11:28:15 +01:00
Rémi Verschelde a238e53da9
Merge pull request #17637 from robfram/fix-draw_polyline_colors-crash
Fix crash in `canvas_item_add_polyline` when passing more points than colors
2018-03-20 11:23:15 +01:00
Rémi Verschelde d486973f58
Merge pull request #17589 from robfram/fix-always-save-at-run
Fix saving unmodified scenes and resources
2018-03-20 11:17:19 +01:00
Rémi Verschelde e751fef206
Merge pull request #17632 from endragor/fix-resize-font-update
Fix oversampled font artifacts after resize
2018-03-20 11:12:28 +01:00
Rémi Verschelde bb5e5fca43
Merge pull request #17599 from marcelofg55/channels_crashfix
Fix possible crash when audio channels change
2018-03-20 11:02:13 +01:00
Rémi Verschelde d67d094606
Merge pull request #17629 from bruvzg/macos_nstask
[macOS] Implement OS_OSX::execute (using NSTask)
2018-03-20 11:01:07 +01:00
Julien CATINEAU 57e6b8781c add option to invert y-axis 2018-03-20 08:03:38 +01:00
volzhs 4e378aeeb8 Fix getting Android device information
Fix #17644
2018-03-20 13:53:33 +09:00
Leon Krause 25800ffb0e Add RWLockDummy for NO_THREADS builds 2018-03-20 05:37:42 +01:00
robfram 8eedb2afe2 Fix crash in `canvas_item_add_polyline` when passing more points than colors
When `p_points.size() > p_colors.size()`, it crashed with invalid
array access to `p_colors`. Also, when `p_colors` was an empty
`Vector` it crashed due a missing `else` checking the `size`
condition, as the code handling that special case exists.

This PR fixes the missing `else` for `p_colors.size == 0` and,
following the `canvas_item_add_multiline` spirit, it only uses the
first color for the whole polyline if points and colors differ in
size.

Fix #17621.
2018-03-19 19:22:38 +01:00
Rémi Verschelde c4a8b8f7c5
Merge pull request #17634 from PJB3005/18-03-19-mono-build-blunder
Fix mono build properly!
2018-03-19 17:04:45 +01: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
Ruslan Mustakov 47747718d6 Fix oversampled font artifacts after resize
Font update after resize relies on the viewport size which was updated
after the font was already refreshed, which resulted in artifacts when
it was rendered into the actual/new viewport size.

Fixes #15173.
2018-03-19 20:44:26 +07:00
Marcelo Fernandez 87ebdd6041 Fix possible crash when audio channels change 2018-03-19 09:00:11 -03:00
bruvzg e42576548f
Implement OS_OSX::execute 2018-03-19 12:56:03 +02:00
Rémi Verschelde ebce36c22f
Merge pull request #17622 from RandomShaper/gltf-fixes
A couple of fixes for glTF importing
2018-03-19 10:18:43 +01:00
Rémi Verschelde 9dbda67fde
Merge pull request #17548 from groud/fix_scrollbars
Fixes scrollbars in Canvas Item Editor
2018-03-19 10:14:16 +01:00
Rémi Verschelde cc8f7c78af
Merge pull request #17618 from groud/fix_gridcontainer
Fixes wrong calculation of gridcontainer's children size
2018-03-19 10:12:20 +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
Rémi Verschelde 61e95fc0bb
Merge pull request #17617 from eska014/emsc-assertions
Disable Emscripten assertions in release_debug builds
2018-03-19 06:18:22 +01:00
Poommetee Ketson fc4e772286
Merge pull request #17606 from PJB3005/18-03-18-just-pressed-action-docs-update
Improve Input.is_action_just_* docs.

[ci skip]
2018-03-19 08:34:59 +07:00
Pedro J. Estébanez 1f26da0ad1 Fix animation length from glTF not correctly set 2018-03-19 00:27:14 +01:00
Pedro J. Estébanez adbe749513 Fix glTF not accepting VEC3 colors
Aside from the colors themselves, the rejection was adding somes issues later in the mesh import process.
2018-03-19 00:27:14 +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
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
Mr-Slurpy 9da18f3974 Added tool menu functions in EditorPlugin 2018-03-17 14:41:50 -04:00
robfram da6c07698f Fix non-valid characters for `input_action`
Add a new function to check action names, `_validate_action_name`, in
the spirit of `_valprop`. Offending characters include non-printable
ascii, and `\/=:"`. Also set only one text for the UI message.
2018-03-17 15:32:44 +01:00
Gilles Roudiere 038de54b1f Fixes scrollbars in Canvas Item Editor 2018-03-17 12:18:33 +01:00
Jakub Grzesik f78c7353ea a way to ensure that camera is disabled 2018-03-17 10:57:04 +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
robfram 8939f44f6a Fix pressing `F3` do both changing to script editor AND find next text
As `KEY_F3` was used both for changing to script editor window and, in
the script editor, for finding the next result in the last search, and
the key event is **not** consumed, the resulting behaviour was similar
to press `F3` twice, first to change to script editor and second to
find the next result of a previous search.

This PR sets the `key_pressed` status of `InputEvent` to `false` if
this event is responsible of an editor change, simulating the
consumption of the event.

Fix #17334
2018-03-16 20:17:42 +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
Bernhard Liebl 29d305599d Warn about WorldEnvironment being ignored 2018-03-16 11:21:57 +01:00