nobuyuki_nyuu
12386a2d80
PopupMenu.get_current_index() bound to ClassDB
...
(cherry picked from commit 35f30086de
)
2020-05-07 13:36:53 +02:00
Stanislav Labzyuk
e3712cf689
Bind set_suffix/get_suffix in Tree
...
(cherry picked from commit ac8814624d
)
2020-05-06 23:31:02 +02:00
Eric M
b7fbdf4bed
Updated editor spin slider to have better behaviour and adjusted control's size_flags_stretch_ratio value range
...
(cherry picked from commit 915ab50673
)
2020-05-06 23:30:28 +02:00
Thakee Nathees
a5a28239a6
Fix: Tween always return true for _get(), _set()
...
(cherry picked from commit 2811268231
)
2020-05-06 23:29:45 +02:00
Yuri Roubinsky
1f89c3bfeb
(3.2) Some fixes for canvas item visual shader inputs
2020-05-05 12:21:25 +03:00
Rémi Verschelde
f629df647d
Revert "Emit signal when animation ends by seek"
...
This reverts commit bf1cc116e1
.
This needs more discussion to avoid breaking some users' expectations.
See #38086 for arguments.
(cherry picked from commit 69f36cea8c
)
2020-05-04 16:10:32 +02:00
Juan Linietsky
7f61710183
Implement Skew in Node2D
...
Skew is x-axis only, because it must be bidirectionally convertible to a 2x3 matrix, but you can subtract it to the rotation to get the effect on y-axis
(cherry picked from commit efb1f7d76b
)
2020-05-04 16:10:22 +02:00
Thomas Riedmair
7e669123f9
Fix performance issue in update_bitmask_region fallback
...
(cherry picked from commit e0f084b924
)
2020-05-04 16:10:22 +02:00
Bastiaan Olij
02b1a5de47
Added missing spring enums for generic_6dof_joint
...
(cherry picked from commit 45d1f41837
)
2020-05-04 16:10:22 +02:00
jitspoe
e0be022b1e
Fix custom w component being uninitialized on CPU particles.
...
(cherry picked from commit 38085f2f6982c491935a434bb45e358dbebe1714)
(cherry picked from commit b9c280b73ff6a13ea490d2da0f2728bcef3038dc)
(cherry picked from commit 895ed2aed7
)
2020-05-04 16:10:22 +02:00
Pedro J. Estébanez
d8be5a9986
Add MODULATE builtin to canvas item shaders
2020-05-04 00:10:24 +02:00
Rémi Verschelde
8426ed2650
Merge pull request #38378 from lawnjelly/kessel_ios_particle
...
Fix uninitialized memory in CPUParticles2D
2020-05-01 15:17:06 +02:00
lawnjelly
9af4c09d1b
Fix uninitialized memory in CPUParticles2D
...
Calls to set_amount can increase the size of the particle array, but do not zero the memory, they only set the active flag to false. This uninitialized memory can be sent to the GPU, possibly as NaNs.
2020-05-01 13:49:53 +01:00
Revan Ji
6a7d50403a
Add set_frame, pause, and oneshot to AnimatedTexture
...
Add API documentation for said changes.
(cherry picked from commit f5029e18ca
)
2020-05-01 11:00:10 +02:00
Darenn
3c26de316e
Fixed bbcode parsing for built-in RichTextEffects in RichTextLabel
...
RichTextEffect can now have a bbcode string starting like one of the built-in.
It was impossible before as the built-in would take precedence over the custom effect that has the same bbcode start.
Example : [fade] would take precedence over [fade_in]
(cherry picked from commit b4e3042cba
)
2020-05-01 10:57:00 +02:00
Sam
68b968ff6c
Resets global pose of IK chain bones being solved, rather than the whole skeleton. Resolves #38026
...
(cherry picked from commit e321d38c0e
)
2020-05-01 10:56:58 +02:00
Bojidar Marinov
4b58d453d4
Expose the cell_size affecting VisibilityNotifier2D precision
...
Refs: #4803
(cherry picked from commit d49ff7aff7
)
2020-05-01 10:56:58 +02:00
John Wigg
ee8b3bef2d
Limit undo stack size
...
The stack size of the undo history of a TextEdit was not limited leading
to potential memory leaks when doing lots of operations on a TextEdit.
This commit adds the option gui/common/text_edit_undo_stack_max_size
to the project settings. The first element of the undo stack is popped
if the stack's size exceeds this value ensuring limited memory usage.
The default stack size setting is 1024.
Fixes #37838 .
(cherry picked from commit 4a82390aaf
)
2020-05-01 10:56:58 +02:00
Andrea Catania
b7dace75c7
Make softbody completelly stiff to attachment point
...
(cherry picked from commit ca7ee56759
)
2020-05-01 10:56:57 +02:00
Rémi Verschelde
a9def52225
Merge pull request #38156 from Calinou/tweak-ssao-property-hints-3.2
...
Tweak SSAO property hints to allow setting more precise values (3.2)
2020-04-25 12:55:33 +02:00
Hugo Locurcio
464fe67e96
Tweak SSAO property hints to allow setting more precise values
...
This was requested by an user on Twitter who was working on a game with a very small-scale world.
2020-04-23 21:59:53 +02:00
Pedro J. Estébanez
07c4dc1b30
Avoid invocation to Object's copy constructor
...
Needed for the next commit. That's the only place in all the Godot code base
where that's attempted and it's not needed because Objects are not meant to
be copied that way.
2020-04-23 12:44:47 +02:00
volzhs
f670f6e351
Emit signal when animation ends by seek
...
(cherry picked from commit bf1cc116e1
)
2020-04-23 11:11:13 +02:00
Andrea Catania
4a6f2b8af6
Activate Physics Process in SpringArm3D.
...
(cherry picked from commit 152303bf51
)
2020-04-20 11:51:30 +02:00
Rémi Verschelde
008e0748c1
Merge pull request #37349 from lawnjelly/kessel32_1
...
GLES2 2d Batch rendering (across items)
2020-04-17 12:55:33 +02:00
asheraryam
93f7e8d8fc
Add "node_unselected" signal for GraphEdit
2020-04-16 16:56:58 +03:00
Michael Alexsander
b4429c325a
Fix incorrect TabContainer documentation for 'get_tab_control()'
...
(cherry picked from commit 8f925b1970
)
2020-04-16 12:57:22 +02:00
Dominik 'dreamsComeTrue' Jasiński
5fdecebee1
Calculate strike-through position correctly
...
Fixes : #37637
(cherry picked from commit 06a79f260c
)
2020-04-16 12:57:22 +02:00
Marcel Admiraal
103278d84b
Run SpringArm3D's process within physics.
...
(cherry picked from commit 188bb6f867
)
2020-04-16 12:57:22 +02:00
lawnjelly
b6d652367b
Items and draw calls added to IDE Monitor in '2d' section
...
This adds 2 new values (items and draw calls) to the performance monitor in a '2d' section, rather than reusing the 3d values in the 'raster' section.
This makes it far easier to optimize games to minimize drawcalls.
2020-04-16 11:52:22 +01:00
theludovyc
58fcbc2b06
Remove unused ofs variable
...
(cherry picked from commit 875c994109
)
2020-04-16 12:47:18 +02:00
Guilherme Felipe
ddde3819d6
Fix TextureRect::flip_* when used with atlas texture
...
Fix #37526
(cherry picked from commit fb2d2dd5d0
)
2020-04-16 12:47:18 +02:00
PouleyKetchoupp
18c5ef5473
Add style for highlighted Slider grab area
...
(cherry picked from commit 4c8173af0f
)
2020-04-16 12:47:17 +02:00
SkyJJ
92df8cc83a
Fix profiler frame number stops updating when window is minimized
...
(cherry picked from commit c1ee20a05d
)
2020-04-16 12:01:52 +02:00
Leleat
8da00fbfc7
fixed PopupMenus letterjumping on any InputEvent
...
(cherry picked from commit 8a5660f3d1
)
2020-04-16 11:58:14 +02:00
MickeMakaron
e3ca6d87ad
Handle huge offset values in Path2D and Path3D set_offset
...
(cherry picked from commit 2edb59ec88
)
2020-04-16 11:45:40 +02:00
Zak Grumbles
5d9108c9c6
Fix OptionButton docs godotengine#36803
...
* item_selected and item_focused docs incorrectly had 'id' as the parameter. Changed to
'index'.
* Fix parameter name in ADD_SIGNAL callin code.
(cherry picked from commit a8de034f78
)
2020-04-16 11:45:19 +02:00
Thakee Nathees
324213a6db
fix project manager don't consume Enter key #17620
...
(cherry picked from commit b98153886f
)
2020-04-16 11:44:44 +02:00
Waridley
219ce2f149
Fix volume interpolation in positional audio nodes
...
Fixes #22016
(cherry picked from commit ff1fbd2bc5
)
2020-04-16 11:43:58 +02:00
janglee
e1ca49b4b6
Corrected text selection in color picker
...
Fixes #35603
(cherry picked from commit 77b70aa79d
)
2020-04-16 11:43:35 +02:00
Andrea Catania
a51e78528f
Fixed IK rotation issue
...
(cherry picked from commit 277696d6c5
)
2020-04-16 11:42:07 +02:00
qarmin
57952d562c
Fixes leak with drives [3.2]
2020-04-12 14:05:47 +02:00
Eoin O'Neill
c18381119e
Correction to RichTextLabel Tabulation
...
Correct backtrack assignment to prevent excessive tabulation. Worth
noting that tabulation is treated differently in RichTextLabel because
of custom user-asignable tab variable which creates problems with
dynamic fonts specifically.
(cherry picked from commit 2000e110a9
)
2020-04-06 18:19:14 +02:00
Gil Arasa Verge
f144ec9e67
Clicking backgrd. dimming of editor popup stops input event propagation
...
A click on the dimmed background of a popup in the editor should stop the input event from propagating to the background.
This solution reuses the system introduced in commit efc3ffb8
, taking advantage of the hide() notifications from the modal where we will set the flag "pass_on_modal_close_click(false)" to stop event handling at the viewport input event handling.
The viewport first hides the modal and after marks the input as handled if the flag mentioned above is set.
Fixes #36341
(cherry picked from commit 35bc88ca34
)
2020-03-25 11:38:54 +01:00
Andrea Catania
e30a0a30b6
Added new method to replace an already added node to the animation state machine
...
(cherry picked from commit 422926cfc6
)
2020-03-25 11:38:54 +01:00
nathanwfranke
b95a2306db
Fix tab container too large when tabs are hidden
...
(cherry picked from commit c0a84f747e
)
2020-03-25 11:38:54 +01:00
Rémi Verschelde
acd14e645a
Remove unused classes and stray headers
...
Found by reviewing headers with 1 or less matching includes:
```
find -name thirdparty -prune -o -name "*.h" -exec basename {} \; | sort -u > headers
for header in $(cat headers); do echo "$header: "; rg -l "#include \"(.*/)?$header\"" | wc -l; done > list-includes
```
(cherry picked from commit 9d24541597
)
2020-03-25 11:38:54 +01:00
Dominik 'dreamsComeTrue' Jasiński
e97d9c7bfc
Remove unreferenced & undocumented class Space2D
...
(cherry picked from commit f530c38174
)
2020-03-25 11:38:54 +01:00
Rémi Verschelde
86ecefa1a2
Fix potential divisions by 0 reported by MSVC
...
The `TextEdit` one was indeed a potential bug.
The `PCKPacker` one seems to be a false positive, it's already in a
`for` loop that depends on `files.size()`.
(cherry picked from commit ca4e4506db
)
2020-03-25 11:38:54 +01:00
Tomasz Chabora
c8318012a8
Make search in RichTextLabel case-insensitive
...
(cherry picked from commit b3f83ac115
)
2020-03-25 11:38:53 +01:00
Rasmus Vermeulen
5c64458d9e
Add size warning to Viewport Node
...
(cherry picked from commits 855f4dc193
and 760095e28d
)
2020-03-25 11:38:53 +01:00
Tomasz Chabora
8fd7efef84
Fix visibility enabler flag toggling
...
(cherry picked from commit 2ccd1a7805
)
2020-03-25 11:38:53 +01:00
simpuid
223d0abd7e
Remove update condition from LineEdit::update_placeholder_width
...
Placeholder with length greater than `max_length` are allowed, so there is no reason for those update condition.
It fixes the odd alignment of placeholder when it's length is greater than `max_length`
(cherry picked from commit 43b2f75d64
)
2020-03-25 11:38:53 +01:00
Darren Kaste
53c8d8a5fb
Use LineEdit secret character width everywhere
...
(cherry picked from commit c7c47410aa
)
2020-03-25 11:38:53 +01:00
Darren Kaste
f657614760
Calculate LineEdit selection with secret character
...
(cherry picked from commit 395a038c85
)
2020-03-25 11:38:53 +01:00
Ev1lbl0w
b9b53966a3
Fix divison by zero issue
...
(cherry picked from commit 380b8039ec
)
2020-03-25 11:38:53 +01:00
lupoDharkael
536c2fc0c0
Loop over faces in create_trimesh_shape()
...
(cherry picked from commit ee0262977e
)
2020-03-25 11:38:53 +01:00
Dominik 'dreamsComeTrue' Jasiński
e590a33d45
Allow single quotes in comments
...
Fixes : #36638
(cherry picked from commit ab6456d1bc
)
2020-03-25 09:45:08 +01:00
Rémi Verschelde
cc70b2fa0a
Merge pull request #36342 from m4gr3d/external_texture_support_for_godot_3_2
...
Add support for opengl external textures
2020-03-17 16:29:14 +01:00
Rémi Verschelde
c01e840f03
Merge pull request #36639 from RandomShaper/imvu/improve_drives_ux_3.2
...
Improve UX of drive letters (3.2)
2020-03-17 16:27:33 +01:00
Pedro J. Estébanez
6105dfdac9
Improve UX of drive letters
...
Namely, move the drive dropdown to just the left of the path text box and don't include the former
in the latter.
This improves the UX on Windows.
In the UNIX case, since its concept of drives is (ab)used to provide shortcuts to useful paths, its
dropdown is kept at the original location.
2020-03-17 14:48:54 +01:00
Pierre Caye
5062d7499f
Add a new configuration warning to CollisionShape
...
In the case where a ConcavePolygonShape is used as a shape for a RigidBody
in another mode than static, a configuration warning will appear in the
editor.
(cherry picked from commit ad227d9a85
)
2020-03-06 23:51:26 +01:00
fhuya
30d738eda7
Add support for opengl external textures as defined by https://www.khronos.org/registry/OpenGL/extensions/OES/OES_EGL_image_external.txt
2020-03-05 13:09:49 -08:00
Fabio Alessandrelli
e92669654a
Fix debugger crash inspecting freed object.
...
This seems to be the correct way to validate a reference.
Why is cast_to failing?
(cherry picked from commit d8ba07ea8f
)
2020-03-04 12:40:14 +01:00
Juan Linietsky
03c8e12d54
Add support for named binds in Skin.
...
Helps better reutilization of skeletons from Maya exported files.
(cherry picked from commit 9a34f39d32
)
2020-03-04 12:40:14 +01:00
janglee
ffea9fc39f
Added tween support for Rect2
...
Fixes #34575
(cherry picked from commit 4bbe87abb7
)
2020-03-04 12:40:14 +01:00
Hugo Locurcio
b80190721b
Allow using MeshLibrary.get_item_preview()
in non-editor builds again
...
This closes #36268 .
(cherry picked from commit 64fac9dd5d
)
2020-03-04 12:40:13 +01:00
Dominik 'dreamsComeTrue' Jasiński
f328ac36d6
Fix: auto brace complete for quoted strings
...
Fixes #36002
(cherry picked from commit 6a404a88e4
)
2020-03-04 09:53:44 +01:00
Eevee
e70e0d24d9
Fix inverted use of Camera2D.offset_v
...
The code above for horizontal movement uses the right margin (_positive_ x direction) when the offset is negative, but vertical movement uses the top margin (_negative_ y direction) when the offset is negative.
The resulting problem is easily seen in the editor — set the drag margins to be asymmetrical, turn on drawing the drag margins, and slide the offsets from -1 to 1 and back. The horizontal offset moves the camera's center between the left and right margins, but the vertical offset gets them backwards and will move the camera outside the margins entirely.
(cherry picked from commit 40816574ac
)
2020-03-04 09:50:21 +01:00
Rémi Verschelde
2bae35353d
Revert "Fix control node transform animation jitter with pivot offset"
...
This reverts commit 15315f118c
.
It caused a regression: #36087 .
2020-03-04 09:50:21 +01:00
Rémi Verschelde
416cd715a3
Merge pull request #36236 from Janglee123/vehicle-random-force-fix
...
Fixing Vehicle-Wheels getting a random engine_force at start
2020-03-02 16:50:10 +01:00
Dominik 'dreamsComeTrue' Jasiński
eb22bcead7
RichTextLabel: proper handling of internal key events
...
Fixes #36211
(cherry picked from commit ff030afc93
)
2020-02-19 10:09:28 +01:00
Michael Alexsander
18eba898f8
Fix hiding ColorPicker's presets not fully hiding its controls
...
(cherry picked from commit 5f5ccfc361
)
2020-02-18 14:20:04 +01:00
WARIO-MDMA
707d1a38ec
Reduce AudioStreamPlayer's pitch_scale max value
...
(cherry picked from commit 61d20b1f56
)
2020-02-18 14:19:51 +01:00
janglee
5948530332
Fixed random force on vehicle wheel
2020-02-15 20:30:17 +05:30
bitstopper
7cb3a20418
Fixes broken CPUParticles2D AtlasTextures usage
...
(cherry picked from commit 36d9906d6a
)
2020-02-14 16:14:13 +01:00
Yuri Roubinsky
e10b0c9eaa
Added missing '\n' in visual shader expression node code generation
...
(cherry picked from commit 6e1187ad2f
)
2020-02-14 16:13:44 +01:00
Yuri Roubinsky
1930c79364
Added missing '\n' in visual shader fresnel node code generation
...
(cherry picked from commit c8639a0013
)
2020-02-14 16:13:44 +01:00
Yuri Roubinsky
5579eb823b
Few extra formatting fixes for visual shader node generation
...
For 'If' and 'Switch' nodes
(cherry picked from commit b0f166f0c5
)
2020-02-14 16:13:44 +01:00
Yuri Roubinsky
1f4885fe49
Added missing '\n' in visual shader custom node code generation
...
(cherry picked from commit 9d8b59e86a
)
2020-02-14 16:13:44 +01:00
Yuri Roubinsky
fb56d93163
Better visual shader code generation
...
(cherry picked from commit bfec48abf1
)
2020-02-14 16:13:44 +01:00
zxcvdev
6380943831
Fix GPU Particles
...
The special case atan(y,0) of the built-in shader function atan(y,x)
returns different results on different devices. So this commit will add
checks when the atan(y,x) function is used in ParticlesMaterial to set
the direction of GPU Particles to make sure the desired values are
returned (act as atan2(y,x)).
(cherry picked from commit 3580ad6005
)
2020-02-14 16:04:07 +01:00
Haoyu Qiu
be34e45233
Uses split cursor for SplitContainer
...
(cherry picked from commit 206b9f2d23
)
2020-02-14 16:02:56 +01:00
muiroc
1b5996c95d
pass missing args in AnimationNode script calls
...
(cherry picked from commit ed3a8cc83d
)
2020-02-14 15:59:56 +01:00
Haoyu Qiu
0a3bf2b627
Fixes add group in Group Editor dialog
...
Before this fix, new group can't be created if any existing group starts
with the new name.
(cherry picked from commit 421ea09195
)
2020-02-14 15:58:36 +01:00
Eoin O'Neill
0dedc0a1a3
Fix RichTextEffect visibility
to Account for Skipped Characters.
...
A picture is easier to describe this issue than words. Basically, rich
text effects allowed for character visibility changes. While doing so
would work properly, the rich text label would render the next `word` in
an offset accounting for the hidden characters (leaving a huge space.)
This patch fixes this issue by keeping track of the amount of
`backtrack` necessary per line.
(cherry picked from commit b3fd4884d7
)
2020-02-14 15:57:47 +01:00
sumit0190
58a940e5aa
Update cached_width of the line_edit element when setting it to be secret
...
(cherry picked from commit 2e08578985
)
2020-02-14 15:56:48 +01:00
Eric Rybicki
63daa19538
Use a new approach to fix bone pose override not being reset when IK animation is stopped.
...
This reverts PR #35460 & commit 551c37167b
.
(cherry picked from commit bb0358dd8d
)
2020-02-14 15:55:47 +01:00
Haoyu Qiu
7cfcf1824b
Completes doc for ItemList and Tree
...
(cherry picked from commit 7a41c44be2
)
2020-02-12 15:05:02 +01:00
Georg Wacker
15315f118c
Fix control node transform animation jitter with pivot offset
...
The workaround for moving the pivot is not needed anymore, in fact it causes all transforms applied to control nodes to jitter while animating (if a pivot offset is set).
This can be observed via AnimationPlayer and Tween.
The fix is to remove the obsolete workaround that causes this bug.
Fixes #28804
(cherry picked from commit dfb7d46a2a
)
2020-02-06 13:02:07 +01:00
Michael Alexsander
a779774c86
Hide TileSet's properties from the inspector
...
(cherry picked from commit 5452028d55
)
2020-02-06 13:02:07 +01:00
Haoyu Qiu
dc20acd4fc
Updates Path2D in debugging if navigation is visible
...
(cherry picked from commit 00d578ba3e
)
2020-02-06 13:02:07 +01:00
Yuri Roubinsky
72f7e4efe0
Fix canvas_item light alpha output in visual shaders
...
(cherry picked from commit b822da00f8
)
2020-02-06 13:02:07 +01:00
Haoyu Qiu
808a0bac33
Fixes OptionButton min size
...
(cherry picked from commit ddc397d9ff
)
2020-02-06 13:02:07 +01:00
Rémi Verschelde
8d00dcb421
Merge pull request #35670 from clayjohn/material-flag-cache
...
Add an extra bit to material flag cache
2020-01-28 20:59:49 +01:00
clayjohn
ec4d606e07
Add an extra bit to material flag cache
2020-01-28 10:38:54 -08:00
Rémi Verschelde
11d28b2d10
Revert "make Label consider spaces for visible_characters"
...
This reverts commit 695980a0f2
.
Fixes #35668 .
2020-01-28 19:37:04 +01:00
Rémi Verschelde
50830632c9
Merge pull request #35620 from TrevorPeyton/bind-autotile-center
...
Added binding for Autotile Center
2020-01-28 10:50:09 +01:00
Yuri Roubinsky
9705d5587e
Hide "control" methods from VisualShaderNodeGroupBase
2020-01-28 10:24:59 +03:00
Yuri Roubinsky
274f1d8610
Hide "editable" property from VisualShaderNodeGroupBase public interface
2020-01-28 09:43:07 +03:00
Yuri Roubinsky
796484d761
Added missing property "size" to VisualShaderNodeGroupBase
2020-01-27 19:18:48 +03:00
Yuri Roubinsky
3479cf4b42
Removed unused method "build" from VisualShaderNodeExpression
2020-01-27 18:24:39 +03:00
TrevorPeyton
ae4fee52d5
Added binding for Autotile Center
2020-01-27 09:07:32 -05:00
Yuri Roubinsky
4912d4c6e4
Added missed bracket to VisualShaderNodeCubeMap
2020-01-27 13:09:15 +03:00
Yuri Roubinsky
4445f892d2
Fix VisualShaderNodeCubeMap generation
2020-01-27 12:17:06 +03:00
Rémi Verschelde
bb6c0d3e8b
doc: Complete documentation for VideoStreams
...
Also quick clean up of the matching C++ files.
2020-01-26 11:29:07 +01:00
Haoyu Qiu
71b1a1c7d9
Updates minimum size on VideoPlayer::set_stream
2020-01-26 10:24:56 +08:00
Haoyu Qiu
df3fad11fd
Fixes crash in Spatial::notification
2020-01-25 13:16:51 +08:00
Tomasz Chabora
9ad7fc3405
Allow greater values in unit_offset
2020-01-24 14:40:33 +01:00
Yuri Roubinsky
ce43c92208
Docs for some nodes in visual shader
...
Fix typo in `VisualShaderNodeCompare.ComparisonType` name.
2020-01-23 22:39:00 +01:00
Michael Alexsander
151f33111b
Fix TileSet shape data not updating when being set via code
2020-01-23 11:48:38 -03:00
Rémi Verschelde
efea348fe8
Merge pull request #35460 from ericrybick/35409-skeleton-does-not-return-to-original-pose-when-ik-playback-is-stopped
...
Fix bone pose override not being reset when IK animation is stopped
2020-01-23 14:38:04 +01:00
Rémi Verschelde
ba177ccaec
doc: Misc updates for AnimationNode* and others
...
- Add some missing descriptions.
- Add links to tutorials for ARVR and AnimationTree.
- Style fixes.
- Engine changes:
* Make `AnimationNodeTransition.input_<number>` properties internal
so that they don't appear in the docs. They still appear in the
inspector based on the actual number of inputs requested.
* Drop unimplemented `CPUParticles.flatness`. It's only used for 3D
particles in `ParticlesMaterial`, and thus only relevant for
`CPUParticles3D`.
2020-01-23 12:37:33 +01:00
Yuri Roubinsky
86cdccebe6
Hide "default_input_values" property in VisualShaderNode.
2020-01-23 11:18:51 +03:00
Eric Rybicki
551c37167b
Fix bone pose override not being reset when IK animation is stopped
...
Fixes #35409
2020-01-23 08:48:08 +01:00
Rémi Verschelde
c2e07db071
Merge pull request #35438 from MadEqua/virtual-keyboard-line-edit
...
Android virtual keyboard respecting LineEdit max length.
2020-01-23 08:20:24 +01:00
Bruno Lourenço
a3bcdbeb78
Android virtual keyboard respecting LineEdit max length.
2020-01-23 01:52:49 +00:00
Rémi Verschelde
94d3bcbc9b
Merge pull request #35452 from nekomatata/tween-start-fail
...
Fixed Tween::start() with pending updates
2020-01-22 22:56:40 +01:00
PouleyKetchoupp
6c04c824bd
Fixed Tween::start() with pending updates
...
Start was canceled instead of deferred in case of an update in progress.
Fixes #35441
2020-01-22 22:27:37 +01:00
Rémi Verschelde
37897dba80
Merge pull request #35406 from lawnjelly/ortho-shadow
...
Replace CameraMatrix::get_viewport_size with get_viewport_half_extents, shadow culling with ortho camera and other affected issues
2020-01-22 22:02:09 +01:00
Rémi Verschelde
41feb410a6
Merge pull request #35338 from rburing/fix_find_focus_neighbor
...
Fix Control::_window_find_focus_neighbour
2020-01-22 21:16:35 +01:00
lawnjelly
eaf8e5ce52
Change CameraMatrix::get_viewport_size to get_viewport_half_extents
...
Fixes #26637 .
Fixes #19900 .
The viewport_size returned by get_viewport_size was previously incorrect, being half the correct value. The function is renamed to get_viewport_half_extents, and now returns a Vector2.
Code which called this function has also been modified accordingly.
This PR also fixes shadow culling when using ortho cameras, because the correct input for CameraMatrix::set_orthogonal should be the full HEIGHT from get_viewport_half_extents, and not half the width.
It also fixes state.ubo_data.viewport_size in rasterizer_scene_gles3.cpp to be the width and the height of the viewport in pixels as stated in the documentation, rather than the current value which is half the viewport extents in worldspace, presumed to be a bug.
2020-01-22 18:22:00 +00:00
Bastiaan Olij
5cf9f4faeb
Incorrect joystick id was returned on an inactive ARVR controller
2020-01-22 18:27:32 +11:00
Rémi Verschelde
5127afa812
Merge pull request #35413 from akien-mga/if-0-means-couperet
...
Remove unused #if 0'ed code
2020-01-21 22:27:50 +01:00
Rémi Verschelde
4faaf6089a
Remove unused #if 0'ed code
2020-01-21 21:41:54 +01:00
Rémi Verschelde
0be64da008
Allow greater values for DynamicFont size property
...
See https://github.com/godotengine/godot/issues/22581#issuecomment-576836691 .
Not using `or_greater` as there *is* a max size value that the current
implementation can accept. If using e.g. size 6000 with
FiraSans-Regular.ttf, errors are printed due to failing asserts on a
glyph size that should be within 4096x4096 px.
2020-01-21 20:59:16 +01:00
Yuri Roubinsky
a8ab4e3357
Forbid recursive connections in visual shader
2020-01-20 18:15:45 +03:00
Haoyu Qiu
0eab15a5a9
Destroys FreeType library on load error
2020-01-20 11:00:51 +08:00
Ricardo Buring
40542b0b0f
Fix Control::_window_find_focus_neighbor
...
Due to a typo, the size of a candidate neighbor was confused with the
size of the control itself.
Fixes #34936 .
2020-01-19 23:38:50 +01:00
Rémi Verschelde
6472e09a85
SceneTree: Abort change_scene if we're quitting
...
Otherwise we can have a segmentation fault if we try to call
`add_child` on an already freed node.
Fixes #35323 .
2020-01-19 22:08:40 +01:00
Rémi Verschelde
eb89254690
Fix crash when confirming dialogs with Return key
...
Regression from #34040 , apparently making this a const reference
introduces issues (not sure why, but previous code worked fine).
Fixes #34691 .
Co-authored-by: dankan1890 <mewuidev2@gmail.com>
2020-01-17 12:47:23 +01:00
Eric Rybicki
41efc08532
Fix SkeletonIK not playing animation if more than one IK-Bone is active
2020-01-16 20:22:15 +01:00
Rémi Verschelde
1de633205f
Validate input in (CPU)Particles set_emission_shape()
...
Fixes #29777 .
Co-authored-by: Cameron Reikes <cameronreikes@gmail.com>
2020-01-16 11:08:51 +01:00
Rémi Verschelde
dd3779c12e
Merge pull request #35183 from YeldhamDev/scrollbar_regression
...
Fix scrollbar regression on large scales
2020-01-16 07:56:05 +01:00
Michael Alexsander
76e03f9b4d
Fix scrollbar regression on large scales
2020-01-16 00:59:46 -03:00
Haoyu Qiu
574918f344
Updates ScrollContainer min size when toggle scrollbars
2020-01-16 09:42:31 +08:00
Rémi Verschelde
7c624949b5
Merge pull request #35147 from madmiraal/fix-34992
...
Fixes get_floor_normal() returning the user defined floor_normal.
2020-01-15 14:17:15 +01:00
Marcel Admiraal
907adb37ce
Fixes get_floor_normal() returning the user defined floor_normal.
...
When there is no collision with a floor the get_floor_normal() function
should return the zero vector to be consistent with get_floor_velocity().
Renames floor_normal to up_direction in all bindings.
Updates the documentation of get_floor_normal() and get_floor_velocity()
to make it clear when the values are valid. Updates the documentation for
move_and_slide() and move_and_slide_with_snap() to use the new up_direction
parameter name.
2020-01-15 10:13:35 +01:00
Haoyu Qiu
26e3b4a58a
Updates LineEdit's min size when necessary
...
These properties will affect the minimum size of LineEdit:
* The right icon (`set_right_icon`)
* The clear button (`set_editable` and `set_clear_button_enabled`)
* The text, when "expand to text length" is enabled (`set_text`)
2020-01-15 10:15:32 +08:00
Rémi Verschelde
40f0649e5b
Fix typos with codespell
...
Using codespell 1.16.0.
See ab3bccdb78
for procedure.
2020-01-15 00:49:52 +01:00
Michael Alexsander
db8c4c2a22
Fix regression on scrollbar raising in ScrollContainer
2020-01-14 19:55:12 -03:00
Michael Alexsander
34bf81fa7c
Cleanup unnecessary code from before the scrollbar overlapping fixes
2020-01-14 18:19:12 -03:00
Rémi Verschelde
57986208f3
Merge pull request #35130 from qarmin/crash_item_bad_index
...
Don't allow to use too big index in ItemList
2020-01-14 21:03:25 +01:00
Rafał Mikrut
724f5f3178
Don't allow to use too big index in ItemList
2020-01-14 20:17:48 +01:00
Rémi Verschelde
63112b5090
Merge pull request #35106 from YeldhamDev/scrollbar_overlap_fixes
...
Fix more instances of overlapping scrollbars
2020-01-14 08:12:20 +01:00
Michael Alexsander
712cd8a97e
Fix more instances of overlapping scrollbars
2020-01-13 22:49:17 -03:00
Haoyu Qiu
66a54582ee
Updates min size on CenterContainer::set_use_top_left
2020-01-14 08:35:21 +08:00
Rémi Verschelde
04a1ae90df
Merge pull request #35080 from malbach/scrollbars_overlap
...
Fix #33309 Overlapping Scrollbars in ScrollContainer
2020-01-13 16:10:12 +01:00
malbach
bc8ce836e3
Fix overlapping scrollbars in ScrollContainer ( #33309 )
2020-01-13 14:37:55 +01:00
Rémi Verschelde
100f50b7df
Control/Light2D: Preventing setting 0 as scale as for Node2D
...
Triggers errors in `Transform2D::affine_invert()`.
Fixes #26510 .
Fixes https://github.com/godotengine/godot/issues/24997#issuecomment-457951639 .
2020-01-13 12:20:15 +01:00
Rémi Verschelde
478ab8b45b
Merge pull request #34960 from johannesgunnar/spin_box-apply-method
...
Spinbox apply input method
2020-01-12 14:16:14 +01:00
Paulb23
22c15083af
Fix empty LineEdit crash on ctrl+backspace
2020-01-11 17:57:36 +00:00
Jóhannes Gunnar Þorsteinsson
083637a901
Add apply method to SpinBox
2020-01-11 10:47:51 +00:00
Tomasz Chabora
60cd3df337
Add signal for LineEdit overflow event
2020-01-10 21:07:00 +01:00
Andrea Catania
9f1f4620e0
Added function to expose floor normal, useful to correctly calculate player velocity.
...
This work has been kindly sponsored by IMVU.
2020-01-10 14:58:19 +01:00
Rémi Verschelde
59a2fed1e6
Merge pull request #34938 from OverloadedOrama/fix-basebutton-button-press
...
Fixes BaseButton not triggering the pressed signal on "Button Press"…
2020-01-10 10:35:11 +01:00
Haoyu Qiu
fbd937bd30
Update minimum size on Label::set_autowrap
...
If `clip_text` is true, the minimum height is one line if `autowrap` is
true , or one pixel otherwise.
2020-01-10 17:08:27 +08:00
Gilles Roudière
b5251eb00f
Don't compile editor-only function when tools=no
2020-01-09 22:15:48 +01:00
Ben Hickling
fdd7cfa820
fixed camera project_position function that was still using the near parameter in a few calculations
2020-01-09 14:34:31 +00:00
OverloadedOrama
bf4a0242ff
Fixes BaseButton not triggering the "pressed" signal on "Button Press" Action Mode
...
This should fix #34935
2020-01-09 02:17:53 +02:00
Haoyu Qiu
4293f76cf1
Emits meta_hover_ended when mouse exit RichTextLabel
2020-01-08 21:01:08 +08:00
Yuri Roubinsky
ed22a4c454
Merge pull request #33817 from Chaosus/vs_fresnel
...
Make Fresnel node in visual shaders to use default NORMAL/VIEW
2020-01-08 12:15:46 +03:00
Rémi Verschelde
1de54bb388
Merge pull request #34874 from wingedadventurer/bugfix-label-visible-characters
...
Make Label node consider spaces for visible_characters property
2020-01-08 08:18:59 +01:00
Rémi Verschelde
033fb72c03
Merge pull request #34871 from lentsius-bark/textEdit-vertical-horizontal-scroll-expose
...
expose scroll_vertical and scroll_horizontal in TextEdit
2020-01-08 08:18:12 +01:00
Rémi Verschelde
90c487ebf3
Merge pull request #34900 from timothyqiu/rtl-cell-wrap
...
Fixes RichTextLabel click issue when cell text wraps
2020-01-08 07:08:02 +01:00
Michael Alexsander
8b5992f665
Make possible to edit the GraphEdit's selection rect colors
2020-01-07 23:20:48 -03:00
Haoyu Qiu
d17a4efc43
Fixes RichTextLabel click issue when cell text wraps
2020-01-08 09:08:03 +08:00
Rémi Verschelde
83fe471c3b
Merge pull request #34881 from williamd1k0/fix-animationtree-no3d
...
Fix AnimationTree not available when compiled with disable_3d
2020-01-07 23:03:53 +01:00
Tomasz Chabora
bbc36dbc67
Don't show conf warning if script is not tool
2020-01-07 21:28:16 +01:00
Kanabenki
d79f0e7d40
Check if cursor is inside meta when getting cursor shape
2020-01-07 15:46:11 +01:00
Krystof Klestil
c475f11018
expose scroll_vertical and scroll_horizontal in TextEdit + documentation
2020-01-07 15:16:07 +01:00
Haoyu Qiu
3df9d187a3
Fixes crash when using Mesh::create_outline and Mesh::create_convex_shape
...
Adds a size check to the array returned by `surface_get_arrays`.
During debugging, `create_outline` also crashes when the indices size is
one (not a multiple of three). For now, just reports the error and fail
the function.
2020-01-07 16:15:14 +08:00
William Tumeo
c1853eeb59
Fix AnimationTree not available when compiled with disable_3d
2020-01-07 00:04:30 -03:00
Haoyu Qiu
d43ad46e42
Fixes import of models as PackedScene
2020-01-07 07:21:17 +08:00
wingedadventurer
695980a0f2
make Label consider spaces for visible_characters
2020-01-06 23:29:00 +01:00
Rémi Verschelde
e2a6cae0c7
Merge pull request #34867 from volzhs/calculate-label-size-2
...
Calculate label size more accurately
2020-01-06 22:26:14 +01:00
volzhs
e5a0018621
Calculate label size more accurately
2020-01-07 04:21:02 +09:00
Rémi Verschelde
24281cd9c9
Merge pull request #34865 from volzhs/oversampling-emoji
...
Update size and position for colored font with oversampling
2020-01-06 18:32:24 +01:00
volzhs
e03ac8c618
Update size and position for colored font with oversampling
2020-01-07 02:15:23 +09:00
Rémi Verschelde
ce75a2f33d
Merge pull request #33987 from nekomatata/own-world-environment
...
Viewport environment is updated properly when set to own world
2020-01-06 15:26:52 +01:00
Rémi Verschelde
f5d1177fcb
Merge pull request #34303 from Chaosus/fix_texture_crash
...
Fixed crash if passing invalid image ref to TextureLayered
2020-01-06 14:21:20 +01:00
Rémi Verschelde
8aea5decc6
Merge pull request #34020 from gytsen/unify-pack-version
...
PCK: Set VERSION_PATCH in header, factor out header magic
2020-01-06 14:04:55 +01:00
Rémi Verschelde
080e6e48ad
Merge pull request #34829 from timothyqiu/checks-bundle
...
Fixes crash for bad property of PackedScene
2020-01-06 13:43:38 +01:00
Joost Heitbrink
dc61323b2c
PCK: Set VERSION_PATCH in header, factor out header magic
...
Unify pack file version and magic to avoid hardcoded literals.
`version.py` now always includes `patch` even for the first release in
a new stable branch (e.g. 3.2). The public name stays without the patch
number, but `Engine.get_version_info()` already included `patch == 0`,
and we can remove some extra handling of undefined `VERSION_PATCH` this
way.
Co-authored-by: Rémi Verschelde <rverschelde@gmail.com>
2020-01-06 13:13:17 +01:00
Rémi Verschelde
61dd7748ca
Merge pull request #34839 from madmiraal/fix-34807
...
Don't update the floor_velocity with the current linear_velocity.
2020-01-05 18:18:55 +01:00
Marcel Admiraal
fc1f0d76e7
Don't update the floor_velocity with the current linear_velocity.
...
Updating the floor velocity with the body's current linear velocity
discards the velocity component provided by the body's angular
rotation. Without the current contact point there is no way to calculate
the current velocity component provided by the body's angular rotation
therefore we need to use the velocity calculated at the time of the
collision.
Fixes #34807 .
2020-01-05 17:35:49 +01:00
volzhs
3f0c7b89ec
Fix calculating label size
2020-01-06 01:06:26 +09:00
Rémi Verschelde
195f39a2ce
Merge pull request #34835 from nekomatata/stylebox-aa-fix
...
Fixed StyleBoxFlat antialiasing with aa size of 1
2020-01-05 11:07:38 +01:00
PouleyKetchoupp
a7a025531b
Fixed StyleBoxFlat antialiasing with aa size of 1
...
Also made aa size consistent when computing uv coordinates and fixed a warning about aa_border_width not initialized in some cases.
fixes #34830
2020-01-05 10:54:24 +01:00
Haoyu Qiu
4b660a87d8
Fixes crash for bad property of PackedScene
2020-01-05 11:13:29 +08:00
Haoyu Qiu
78e9ca58af
Makes more strings translatable
2020-01-04 13:46:38 +08:00
Rémi Verschelde
6f279ed6eb
Merge pull request #34781 from fossegutten/button-flash
...
Fixes button flashing when releasing mousebutton outside
2020-01-03 16:23:57 +01:00
fossegutten
b728d3bd18
Fixes button flashing when releasing mousebutton outside
2020-01-03 14:55:27 +01:00
Rémi Verschelde
147268a427
Merge pull request #34755 from Calinou/shadermaterial-connect-editor-only
...
Don't connect ShaderMaterial's `changed` signal when not in the editor
2020-01-03 14:42:10 +01:00
Rémi Verschelde
fa82664419
Merge pull request #34726 from nekomatata/polygon2d-antialiasing-fix
...
Fixed antialiasing option for Polygon2D with concave/hollow shapes
2020-01-03 14:17:05 +01:00
Rémi Verschelde
b300411740
Merge pull request #34779 from timothyqiu/tree-hscroll
...
Better horizontal scroll for Tree
2020-01-03 13:47:38 +01:00
Haoyu Qiu
229b398146
Better horizontal scroll for Tree
...
* Adds pan gesture support for horizontal scroll.
* Scrolls horizontally when needed to ensure cursor visiblility.
2020-01-03 20:16:32 +08:00
Hugo Locurcio
cc626acf45
Add a shorthand for setting the exit code using SceneTree::quit()
...
This reduces the amount of code required to exit a process with a
non-zero exit code. This pattern is also found in most other
programming languages.
2020-01-03 11:41:46 +01:00
Haoyu Qiu
e539b187a5
Clears button mask before activating menu item
2020-01-03 09:35:00 +08:00
SIYU FU
d80e979a48
Update Camera.project_position to not return get_global_transform().origin if projection mode is orthogonal
2020-01-02 17:54:41 +01:00