Nick Swoboda
bf8f763524
Improve error messages related to failing to open files
2020-11-12 17:30:56 -08:00
Rémi Verschelde
acb7d99fce
Merge pull request #43449 from nekomatata/line_edit_window_pos
...
Expose LineEdit scroll offset to scripts
2020-11-11 13:18:55 +01:00
PouleyKetchoupp
4775db1600
Expose LineEdit scroll offset to scripts
2020-11-11 10:07:31 +01:00
Rémi Verschelde
9d2e8f2f27
Variant: Rename Type::_RID to Type::RID
...
The underscore prefix was used to avoid the conflict between the `RID` class
name and the matching enum value in `Variant::Type`.
This can be fixed differently by prefixing uses of the `RID` class in `Variant`
with the scope resolution operator, as done already for `AABB`.
2020-11-09 16:29:04 +01:00
reduz
221a2a1742
Refactored variant constructor logic
2020-11-09 08:54:43 -03:00
Eric M
c482e8ec85
Added hysteresis for popup sub-menus
...
This adds a small lag effect when opening submenus which allow the user to move directly to an item on the submenu without worrying about avoiding the autohide regions.
2020-11-08 13:28:23 +10:00
reduz
127458ed17
Reorganized core/ directory, it was too fatty already
...
-Removed FuncRef, since Callable makes it obsolete
-Removed int_types.h as its obsolete in c++11+
-Changed color names code
2020-11-07 20:17:12 -03:00
Rémi Verschelde
52c1b5fc41
Merge pull request #43283 from Calinou/color-remove-contrasted
...
Remove `Color.contrasted()` as its behavior is barely useful
2020-11-06 10:17:12 +01:00
bruvzg
061f65e410
Fix uninitialised variables in the BaseMaterial3D.
2020-11-06 10:17:11 +02:00
Michael Alexsander
04ebe4e7a4
Fix WAV resources ignoring the AudioServer's 'global_rate_scale' value
2020-11-04 17:03:54 -03:00
Rémi Verschelde
424cd00f8b
doc: Sync classref with current source + fixup some bindings
...
Includes various changes triggered by the refactoring of method bindings.
2020-11-04 15:38:26 +01:00
reduz
f123981a96
Implement DirectionalLight2D
...
Also separated Light2D in PointLight2D and DirectionalLight2D.
Used PointLight2D because its more of a point, and it does not work
the same as OmniLight (as shape depends on texture).
Added a few utility methods to Rect2D I needed.
2020-11-04 10:03:01 -03:00
Rémi Verschelde
afef8e30ea
Merge pull request #39635 from Meriipu/master_nodrop
...
do not drop mouseover on WM_MOUSE_EXIT
2020-11-03 20:28:11 +01:00
Hugo Locurcio
7adb6b91b3
Remove Color.contrasted()
as its behavior is barely useful
...
Returning the most contrasting color isn't a trivial task, as there
are often many possible choices. It's usually best left for the user
to implement using a script.
2020-11-03 04:46:08 -05:00
Rémi Verschelde
c5d8dafec4
Tooltips: Improve code clarity and docs
...
The return type for `_make_custom_tooltip` is clarified as Control, and users
should make sure to return a visible node for proper size calculations.
Moreover in the current master branch, a PopupPanel will be added as parent
to the provided tooltip to make it a sub-window.
Clarifies documentation for `Control._make_custom_tooltip`, and shows how to
use the (until now undocumented) "TooltipPanel" and "TooltipLabel" theme types
to style tooltips.
Fixes #39677 .
2020-11-03 09:19:03 +01:00
Marios Staikopoulos
e5d7c7d5fc
Alpha Hash and Alpha2Coverage Implementation
2020-11-02 20:11:20 -08:00
Rémi Verschelde
223e361c4e
Merge pull request #42703 from RandomShaper/fix_anim_backwards
...
Fix premature end of animation playing backwards
2020-11-01 15:47:39 +01:00
reduz
0e6664539d
Refactor pixel snapping.
...
-Rename pixel_snap to snap_2d_to_vertices
-Added snap_2d_to_transforms which is more useful
Fixes #41814
Solves proposal https://github.com/godotengine/godot-proposals/issues/1666
Supersedes #35606 , supersedes #41535 , supersedes #41534
2020-10-30 08:57:32 -03:00
volzhs
8a588343db
Fix crash in TabContainer in case of no content at all
2020-10-29 19:52:21 +09:00
Juan Linietsky
a65481dd35
Update scene/resources/dynamic_font.cpp
...
Co-authored-by: Hugo Locurcio <hugo.locurcio@hugo.pro>
2020-10-28 22:09:37 -03:00
reduz
8ab9b39707
Implement CanvasGroup and CanvasItem clipping
...
-Allows merging several 2D objects into a single draw operation
-Use current node to clip children nodes
-Further fixes to Vulkan barriers
-Changed font texture generation to white, fixes dark eges when blurred
-Other small misc fixes to backbuffer code.
2020-10-28 18:53:32 -03:00
Yuri Roubinsky
c3df61a602
Removed redundant line from TextEdit
...
introduced in https://github.com/godotengine/godot/pull/43026
2020-10-28 12:56:20 +03:00
Rémi Verschelde
6328f7a45c
Merge pull request #43147 from Mallos/fix/sprite2d-rect
...
fix(sprite2d): Rect is not handling pixel snap
2020-10-28 10:16:34 +01:00
Rémi Verschelde
60ad64a101
Merge pull request #42766 from volzhs/tab-container
...
Put unselected tabs back in TabContainer control
2020-10-28 09:51:41 +01:00
Eric Tuvesson
e892a92ad6
fix(sprite2d): Rect is not handling pixel snap
...
related https://github.com/godotengine/godot/issues/42985
2020-10-27 23:34:19 +01:00
Hugo Locurcio
c3b246e6af
Rename the type
parameter to node_type
in Theme and Control
...
This makes it clearer that it expects a node type as a string
(such as "Label") instead of a type like "TYPE_ARRAY".
This is backwards-compatible since only the name of the parameter
is changed, not its order.
2020-10-27 14:58:52 +01:00
Gilles Roudière
131a7b58c8
Fixes setting top_level not updating the global position
2020-10-27 13:44:35 +01:00
Luke Costello
65eb02b236
Visual Shader Parenthesis fix
...
missing parenthesis were added to prevent conditional statement from interacting with operations
2020-10-27 03:20:29 -04:00
Hugo Locurcio
4dd5a17636
Fix uninitialized Viewport::use_debanding
member variable
2020-10-26 21:37:33 +01:00
Rémi Verschelde
2de498d438
Merge pull request #42969 from Klowner/fixes/42967-popup-position
...
include parent display location in popup location calculation
2020-10-26 09:26:00 +01:00
Rémi Verschelde
8ee44cc60c
Merge pull request #43075 from Xrayez/color-ramp-to-gradient
...
Fixup `ColorRamp` to `Gradient` renames
2020-10-26 08:44:27 +01:00
Devin Curry
b9c35af15d
ScriptEditor: Fix line number gutter drag select
...
Fixes issue #42722
2020-10-25 12:13:54 -07:00
Andrii Doroshenko (Xrayez)
8ce2f401dd
Fixup ColorRamp
to Gradient
renames
2020-10-25 18:32:44 +02:00
reduz
84d734da0e
Refactored 2D shader and lighting system
...
-Removed normal/specular properties from nodes
-Create CanvasTexture, which can contain normal/specular channels
-Refactored, optimized and simplified 2D shaders
-Use atlas for light textures.
-Use a shadow atlas for shadow textures.
-Use both items aboves to make light rendering stateless (faster).
-Reorganized uniform sets for more efficiency.
2020-10-24 15:57:25 -03:00
Aaron Franke
961ee3a1d7
Rename button group property to button_group
2020-10-24 01:30:18 -04:00
Yuri Roubinsky
4c65dc975c
Shows ColorRect in Color constants autocompletion
2020-10-23 19:03:50 +03:00
Rémi Verschelde
f0f8864c9c
Merge pull request #42907 from Xrayez/add-ref-rect-border-width
...
Add `border_width` to `ReferenceRect`
2020-10-22 15:58:12 +02:00
clayjohn
6299575250
Add sky_only setting to DirectionalLight3Ds
2020-10-21 23:28:08 -07:00
Mark Riedesel
5a507df255
include parent display location in popup location calculation
2020-10-21 12:58:39 -04:00
Yuri Roubinsky
f2b98b4106
Remove printing of windowpos/screenpos in MenuButton
2020-10-21 09:58:37 +03:00
Andrii Doroshenko (Xrayez)
aef00021a9
Add border_width
to ReferenceRect
...
Exposes a hidden parameter behind `CanvasItem.draw_rect()`.
2020-10-20 13:58:50 +03:00
Yuri Roubinsky
4f4287243c
Removed underscore from GraphEdit begin/end_node_move signals
2020-10-20 09:22:40 +03:00
Rémi Verschelde
970d0d433b
Merge pull request #42891 from gvaneyck/graph-begin-node-move-timing
...
Fix emit_signal timing for GraphEdit's begin/end node move
2020-10-20 07:48:06 +02:00
Gabriel Van Eyck
fbc095dc78
Fix emit_signal timing for GraphEdit's begin/end node move
2020-10-19 18:25:07 -07:00
Rémi Verschelde
ff48a6a3bc
Merge pull request #42874 from dreamsComeTrue/text-edit-bounds-fix
...
TextEdit - fix valid bounds in 'set_line'.
2020-10-19 22:37:41 +02:00
Rémi Verschelde
17f682226d
Merge pull request #42904 from Xrayez/rects-rename-fixup
...
Fixup `ColorRect` and `TextureRect` renames
2020-10-19 22:34:40 +02:00
Juan Linietsky
85ebf40b6c
Merge pull request #38097 from Calinou/add-viewport-debanding
...
Add a debanding property to Viewport
2020-10-19 14:15:44 -03:00
Andrii Doroshenko (Xrayez)
9c3a33a4e8
Fixup ColorRect
and TextureRect
renames
2020-10-19 19:34:35 +03:00
Rémi Verschelde
6b20859984
Merge pull request #42558 from Chaosus/vs_curve
...
Added visual shader node to easy gather data from a CurveTexture
2020-10-19 14:58:45 +02:00
Juan Linietsky
53d5a252bb
Revert "Replace SAO implementation with MSSAO"
2020-10-18 19:27:51 -03:00
Juan Linietsky
d98261ab8f
Merge pull request #42077 from clayjohn/MSSAO
...
Replace SAO implementation with MSSAO
2020-10-18 18:34:43 -03:00
Juan Linietsky
e799a2ba45
Merge pull request #42201 from clayjohn/Vulkan-new-glow
...
Optimize Glow with local memory
2020-10-18 18:32:36 -03:00
clayjohn
366ee46774
Replace SAO implementation with MSSAO
2020-10-18 13:15:51 -07:00
clayjohn
63a34b93aa
Optimize Glow with local memory
2020-10-18 11:37:12 -07:00
Rémi Verschelde
d9e5c355e5
Merge pull request #41418 from clayjohn/Vulkan-aerial
...
Add aerial perspective to fixed fog
2020-10-18 17:32:19 +02:00
reduz
ee06a70ea6
Refactor MethodBind to use variadic templates
...
Removed make_binders and the old style generated binders.
2020-10-18 12:28:44 +02:00
Yuri Roubinsky
f402e1e675
Added VisualShaderNodeCurve to easy gather data from a CurveTexture
2020-10-18 09:57:15 +03:00
clayjohn
8c21c26fb5
Add aerial perspective to fixed fog
2020-10-17 10:53:07 -07:00
Dominik 'dreamsComeTrue' Jasiński
99c8a07919
TextEdit - fix valid bounds in 'set_line'. Fixes #41967
2020-10-17 17:59:15 +02:00
Rémi Verschelde
14e3d68dd9
Merge pull request #42778 from madmiraal/remove-get_layers
...
Remove old RigidBody get_layers() methods.
2020-10-15 18:40:21 +02:00
Paulb23
0d0a856ad5
Fixed main gutter not drawing on item toggle
2020-10-13 18:01:59 +01:00
Marcel Admiraal
a17fdaef09
Remove old RigidBody layers property and methods.
2020-10-13 16:59:49 +01:00
volzhs
9eaa5ffab5
Put unselected tabs back in TabContainer control
2020-10-13 22:05:26 +09:00
FIF15
0e7e25d488
Remove redundant property "enabled_focus_mode"
...
Fixes #41529 .
2020-10-13 10:04:37 +02:00
volzhs
cac4fedb2a
Respect Tree.set_icon_max_width size for drawing selection box
2020-10-13 10:38:32 +09:00
Rémi Verschelde
d22791c271
doc: Sync classref with current source
2020-10-12 10:58:02 +02:00
Pedro J. Estébanez
826af5b28a
Fix premature end of animation playing backwards
2020-10-10 21:37:28 +02:00
Yuri Roubinsky
f4eef287f9
Adds Metallic to spatial light input of visual shaders
2020-10-10 16:55:36 +03:00
reduz
26f5bd245c
Implement GPU Particle Collisions
...
-Sphere Attractor
-Box Attractor
-Vector Field
-Sphere Collider
-Box Collider
-Baked SDF Collider
-Heightmap Collider
2020-10-09 13:25:47 -03:00
PouleyKetchoupp
4686200f0e
Fix Popup crash in single window mode
...
focus_target->exclusive_child could be invalidated during the call to
focus_target->grab_focus(), now using the same logic with safe accesses
to focus_target.
2020-10-09 11:20:38 +02:00
Duroxxigar
8bfeb9d6ae
Added a more helpful error message when there is no current animation for the animation player
2020-10-06 01:21:23 -04:00
Rémi Verschelde
2e99d0b26f
glTF: Fix parsing image data with mimeType
undefined
...
The glTF 2.0 spec only makes `mimeType` mandatory for `bufferView` image data,
so the previous logic to handle URIs with base64-encoded images could fail if
`mimeType` is undefined.
The logic was documented and refactored to better handle the spec, notably:
- `uri` and `bufferView` are now mutually exclusive, and only the latter fails
if `mimeType` is undefined.
- `uri` with a file path will now respect the `mimeType` if defined, and thus
attempt loading the file with the specified format (even if its extension is
not the one expected for this format). So we can support bad extensions (PNG
data with `.jpg` extension) or custom ones (PNG data in `.img` file for
example).
- `uri` with base64 encoded data will infer MIME type from `data:image/png` or
`data:image/jpeg` if it was not documented in `mimeType` initially.
- `uri` with base64 encoded data, no `mimeType` and `application/octet-stream`
or `application/gltf-buffer` will fall back to trying both PNG and JPEG
loaders.
Fully fixes #33796 (and fixes up #42501 ).
2020-10-05 13:06:50 +02:00
Yuri Roubinsky
2d45f7ac87
Fix typo in VisualShaderNodeSample3D::generate_code
2020-10-04 10:34:58 +03:00
Rémi Verschelde
b5eea37fb0
Merge pull request #42518 from Duroxxigar/update-getter-and-setters
...
Updated getters and setters names for toplevel
2020-10-03 21:53:35 +02:00
Yuri Roubinsky
e3006d4064
Fix def parameter in Texture visual shader nodes for sky/particles modes
2020-10-03 22:20:45 +03:00
Paulb23
ee4a1c99a7
Switch from recursion to iterative for backfilling colour regions
2020-10-03 14:58:55 +01:00
Duroxxigar
4834e14493
Updated getters and setters names for toplevel
2020-10-02 19:09:01 -04:00
Marcel Admiraal
2bb0427662
Remove area or body from map before emitting signals.
2020-10-02 17:03:09 +01:00
Rémi Verschelde
19f72beebb
Merge pull request #42451 from Duroxxigar/rename-toplevel
...
Renamed toplevel to be top_level
2020-10-02 10:57:23 +02:00
Rémi Verschelde
7b18a7143b
Better validate CollisionShape3D config. warning after #38743
...
Relates to #42479 , though I don't think it would crash in the master version.
2020-10-02 09:41:55 +02:00
Yuri Roubinsky
dc713e149f
Fix VisualShaderNode::set_output_port_connected
2020-10-02 09:06:13 +03:00
Rémi Verschelde
f3e557780f
Merge pull request #37194 from lolligerjoj/expose_val_interp
...
Expose Animation::value_track_interpolate to GDscript
2020-10-01 15:27:32 +02:00
lolligerjoj
ff4af94414
Expose Animation::value_track_interpolate to GDscript
2020-10-01 14:27:09 +02:00
Rémi Verschelde
12091b39d2
Merge pull request #38743 from arrowinaknee/node-config-warnings
...
Update all get_configuration_warning() to retrieve warnings from the parent
2020-10-01 14:03:29 +02:00
Duroxxigar
b687ace7f9
Renamed toplevel to be top_level
2020-10-01 03:17:33 -04:00
Duroxxigar
85a8dbb7b6
Made toplevel a property for Node3D and CanvasItem
2020-10-01 02:43:30 -04:00
Danil Alexeev
02c0edac60
Improve appearance of [connection] and [editable] sections in .tscn files
2020-09-29 14:01:01 +03:00
Rémi Verschelde
c217498aa6
Merge pull request #41895 from 11thPenguin/master
...
Fix minor typo, gui_hid -> gui_hide
2020-09-29 10:35:12 +02:00
Rémi Verschelde
bebf424c80
Merge pull request #42078 from Chaosus/vs_rename_type
...
Renames Type to OpType in VisualShaderNodeMultiplyAdd
2020-09-29 10:34:22 +02:00
Meriipu
e8804b9978
Make the currently hovered control get updated on mouse-release
...
Previously, when the mouse was released after dragging a scrollbar,
its highlight was not dropped (if the mouse cursor was still inside
the viewport). This seems to be because the currently hovered control
only gets updated when the mouse is moved.
This commit fixes the dropping of the cosmetic highlight by running
the check for whether the currently hovered control has changed on
mouse-clicks, in addition to to the existing mouse-movements.
2020-09-28 16:04:01 +02:00
Rémi Verschelde
77ca3c20d8
Merge pull request #42092 from DashCell/dropping_file_on_parrent_directory_fix
...
Dropping file on parent directory fixed
2020-09-28 10:36:47 +02:00
Rémi Verschelde
5e9194086d
Merge pull request #35924 from doot24/fix_#35863
...
Fixed Gradient.remove_point not allowing fewer than two points.
2020-09-27 09:51:24 +02:00
Rémi Verschelde
96a51b108c
Merge pull request #42310 from Calinou/add-styleboxflat-shadow-property-hint
...
Add a property hint to StyleBoxFlat `shadow_size` for editor usability
2020-09-25 12:44:43 +02:00
Hugo Locurcio
feb4002017
Add a property hint to StyleBoxFlat shadow_size
for editor usability
...
This adds a visible range to the slider so it can be dragged more easily.
This closes #42309 .
2020-09-24 17:41:40 +02:00
Rémi Verschelde
f87c75f77b
Merge pull request #41934 from timothyqiu/parallax-ignore-zoom
...
Fixes ParallaxLayer offset when camera zoom is ignored
2020-09-24 15:23:24 +02:00
Rémi Verschelde
915ac7360a
Merge pull request #42066 from dalexeev/output_copy
...
Improvement for the Copy button in the Output Log
2020-09-24 15:18:59 +02:00
Rémi Verschelde
0c449aefa2
Merge pull request #42173 from nekomatata/popup-menu-click-delay
...
Fix popup menu item selected when opening the menu
2020-09-23 09:36:00 +02:00
Rémi Verschelde
77945a91d2
Merge pull request #42260 from kotelifelif/42255
...
CPUParticles emission shape values update dynamically
2020-09-23 09:34:48 +02:00
booer
113921b56c
Fixes updating CPUParticles emmision shape values
2020-09-23 14:17:47 +07:00
Rémi Verschelde
cadba267b5
Merge pull request #42203 from rcorre/physicsmat_hint
...
Fix hints on PhysicsMaterial bounce/friction.
2020-09-23 09:06:59 +02:00