Francois Belair
a4a2ab3ee0
Add cache to color picker for presets
...
This prevents loading from the project metadata more than once,
significantly saving performance with nodes that have color pickers.
2021-07-07 18:06:31 -04:00
kobewi
ff7cae4c4c
Allow to create a node at specific position
2021-07-07 13:19:59 +02:00
kleonc
23ad87cc92
Add AcceptDialog::remove_button method
2021-07-06 18:27:03 +02:00
Michael Alexsander
d453b59cba
Make invisible SplitContainer
nodes correctly calculate the minimal size of its children
...
(cherry picked from commit e4d56e4c62
)
2021-07-06 11:10:46 +02:00
Eric
09b231e15f
Enable Camera2D smoothing on limit change
...
(cherry picked from commit 525ad7c37e
)
2021-07-06 11:10:35 +02:00
Rémi Verschelde
ef3c346df2
Merge pull request #49835 from nekomatata/soft-body-disable-physics-3.x
...
[3.x] Support for disabling physics on SoftBody
2021-07-01 10:01:33 +02:00
trollodel
814e25d2d8
Fix GraphNode port position when the control has the Expand flag
...
(cherry picked from commit 07c3b40aa2
)
2021-06-29 14:02:23 +02:00
Hugo Locurcio
e7d6f8b8b8
Allow a top and bottom radius equal to 0 in CylinderMesh
...
The CylinderMesh generation code handles this special case and
avoids generating the top and bottom faces if their radius is equal
to 0. This improves performance by reducing the number of vertices
to draw.
If both values are set to 0, nothing will be visible but the mesh
generation will still succeed.
This also improves the CylinderMesh class documentation.
(cherry picked from commit b4ed84ba2b
)
2021-06-29 14:02:22 +02:00
Pedro J. Estébanez
cd96e30fee
Remove side effects of scene save
...
(cherry picked from commit 598fd51277
)
2021-06-29 13:13:06 +02:00
PouleyKetchoupp
cad2ba013a
Fix export var override in PackedScene at runtime
...
Regression fix: update_exports is tool only and should be used only in
the editor, otherwise it can cause export variable overrides from
instances to be discarded in favor of the parent's value.
(cherry picked from commit f1587c8a7d
)
2021-06-29 13:12:52 +02:00
floppyhammer
fa77e501f7
Improve nine patch behavior of TextureProgressBar
...
(cherry picked from commit b08dc1ea35
)
2021-06-29 12:59:23 +02:00
Rémi Verschelde
c550033420
Merge pull request #49955 from Calinou/prevent-setting-big-small-collision-mask-layer-3.x
...
Prevent setting too big or too small Collision Mask and Layer (3.x)
2021-06-28 14:08:54 +02:00
Rafał Mikrut
cb5faca39a
Prevent setting too big or too small Collision Mask and Layer
2021-06-27 17:40:07 +02:00
Hugo Locurcio
11033be5c6
Fix flipped binormal in SpatialMaterial triplanar mapping
...
This made normal maps on triplanar materials use an inverted Y direction
compared to non-triplanar materials.
2021-06-27 16:32:03 +02:00
PouleyKetchoupp
4694b2b3e4
Support for disabling physics on SoftBody
...
New property physics_enabled, can be useful for optimization purpose.
2021-06-22 11:38:17 -07:00
Yuri Sizov
b91e3237c6
Make relationship lines draw on top of TreeItems
2021-06-21 16:54:59 +03:00
Yuri Sizov
7120be9ff5
Overhaul the theme editor and improve user experience
...
Backport of #49388 , #49772 .
2021-06-21 01:37:54 +03:00
Yuri Sizov
014cb0c33a
Refactor Theme item management in the theme editor
...
Backport of #46593 , #46808 , #49227
2021-06-20 20:34:37 +03:00
Rémi Verschelde
03f275e66f
Merge pull request #49167 from amoriqbal/3.3-inspector-patch
...
Fixed inspector not updating anchor
2021-06-20 12:42:21 +02:00
Rémi Verschelde
6fecaddbec
Merge pull request #49731 from Calinou/cylindermesh-allow-zero-rings-3.x
...
Tweak CylinderMesh `rings` property hint to allow a value of 0
2021-06-20 00:44:08 +02:00
Hugo Locurcio
3143f5fcc5
Use double-sided material for RayCast
...
This makes RayCasts visible if the camera is fully inside one
(e.g. a RayCast parented to the current Camera).
2021-06-19 09:16:42 +02:00
Hugo Locurcio
a82c90ca55
Tweak CylinderMesh rings
property hint to allow a value of 0
...
A value of 0 rings is valid and results in a non-subdivided cylinder.
Compared to the previous lowest allowed value (1), a value of 0 halves
the triangle count in any cylinder.
2021-06-19 08:52:24 +02:00
Hugo Locurcio
a6a6ad5c08
Add custom debug shape thickness and color options to RayCast
...
This backports the improved RayCast debug drawing functionality
from the `master` branch.
`ArrayMesh.clear_surfaces()` was also backported from the `master`
branch and exposed because the new debug drawing code requires it.
2021-06-19 06:01:25 +02:00
Marcel Admiraal
7e03bd1671
Remove duplicate WARN_PRINTS macro
2021-06-18 12:57:59 +01:00
Rémi Verschelde
fc95c4d84c
Merge pull request #49476 from nekomatata/kinematic-collision-rid-3.x
...
[3.x] Expose collider RID in 2D/3D kinematic collision
2021-06-18 12:32:42 +02:00
Rémi Verschelde
c7f27f1d9d
Merge pull request #48651 from tavurth/3.x
...
Port HTTPRequest gzip compression to 3.4
2021-06-18 02:01:11 +02:00
kleonc
ce763fe402
TextureButton Update min size on any texture change
...
(cherry picked from commit 6c3c269f24
)
2021-06-17 12:47:54 +02:00
Hugo Locurcio
28aacbfe85
Allow higher and lower maximum zoom values in GraphEdit
...
Low zoom values result in unreadable text, but it can still be
useful for previewing purposes.
Eventually, characters could be replaced by rectangles at very low
zoom levels to improve the visual appearance.
(cherry picked from commit 74c584472c
)
2021-06-17 12:47:54 +02:00
Jason Knight
7510e1c24b
Emit button_up signal after setting pressed to false.
...
(cherry picked from commit 4c6ad8abcd
)
2021-06-17 12:47:53 +02:00
PouleyKetchoupp
c957035320
Fix external resource cache regression
2021-06-16 16:07:04 -07:00
Rémi Verschelde
465ab36ddf
Merge pull request #49653 from madmiraal/remove-err_prints-3.x
...
[3.x] Remove duplicate ERR_PRINTS macro
2021-06-16 17:33:22 +02:00
Marcel Admiraal
5a58516231
Remove duplicate ERR_PRINTS macro
2021-06-16 11:56:25 +01:00
Hugo Locurcio
f36c90b82f
Add a soft line length guideline to the script editor
...
The default value is 80. The hard line length guideline's default column
has been moved to 100 to account for the new soft line length guideline.
It can be disabled by setting its value to the same column as the
hard line length guideline.
2021-06-16 06:00:02 +02:00
Rémi Verschelde
de04394c73
Merge pull request #49625 from nekomatata/fix-sub-resource-cache-3.x
...
[3.x] Fix sub-resource storing the wrong index in cache
2021-06-15 20:39:28 +02:00
PouleyKetchoupp
f9abd1ec0e
Fix sub-resource storing the wrong index in cache
...
1. Backport sub-resource cache fixes from master.
Uses a cache by index to keep sub resource indices consistent.
2. The subindex within Resource wasn't synchronized with the path stored in cache when saving a packed scene. It could cause
sub-resources to be swapped when loading the same packed scene in
the same session.
Now the subindex in Resource reflects the sub-resource path in cache,
making saving and loading sub-resources consistent.
Co-authored-by: latorril <latorril@gmail.com>
2021-06-15 09:54:58 -07:00
Rémi Verschelde
87532d2711
Merge pull request #49606 from azagaya/3.x
...
[3.x] Fix vertical slider `grabber_area` height calculation
2021-06-15 00:12:23 +02:00
azagaya
3b84c32b52
Fix vertical slider grabber_area height calculation
2021-06-14 15:46:09 -03:00
Rémi Verschelde
c45ce768b1
Merge pull request #47854 from mortarroad/3.x-lossless-webp
...
[3.x] Implement lossless WebP encoding
2021-06-11 19:35:47 +02:00
Morris Tabor
5de08ef1d6
Implement lossless WebP encoding
2021-06-11 18:48:04 +02:00
Rémi Verschelde
a9f56d80f0
Merge pull request #49341 from lawnjelly/vis_notifier_fix
2021-06-11 14:43:53 +02:00
Rémi Verschelde
e6a6293146
Merge pull request #49487 from pycbouh/theme-utility-methods-3.x
2021-06-11 13:40:21 +02:00
Marcel Admiraal
88b8f28acc
Move default values from definition to declaration in GraphEdit
2021-06-10 17:17:18 +01:00
Yuri Sizov
fddd09de17
Fix typo in Control's theme icon look-up method
...
Backported from #47544 where it was originally identified
2021-06-10 16:44:24 +03:00
Yuri Sizov
de1ba1f260
Add utility methods to Theme, improve error messages and documentation
...
Backport of relevant parts of #47251 , #49308
2021-06-10 16:44:24 +03:00
Yuri Sizov
83012d6927
Expose missing Theme methods
...
Backport of relevant, non-breaking parts of #37759
2021-06-10 15:31:23 +03:00
PouleyKetchoupp
a146e79758
Expose collider RID in 2D/3D kinematic collision
...
Can be useful to access the colliding body information for bodies
created with the physics server directly.
2021-06-09 18:26:16 -07:00
Rémi Verschelde
d84d5a9665
Merge pull request #49332 from megalobyte/doc-prev-search
...
[3.x] Fix previous search for built-in-docs
2021-06-09 11:11:15 +02:00
Rémi Verschelde
0d68db1b85
Merge pull request #49280 from timothyqiu/rtl-break
...
[3.x] Fix RichTextLabel auto-wrapping on CJK texts
2021-06-09 10:53:11 +02:00
megalobyte
7408b33895
Fix previous search for built-in-docs
2021-06-08 23:11:42 -07:00
Hugo Locurcio
2e6a4aea99
Allow more items in automatic width calculation for TextEdit completion
...
Calculating the width for 100 items takes a millisecond in
a debug build on an i7-6700K. It's likely that the editor can remain
smooth even with 1,000 items, especially in a release build.
2021-06-08 16:21:39 +02:00