Commit graph

19670 commits

Author SHA1 Message Date
Juan Linietsky
5f079e2ef9 -Make tileset and meshlibrary edit in a separate inspector, fixes #26671
-Made relationship lines appear based on theme settings, not previous hack
-Fix drawing of relationship lines (was broken)
-Fix double initialization of theme settings
2019-03-06 12:12:42 -03:00
Rémi Verschelde
e60465dd75
Merge pull request #26707 from bruvzg/fix_macos_mscroll
Fix macOS accumulated mouse scroll events.
2019-03-06 15:32:03 +01:00
Rémi Verschelde
4d099e901b
Merge pull request #26705 from volzhs/fix-export
Fix directory check when exporting project
2019-03-06 15:31:42 +01:00
Rémi Verschelde
97774f6f69
Merge pull request #26688 from Faless/net/lws_3.1
Update libwebsockets to 3.1, fix IPv6 issues
2019-03-06 14:47:37 +01:00
bruvzg
37f0a6d99a
Fix macOS accumulated mouse scroll events. 2019-03-06 15:35:19 +02:00
Juan Linietsky
9b5c6f539b Safer way to update animation if changed, fixes #26670 2019-03-06 10:22:38 -03:00
Juan Linietsky
4dd99701b0 Fix how settings change, closes #26692 2019-03-06 09:25:19 -03:00
volzhs
8920bb8c1b Fix directory check when exporting project
Fix #26702
2019-03-06 21:20:18 +09:00
Rémi Verschelde
3916a53522
Merge pull request #22716 from Chaosus/update_theme
Make theme changing no longer requires restart to be fully applied
2019-03-06 12:36:54 +01:00
Fabio Alessandrelli
6d64a54d75 Disable WebSocket IPv6 support on OpenBSD.
OpenBSD does not support dual stacking, disabling IPv6 for now.
Will possibly come back if/when we get websocket running using our own
NetSocket class.
2019-03-06 06:34:31 +01:00
Fabio Alessandrelli
e3ddf12693 Add fix to libwebsocket to disable V6ONLY.
This was enabled by default on some systems (e.g. Windows).
2019-03-06 06:29:46 +01:00
Fabio Alessandrelli
90210c4862 Update libwebsockets to 3.1 (plus UWP patch) 2019-03-06 02:02:52 +01:00
Rémi Verschelde
2940475c71
Merge pull request #26673 from willnationsdev/fix-inspector-plugin
Fix inspector plugin
2019-03-06 01:14:48 +01:00
Rémi Verschelde
dddf8c672b
Merge pull request #26668 from marxin/use-gcc-builtins-for-bswap
Use GCC builtins for bswap as compiler can then emit these via insn
2019-03-06 00:58:30 +01:00
Rémi Verschelde
b4d5c1ab5b
Merge pull request #26633 from akien-mga/driver-fallback-etc
Disable driver fallback to GLES2 by default
2019-03-06 00:57:49 +01:00
Rémi Verschelde
d592ee6be8
Merge pull request #26666 from Calinou/update-server-buildsystem
Update the server platform's `detect.py` to match x11's
2019-03-06 00:21:01 +01:00
Will Nations
27f9780cc6 Fix crash on exit when removing EditorInspectorPlugins 2019-03-06 00:14:42 +01:00
Rémi Verschelde
4a8f219660
Merge pull request #26664 from marxin/fix-25714-__bswap_16
Replace usage of __bswap_16 with BSWAP16 (#25714).
2019-03-05 23:13:23 +01:00
Rémi Verschelde
6c2283b2d4
Merge pull request #26660 from marxin/fix-25639-audio-negative-shift
Fix #25639 by not shifting a negative value.
2019-03-05 23:10:02 +01:00
Rémi Verschelde
195c5e0925 Move YEAR definition to version.py
If it needs to be hardcoded (for the sake of reproducible builds),
it should be together with the other hardcoded version info.

And yeah, two months in, let's move to 2019.
2019-03-05 23:07:03 +01:00
Ignacio Etcheverry
6492de800f
Merge pull request #26661 from neikeq/issue-17601
Mono: Fix array field being assigned MonoArray** instead of MonoArray*
2019-03-05 23:03:25 +01:00
Rémi Verschelde
85eb381a04
Merge pull request #26657 from marxin/fix-25641-ubsan-negative-value
Fix #25641 by not shifting a negative value.
2019-03-05 23:02:59 +01:00
Rémi Verschelde
4ab4ff67ff
Merge pull request #26642 from DrMoriarty/check_cursor_line
Check cursor line and column
2019-03-05 22:57:55 +01:00
Rémi Verschelde
2e79ec973f
Merge pull request #26626 from rluders/misleading-error-message-export
Fixing misleading error message when trying to export
2019-03-05 22:55:16 +01:00
marxin
64bce5a24b Use GCC builtins for bswap as compiler can then emit these via instructions.
Using current macros, one get for:

static inline int BSWAP32(int x) {
	return ((x << 24) | ((x << 8) & 0x00FF0000) | ((x >> 8) & 0x0000FF00) | (x >> 24));
}
int main(int argc, char **argv)
{
  return BSWAP32(argc);
}

main:
.LFB1:
	.cfi_startproc
	movl	%edi, %eax
	movl	%edi, %edx
	sarl	$24, %edx
	sall	$24, %eax
	orl	%edx, %eax
	movl	%edi, %edx
	sarl	$8, %edi
	sall	$8, %edx
	andl	$65280, %edi
	andl	$16711680, %edx
	orl	%edx, %eax
	orl	%edi, %eax
	ret

while using:

int main(int argc, char **argv)
{
  return __builtin_bswap32(argc);
}

one gets:

main:
.LFB0:
	.cfi_startproc
	movl	%edi, %eax
	bswap	%eax
	ret
2019-03-05 22:27:02 +01:00
Hugo Locurcio
9e912a4c89
Update the server platform's detect.py to match x11's
This adds support for LTO, UBSAN/ASAN/LSAN, debugging symbols options
and `optimize=size` in the `server` platform.
2019-03-05 22:22:10 +01:00
marxin
f0d2f079c4 Replace usage of __bswap_16 with BSWAP16 (#25714). 2019-03-05 22:17:20 +01:00
Rémi Verschelde
88355b2719
Merge pull request #26655 from merumelu/assetlib-video-overlay
AssetLib: convert video thumbnails to RGBA8
2019-03-05 21:53:54 +01:00
Rémi Verschelde
d152ac291e
Merge pull request #26654 from merumelu/doc-makerst-vararg
makerst: make vararg methods look the same as in editor help
2019-03-05 21:52:25 +01:00
Rémi Verschelde
a11d8954db
Merge pull request #26643 from KoBeWi/readd_script_with_no_reselect
Fix attaching script after removing one
2019-03-05 21:50:57 +01:00
Ignacio Etcheverry
c6ac7333a6 Mono: Fix array field being assigned MonoArray** instead of MonoArray*
Fixes #17601
2019-03-05 21:46:55 +01:00
Ricardo Lüders
3fdbdd8380 Fixes misleading error message when trying to export
This patch fixes the misleading error message when users
try to "export all" into an invalid destination path.

Closes #26539
2019-03-05 21:32:52 +01:00
marxin
c24f53d4f6 Fix #25639 by not shifting a negative value. 2019-03-05 21:32:18 +01:00
marxin
0e781aeacb Fix #25641 by not shifting a negative value. 2019-03-05 21:18:46 +01:00
merumelu
e4b20a9a51 AssetLib: convert video thumbnails to RGBA
Image::blend_rect only works with images that have the same format.
2019-03-05 21:02:56 +01:00
merumelu
4d9b7b9803 makerst: make vararg methods look the same as in editor help 2019-03-05 20:42:09 +01:00
Rémi Verschelde
c40877bc6a
Merge pull request #26652 from YeldhamDev/filesys_dock_icon_fix
Fix FileSystem dock's item view button starting with the wrong icon
2019-03-05 20:38:52 +01:00
Michael Alexsander Silva Dias
20b479aaef Fix FileSystem dock's item view button starting with the wrong icon 2019-03-05 15:05:53 -03:00
Rémi Verschelde
f43ee4aff8
Merge pull request #26639 from YeldhamDev/tileeditor_coordnav_disable
Disable coord navigation buttons in TileSet editor when no texture is selected
2019-03-05 16:59:05 +01:00
Rémi Verschelde
12fefc1a6c
Merge pull request #26638 from KoBeWi/fix_audio_stream_player
Pause AudioStreamPlayer on SceneTree pause
2019-03-05 16:58:40 +01:00
Rémi Verschelde
9ea67d5718
Merge pull request #26636 from YeldhamDev/doc_todo_changes
Remove "TODO" instances in the docs
2019-03-05 16:58:24 +01:00
Rémi Verschelde
ebb5b84a8f
Merge pull request #26635 from bruvzg/js_preview_url_fix
Fix HTML5 quick preview URL
2019-03-05 16:58:04 +01:00
Rémi Verschelde
ae24258842
Merge pull request #26622 from pyrophone/TilesetPreviewFix
Fixed Tileset preview stretching textures
2019-03-05 16:57:21 +01:00
Rémi Verschelde
6677baedbe
Merge pull request #26631 from YeldhamDev/filesys_fixes
Fix general issues with filesystem-related UI components in the editor
2019-03-05 16:47:11 +01:00
Rémi Verschelde
b0f782a0e3 Disable driver fallback to GLES2 by default
GLES2 is not designed to be a drop-in replacement for the GLES3 backend,
so the fallback mode has to be used knowingly. It *can* make sense for
simple projects which make sure to handle the differences between both
rendering backends, but most users should stick to one supported backend.

By making it opt-in, we can now use this parameter to define whether to
export ETC textures to Android and iOS when using GLES3 + Fallback.

When using GLES3 without Fallback on Android, set the proper min GLES
version in the AndroidManifest.

Also made the option boolean and renamed it for clarity and to avoid
conflict with the previous String option (which would always evaluate as
"true" otherwise).

Fixes #26569.
2019-03-05 16:36:46 +01:00
Tomasz Chabora
63a2475f0f Allow to attach script when there's no 'selected node', but selection exists 2019-03-05 16:28:39 +01:00
Vasiliy Makarov
a3d9b7d916 Check cursor line and column
Added a trivial check if cursor.line and cursor.column are valid.
Fix #26245
2019-03-05 18:27:37 +03:00
Gio Aleman
4cf197fa48 Fixed Tileset preview stretching textures 2019-03-05 09:53:08 -05:00
Michael Alexsander Silva Dias
9b52ad5caf Disable coord navigation buttons in TileSet editor when no texture is selected 2019-03-05 11:22:44 -03:00
Tomasz Chabora
4f840168d2 Pause AudioStreamPlayer on SceneTree pause 2019-03-05 15:04:29 +01:00