Commit Graph

26523 Commits

Author SHA1 Message Date
Rémi Verschelde 6203c38fd1 Merge pull request #35993 from akien-mga/who-let-the-latency-out
Workaround WebM playback bug after AudioServer latency fixes
2020-02-08 15:36:50 +01:00
Rémi Verschelde 3a5f45a6d1 Merge pull request #35682 from nathanwfranke/canvas-cull-control-fix
Fix bug where canvas culls things at origin with size 0
2020-02-08 14:14:10 +01:00
Raul Santos 4b79ef5ebe
Avoid going out of bounds in IsSubsequenceOf
Closes #35598
2020-02-08 12:07:41 +01:00
Marcel Admiraal d2b02a3d7b Remove do{ } while(0) wrapper around error macros.
As pointed out by Faless, a do{ } while(0) wrapper around a continue or
break just ends the do{ } while(0) loop. The do{ } while(0) loop exists
to enable the macro to be used as a function which requires a semicolon.

The alternative approach is to use an if(1) { } else ((void)0) wrapper.
Since the macro already has an if(unlikely(m_cond)) { } this patch simply
adds the else ((void)0) to this if statement instead.

For consistency all the macros have been updated in the same way, and
trailing else warnings corrected. However, the wrappers around ERR_PRINT
and WARN_PRINT were removed, because they generated too many ambiguous
trailing else warnings. They are also single line macros so a wrapper is
not needed.
2020-02-08 11:21:46 +01:00
Andrea Catania 374432d074 Added feature to move physical bones with skeleton when not simulating physics 2020-02-08 09:52:58 +01:00
Fabio Alessandrelli 343b29a651 Merge pull request #35381 from Calinou/html5-export-favicon
Export and reference the icon as favicon when exporting to HTML5
2020-02-08 04:45:53 +01:00
Haoyu Qiu 206b9f2d23 Uses split cursor for SplitContainer 2020-02-08 09:23:38 +08:00
nathanwfranke e5cb557b73 Fix bug where Control at origin with 0 size not rendered
Make a new method instead to make the code more elegant


Move Function down a bit
2020-02-07 14:43:27 -06:00
Rémi Verschelde 3bd3462d61
Merge pull request #32496 from bitstopper/master
Fixes broken CPUParticles2D AtlasTextures usage
2020-02-07 21:12:19 +01:00
Rémi Verschelde da411d1625 Workaround WebM playback bug after AudioServer latency fixes
af9bb0ea15 fixed AudioServer's
`get_output_delay()` (which used to always return 0) while renaming it
to `get_output_latency()`. It now returns the latency from the
AudioDriver, which can be non-0.

While this was a clear bugfix, it broke playback for WebM files without
audio track. It seems like the playback code, even though it queried
the output delay to calculate a time compensation, was designed to work
even though the delay value was actually bogus. Now that it's correct,
it's not working.

As a workaround we comment out uses of the output latency, restoring
the behavior of Godot 3.1.

This code should still be reviewed by someone more versed in video
playback and fixed to properly account for the non-0 driver latency.

Fixes #35760.
2020-02-07 21:01:05 +01:00
Rémi Verschelde cdce912de7
Merge pull request #35986 from Chaosus/shader_index
Allow non-constants for indexing builtin types in shaders
2020-02-07 20:45:57 +01:00
Rémi Verschelde 6b42d83ff1
Merge pull request #35950 from Chaosus/vs_scalar_uniform_range
Implemented hint_range for VisualShaderNodeScalarUniform
2020-02-07 20:45:40 +01:00
Rémi Verschelde a4b8dbdc0b
Merge pull request #35142 from clayjohn/GLES2-add-3d-textures
Add support for 3D textures to GLES2
2020-02-07 18:36:24 +01:00
Rémi Verschelde 3fba20141b
Merge pull request #35925 from seenloitering/doc-Skeleton2D
Add documentation for Skeleton2D
2020-02-07 17:44:14 +01:00
Yuri Roubinsky 8469a383ec Allow non-constants for indexing builtin types in shaders 2020-02-07 18:41:26 +03:00
Yuri Roubinsky df92446950
Merge pull request #35983 from Chaosus/fix_shader_crash
Prevent shader crash if invalid builtin used after array member accessor
2020-02-07 17:54:13 +03:00
Yuri Roubinsky 22ad83edae Implemented hint_range for VisualShaderNodeScalarUniform 2020-02-07 17:04:24 +03:00
Rémi Verschelde 4e2dbb1bc0 SCons: Split libmodules.a in folder-based libs
This removes the need for the hacky split_libmodules logic on Windows,
since all libs are now of manageable size.
2020-02-07 14:19:51 +01:00
Rémi Verschelde 7711e9f93b
Merge pull request #35963 from akien-mga/scons-modules-enabled-header
SCons: Refactor module defines into a generated header, cleanup
2020-02-07 14:19:32 +01:00
Yuri Roubinsky 3a70566b15 Prevent shader crash if invalid builtin used after array member accessor 2020-02-07 15:21:15 +03:00
Rémi Verschelde f3726ee994 Use modules_enabled.gen.h to improve inter dependency checks
- Fix build with gdscript module disabled. Fixes #31011.
- Remove unused `gdscript` compile option.
- Fix build with regex module disabled.
- Fix ImageLoaderSVG to forward declare thirdparty structs.
2020-02-07 11:50:40 +01:00
Rémi Verschelde b7297fb39c SCons: Generate header with info on which modules are enabled
We already had `MODULE_*_ENABLED` defines but only in the modules
environment, and a few custom `*_ENABLED` defines in the main env
when we needed the information in core.

Now this is defined in a single header which can be included in the
files that need this information.
2020-02-07 11:31:37 +01:00
Rémi Verschelde 00f46452b0
Merge pull request #35979 from akien-mga/fix-graphnode-mouse-filter-35978
GraphEdit: Fix regression with GraphNode mouse filter
2020-02-07 11:04:28 +01:00
Rémi Verschelde e18c65634f GraphEdit: Fix regression with GraphNode mouse filter
PR #35068 made Container (which GraphNode inherits) default to
MOUSE_FILTER_PASS, so I removed the manual override, but it turns out
that GraphNode's constructor still overrides it to MOUSE_FILTER_STOP.

Another fix could be to remove the STOP in the constructor, but I don't
know if it's there for a specific reason (e.g. to have GraphNodes STOP
by default, but PASS in a specific case).

Fixes #35978.
2020-02-07 10:09:44 +01:00
MCrafterzz 812fea7ccd Changed transformation handles y arrow to match positive y 2020-02-07 09:07:46 +01:00
Rémi Verschelde 642de8e789
Merge pull request #35974 from timothyqiu/list-docs
Completes doc for ItemList and Tree
2020-02-07 08:31:23 +01:00
Rémi Verschelde cf462d7eca
Merge pull request #35969 from muiroc/js_builderr
Fix javascript platform build
2020-02-07 08:22:19 +01:00
Haoyu Qiu 7a41c44be2 Completes doc for ItemList and Tree 2020-02-07 12:52:53 +08:00
muiroc e563b47dbe Fix javascript platform build 2020-02-07 01:46:15 +01:00
Yuri Roubinsky d9b39abbeb Fixed Grammer 2020-02-06 22:00:48 +02:00
Rémi Verschelde 195655a995
Merge pull request #35959 from Anutrix/removeTheLastERR_PRINTS
Remove the last ERR_PRINTS that was missed by #33391
2020-02-06 20:12:50 +01:00
unknown 4aac44f173 Remove the last ERR_PRINTS that was missed by #33391 2020-02-07 00:15:46 +05:30
unknown 88da49beee Added LGTM Alert Badge 2020-02-06 23:29:54 +05:30
Yuri Roubinsky 0812f991f0
Merge pull request #35952 from Chaosus/shader_editor_enchance
Few enchancements for shader editor
2020-02-06 19:52:01 +03:00
Fabio Alessandrelli e85330231c Fix UPNP on windows after #30205.
The problem could be related to different byte ordering when copying
the interface address over the binding address.
2020-02-06 16:26:02 +01:00
Yuri Roubinsky 24368206ca Few enchancements for shader editor 2020-02-06 17:50:12 +03:00
Rémi Verschelde f003b3efaa
Merge pull request #35068 from akien-mga/containers-mouse-filter-pass
Use MOUSE_FILTER_PASS for all containers
2020-02-06 12:23:39 +01:00
Rémi Verschelde d705f78098
Merge pull request #35933 from akien-mga/obsolete-dockerfile
Drop obsolete Dockerfile, we now have official build containers
2020-02-06 12:22:07 +01:00
Rémi Verschelde 40d1b0bfdb
Merge pull request #35906 from muiroc/anim_node_value_bug
Pass missing args in AnimationNode script calls
2020-02-06 11:38:31 +01:00
Rémi Verschelde f5fa2b41df
Merge pull request #35892 from Calinou/project-manager-allow-hidden-files
Allow existing hidden files/directories when creating a new project
2020-02-06 11:21:17 +01:00
Rémi Verschelde d0e90cf07a
Merge pull request #35749 from Chaosus/vst_fix_constants
Fix GlobalConstant/BasicTypeConstant return type in visual scripts
2020-02-06 11:19:08 +01:00
Rémi Verschelde e92ab159e6
Merge pull request #35727 from Calinou/profiler-set-background-color
Use the editor background color for the profiler graph
2020-02-06 11:13:57 +01:00
Rémi Verschelde 6aaff5dc68
Merge pull request #35731 from timothyqiu/texture-region-gestures
Adds pan and zoom gestures to TextureRegion editor
2020-02-06 11:12:34 +01:00
Rémi Verschelde 17ce184921
Merge pull request #35886 from doot24/fix_#35871
Fixed Godot not recognising 150x150 icon for uwp export #35871
2020-02-06 10:31:31 +01:00
Rémi Verschelde f120acceb8
Merge pull request #35887 from dankan1890/quick_fix
Fixed String::humanize_size crash.
2020-02-06 10:29:00 +01:00
Rémi Verschelde 449656bcbb
Merge pull request #35867 from timothyqiu/path-update
Updates Path2D in debugging if navigation is visible
2020-02-06 10:23:31 +01:00
Rémi Verschelde 309d9ecf68
Merge pull request #35938 from Calinou/export-android-remove-progress
Remove per-file progress reporting when exporting to Android
2020-02-06 10:00:16 +01:00
Rémi Verschelde 27926053f7
Merge pull request #35939 from timothyqiu/project-icon
Centers project icon vertically in project list
2020-02-06 08:47:40 +01:00
Haoyu Qiu c1011178c0 Centers icon vertically in project list 2020-02-06 10:56:43 +08:00
Hugo Locurcio 2dd3a01d11
Remove per-file progress reporting when exporting to Android
Calling `step()` on EditorProgress too often will slow down the
rest of the editor, so it's best avoided. This is also more consistent
with other exporters, as most of them don't report per-file progress
either.

Exporting a 2D project with ~1,100 files to Android now takes
about 10 seconds from a debug editor build instead of 65 seconds.

This closes #30850.
2020-02-05 22:24:39 +01:00