Commit graph

29537 commits

Author SHA1 Message Date
Marcel Admiraal
63f4e92195 Use is_equal_approx() instead of vertex_snap when checking if ray is
colliding with equiplanar CSG faces.
2020-06-29 18:21:15 +01:00
Marcel Admiraal
1a559c9889 Create degenerate triangles when inserting an edge into a CSG face.
They will be deleted when the faces are merged, but their edges are
needed for merging faces.
2020-06-29 17:57:07 +01:00
Ignacio Etcheverry
7c3ff85c71 Fix missing DEFVAL in RenderingDevice.storage_buffer_create 2020-06-29 17:13:09 +02:00
Stijn Hinlopen
1ce3a77a42 Open scene selected from Quick Open dialog. 2020-06-29 16:36:12 +02:00
Rémi Verschelde
4599381fad
Merge pull request #39934 from starryalley/fix-videoplayer-race
VideoPlayer: fix possible race condition
2020-06-29 14:52:58 +02:00
Rémi Verschelde
5bf7c769f0
Merge pull request #39945 from akien-mga/x11-XGetWindowProperty-memleak
X11: Ensure XGetWindowProperty data gets freed
2020-06-29 13:57:53 +02:00
simpu
bfadb882b1 Added Custom Performance Monitor and feature to read intermediate values of Monitor
Custom monitors can be added/removed/checked using `Performance.add_custom_monitor`/`Performance.remove_custom_monitor`/`Performance.has_custom_monitor`

The value can be viewed in the `Monitor` tab of Debugger.

Text before `/` is used to categorize the custom monitor.

`EditorPerformanceProfiler` class is created to separate logic from `ScriptEditorDebugger`

User can click on the graph of monitors to read the value at that point.

Graph includes intermediate base lines.
2020-06-29 17:20:29 +05:30
Rémi Verschelde
524f061c01 X11: Ensure XGetWindowProperty data gets freed
And cleanup includes a bit.
2020-06-29 13:32:21 +02:00
bruvzg
00299f15b4
[macOS] Add support for the Apple Silicon (ARM64) build target. 2020-06-29 12:33:51 +03:00
Rémi Verschelde
9fc65fd1f1
Merge pull request #39938 from MCrafterzz/interpolatedcamera
Remove unused interpolate camera icon
2020-06-29 10:59:58 +02:00
Rémi Verschelde
dffd805055
Merge pull request #39824 from mrushyendra/snap_point_polygon
Fix possible accidental duplication of Polygon2D start point
2020-06-29 10:39:00 +02:00
Rémi Verschelde
b474e30136
Merge pull request #39922 from KoBeWi/preloadload
Improve the preload and load descriptions
2020-06-29 10:38:20 +02:00
Rémi Verschelde
9f9fa07f07
Merge pull request #39935 from mrushyendra/datetime_negative
Fix weekday calculation in get_datetime_from_unix_time for negative times
2020-06-29 09:19:01 +02:00
Maganty Rushyendra
aae5f246ff Fix weekday calculation in get_datetime_from_unix_time for negative times
Fix calculation for negative times to ensure Sundays are wrapped around to '0'
instead of '7', making it consistent with the output for positive times.
2020-06-29 14:27:10 +08:00
Mark Kuo
e435d57758 VideoPlayer: fix possible race condition
In set_stream() we write to 'playback' while accessing the same object
in _mix_audio() in audio thread. Protect the 'write' part in
set_stream() to avoid possible crash in _mix_audio() function.
2020-06-29 13:01:54 +10:00
Stijn Hinlopen
7f6e8d25d4 Search ranking: favor filenames over extensions. 2020-06-29 00:45:30 +02:00
Tomasz Chabora
13298ed873 Improve the preload and load descriptions 2020-06-28 20:51:46 +02:00
Rémi Verschelde
481151be09
Merge pull request #39916 from reduz/sdfgi-occ
SDFGI: Slight occlusion improvements.
2020-06-28 14:42:03 +02:00
Juan Linietsky
b1aa24ea3c Slight occlusion improvements. 2020-06-28 09:11:21 -03:00
Rémi Verschelde
e1ef3f2da6
Merge pull request #39904 from m4gr3d/fix_focus_aware_option_master
Fix the logic to enable focus awareness
2020-06-28 09:09:38 +02:00
Rémi Verschelde
46b36805d9
Merge pull request #39910 from starryalley/fix-videoplayer-file-close
VideoStreamGDNative: close file in cleanup()
2020-06-28 08:59:42 +02:00
Mark Kuo
3b05d2c989 VideoStreamGDNative: close file in cleanup
We should close the file handle when we are done.
2020-06-28 10:20:07 +10:00
Fredia Huya-Kouadio
2d53b8173e Fix the logic to enable focus awareness 2020-06-27 16:43:08 -07:00
Rémi Verschelde
27378524f2
Merge pull request #39896 from KoBeWi/image_gallery
Generate inspector preview for Image resources
2020-06-27 23:25:43 +02:00
Rémi Verschelde
5054e27aa0
Merge pull request #39885 from hinlopen/improve-quick-open
QuickOpen improvements
2020-06-27 22:07:38 +02:00
Tomasz Chabora
eb6a367cb7 Generate inspector preview for Image resources 2020-06-27 22:03:20 +02:00
Marcel Admiraal
79d3d3d17b Trigger broadphase update when changing collision layer/mask, and
check for collision layer/mask changes in 2D hash grid broadphase update.
2020-06-27 18:34:16 +01:00
PouleyKetchoupp
1043576ff3 Fix errors when creating windows on Windows
Detecting the case where WM_SIZE is received during the window creation.
There's no need to call window_resize on the Vulkan context.

Also creating a WindowData entry early enough to avoid storing a
separate WindowData wrongly associated to INVALID_WINDOW_ID.

Fixes #39199
2020-06-27 18:26:34 +02:00
Stijn Hinlopen
c33707e9b4 Remove directory search results 2020-06-27 17:45:06 +02:00
Rémi Verschelde
ff0583770a
Merge pull request #39869 from Chaosus/shader_fix_return
Prevents usage of return in main shader functions
2020-06-27 17:03:42 +02:00
Rémi Verschelde
c4707bd71b
Merge pull request #39850 from adamreichold/is-position-behind-get-global-transform-once
Call Node3D::get_global_transform and Vector3::dot only once within Camera3D::is_position_behind
2020-06-27 16:50:19 +02:00
Yuri Roubinsky
2ce77e4b57 Prevents usage of return in main shader functions 2020-06-27 17:36:45 +03:00
Adam Reichold
b2a204799a Call Node3D::get_global_transform and Vector3::dot only once within Camera3D::is_position_behind to avoid redundant work. 2020-06-27 16:32:11 +02:00
Rémi Verschelde
759ed89640
Merge pull request #39856 from qarmin/fixes_leaks
Fixes recently introduced shader leaks
2020-06-27 16:11:33 +02:00
qarmin
997d367b51 Fixes recently introduced shader leaks 2020-06-27 15:08:20 +02:00
Rémi Verschelde
db168abe7d
Merge pull request #39637 from MCrafterzz/tilemapinprovements
Make tilemap lines/rectangles their own tools
2020-06-27 11:38:32 +02:00
rileylyman
4285211f40 implement generic filename disambiguation
A static function is added to EditorNode which allows for filename
disambiguation given a list of filenames and the corresponding list of
absolute paths for those files. This function is then used to
disambiguate scene and script tabs in the editor.
2020-06-26 16:12:08 -07:00
Rémi Verschelde
bcf7e51689
Merge pull request #39177 from Calinou/distraction-free-keep-bottom-panel-visible
Keep the bottom panel visible when enabling the distraction-free mode
2020-06-27 00:18:58 +02:00
Hugo Locurcio
e6352d1daa
Keep the bottom panel visible when enabling the distraction-free mode
- Document the `EditorInterface.distraction_free_mode` property.

This closes https://github.com/godotengine/godot-proposals/issues/951.
2020-06-26 22:09:08 +02:00
Rémi Verschelde
b55d859c5f
Merge pull request #39855 from m4gr3d/godot_fragment_master
Enable the ability to use Godot as a subview within an Android app
2020-06-26 22:08:01 +02:00
Rémi Verschelde
b740f645f7
Merge pull request #39754 from akien-mga/canvasitemeditor-fix-dropped-scenes-position
CanvasItemEditor: Fix losing position for drag'n'dropped scenes
2020-06-26 20:54:00 +02:00
Juan Linietsky
a4e200a47a
Merge pull request #39827 from reduz/sdfgi
Addition of SDFGI for open world global illumination
2020-06-26 12:11:54 -03:00
Juan Linietsky
201d606b3d Addition of SDFGI for open world global illumination
Move GI to a deferred pass
2020-06-26 11:06:48 -03:00
Andrii Doroshenko (Xrayez)
da3fbc0296 Expose shape property for shape query parameters classes
Co-authored-by: PouleyKetchoupp <pouleyketchoup@gmail.com>
2020-06-26 16:54:05 +03:00
Marcus Elg
8e2608b2d6 Make tilemap lines/rectangles their own tools 2020-06-26 15:52:09 +02:00
Rémi Verschelde
b92477d77e
Merge pull request #39814 from Xrayez/specific-weird-icons
Don't use arbitrary theme editor icons for scripts with the same name
2020-06-26 08:05:52 +02:00
Rémi Verschelde
87d2397273
Merge pull request #39837 from neikeq/fix-invalid-unbox-long-as-int
Mono/C#: Fix InvalidCast because of attempt to unbox long as int
2020-06-26 07:56:42 +02:00
Rémi Verschelde
aa42bd14ac
Merge pull request #39839 from neikeq/use-/restore-instead-of-/t-restore
Mono/C#: Use /restore instead of /t:restore when building
2020-06-26 07:49:40 +02:00
Rémi Verschelde
38cfaadcf9
Merge pull request #39836 from neikeq/fix-unhandled-exception-print
Mono/C#: Fix unhandled exception not being printed
2020-06-26 07:48:17 +02:00
Maganty Rushyendra
6e60aa3876 Fix undo/redo for bone painting in Polygon2D UV Editor
Fix to ensure that undo/redo works when painting bones in the Polygon2D
UV editor. Previously, bone painting would continue silently in the
background, because a mouse click signalling the end of an edit would
not be appropriately dealt with.
2020-06-26 13:38:05 +08:00