26207 Commits

Author SHA1 Message Date
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 3580ad6005500abaf9bbb12db73adcfa762bd2e5)
2020-02-14 16:04:07 +01:00
Hugo Locurcio
93b99f2c89 Update the zoom percentage when using Frame Selection in the 2D editor
This closes #36019.

(cherry picked from commit 3e95b79b65ac88ad4df59dc4ba5eb05f9c8b68af)
2020-02-14 16:03:49 +01:00
Raul Santos
0fb35401d4 Avoid going out of bounds in IsSubsequenceOf
Closes #35598

(cherry picked from commit 4b79ef5ebe2faa4b3690d90dc36ab6ead5ff1315)
2020-02-14 16:03:18 +01:00
Haoyu Qiu
be34e45233 Uses split cursor for SplitContainer
(cherry picked from commit 206b9f2d23ba1380de4c5b1c175b7ee5eadfd298)
2020-02-14 16:02:56 +01:00
Rémi Verschelde
ac63e5d613 Workaround WebM playback bug after AudioServer latency fixes
af9bb0ea15dfd3dfe8950fcfcce364485dadd92a 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.

(cherry picked from commit da411d1625a92e4c100bcda2c29709014e261ec9)
2020-02-14 16:02:34 +01:00
Yuri Roubinsky
3b2490f19c Prevent shader crash if invalid builtin used after array member accessor
(cherry picked from commit 3a70566b15c094241f0df1731f8ad1b3e0d5dc0e)
2020-02-14 16:02:21 +01:00
Fabio Alessandrelli
388adac947 Fix UPNP on windows after #30205.
The problem could be related to different byte ordering when copying
the interface address over the binding address.

(cherry picked from commit e85330231c729a88d5a478de2bbe4a61e5edeae3)
2020-02-14 16:01:29 +01:00
Yuri Roubinsky
77deae41fb Few enchancements for shader editor
(cherry picked from commit 24368206ca37406a375c78067b3575c0c5a6cf3f)
2020-02-14 16:00:45 +01:00
Michael Alexsander
1414a18916 Make some QOL improvements to move operations in the FileSystem dock
(cherry picked from commit 07a23e75fcf3e02d390d7f6e7d6c86975701befe)
2020-02-14 16:00:14 +01:00
muiroc
1b5996c95d pass missing args in AnimationNode script calls
(cherry picked from commit ed3a8cc83dccc0385ce92ef52f18d6bcbbd4b4af)
2020-02-14 15:59:56 +01:00
Hugo Locurcio
262aff67db Allow existing hidden files/directories when creating a new project
For instance, this lets users initialize a Git repository
and still be able to create a project in the directory afterwards.

This closes https://github.com/godotengine/godot-proposals/issues/291.

(cherry picked from commit 34b747bac0c07cad64b0615664488f68f01c0d62)
2020-02-14 15:59:41 +01:00
dankan1890
7ccfbd61a4 Fixed String::humanize_size crash.
Close #35872

(cherry picked from commit ca0ee767cb5f93420b456fa47422ae2b3e266b4f)
2020-02-14 15:59:12 +01:00
Michael Alexsander
8030178e48 Fix built-in script creation loading existing scripts by mistake
(cherry picked from commit f7374cef8459ed34707cc3db2a9b077162e821c0)
2020-02-14 15:58:53 +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 421ea09195d7d8dcd904eed764d62e956233e7cd)
2020-02-14 15:58:36 +01:00
bruvzg
a7ff22ea6d Fix pressure / tilt ranges on Linux.
(cherry picked from commit d552f93f8b79b0e99d912470c3362700d75c4984)
2020-02-14 15:58:15 +01:00
Hugo Locurcio
3eb9780179 Re-add a way to generate a single convex shape from the editor
It was removed after the implementation of VHACD. Generating a single
shape can lead to better performance, so it may still be desired.

This also adds tooltips for several options in the Mesh menu.

This closes #35692.

(cherry picked from commit 90af009f2ea637e5944a12b85c58018187c0de16)
2020-02-14 15:58:03 +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 b3fd4884d7dd2e1c5f5d5dadd8af6ed13ab131ac)
2020-02-14 15:57:47 +01:00
Haoyu Qiu
3c7a013d8d Adds pan and zoom gestures to TextureRegion editor
(cherry picked from commit d1b1edba84a76614368fa9e7eb2459ed0dc95da5)
2020-02-14 15:57:18 +01:00
sumit0190
58a940e5aa Update cached_width of the line_edit element when setting it to be secret
(cherry picked from commit 2e08578985689857271a2c554d524f3eee6cc08d)
2020-02-14 15:56:48 +01:00
Alexander Holland
489b3c2949 Fix double tap pressed event regression
(cherry picked from commit d2a5b7367b17d4390e582a748ff47bf65f5d1ea3)
2020-02-14 15:56:26 +01:00
nathanwfranke
2d8289579a 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


(cherry picked from commit e5cb557b73d804b59a5eda30b4b09d3d18ea91ad)
2020-02-14 15:56:12 +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 551c37167b0428b1489a8a6f6233624c5f4aa628.

(cherry picked from commit bb0358dd8d3ed99c9fb3545efdf821d28e73b68b)
2020-02-14 15:55:47 +01:00
Hugo Locurcio
56336b4e24 Improve the batch rename dialog
- Use the editor-defined error, warning and success colors for
  preview texts.
- Make the "Regular Expressions" option into a CheckButton
  (as it does something as soon as it's toggled) and move it out
  of the Advanced Options submenu.
- Make it clearer that the error message originates from an invalid
  regular expression.
- Clarify what the number means in the regex error message.
- Tweak some strings' casing for consistency.

(cherry picked from commit ff135065f401c34dc485543e1416495d50f29aae)
2020-02-14 15:54:22 +01:00
Aaron Franke
9a396a4e07 [Mono] Basis/Transforms Array operator comments and improvements
The behavior for Basis and Transform2D is unchanged, and Transform gets new behavior. All of the behavior is identical to GDScript's behavior. 

(cherry picked from commit 0a39c7b3546e85eb3221c2ec892d2302bf14c51c)
2020-02-14 15:53:59 +01:00
Hugo Locurcio
ca6ac71cdf Improve the Video RAM debugger UX
- Refresh tha tab automatically when switching to it.
- Disable the Refresh button if no project is currently being debugged.
- Scale the column widths on hiDPI displays.
- Rename the tab from "Video Mem" to "Video RAM" for consistency.

(cherry picked from commit 8f838f33b7a2ec2ee952b428cf4aa48707f3a59e)
2020-02-14 15:53:12 +01:00
Hugo Locurcio
725ff19636 Improve the AutoLoad editor UX
- Convert the default AutoLoad name to PascalCase when selecting a file.
- Disable the "Add" button if the path is empty or the name is invalid.
- Prefix the automatically-chosen name with "Global" if it would
  conflict with a built-in class.
- Replace the FileList icon with the Load icon as it better represents
  the action.

(cherry picked from commit 352be7dbcc1aa782a34381325e89404aad06a6b9)
2020-02-14 15:52:50 +01:00
Hugo Locurcio
a45aa3a46f Implement zooming using Ctrl + Mouse wheel in the GridMap editor
The minimum value of the slider was changed to 0.2 as zooming
works in increments of 0.2. This way, the value can go back to 1
after you've reached the slider's minimum value.

(cherry picked from commit 4c1b2171b0d2ebff568460a06a24287c0b994dc2)
2020-02-14 15:52:21 +01:00
gururise
68f013317b change step size of animation length EditSpinSlider to match minimum animation length
(cherry picked from commit caab6603d187aaa1bd7e70d4fba5aace28642e0a)
2020-02-14 15:52:01 +01:00
Silvano Cerza
e2ac4195b6 Improved search in settings dialogs
Settings search used to work only on properties, so if a searchbox text
was a substring of a category but not of a property the whole category
would be filtered out and no property would be shown.

Now the behaviour is changed so that when the searchbox text is a
substring of a category all its properties are shown too.

The previous behaviour is still present so that in case the searchbox
text is both a substring of a category and a property of another
category, all properties of the first category are shown and only the
property of the second category is shown.

(cherry picked from commit 84410f937e6504f72e8a35becf237049b640b39f)
2020-02-14 15:51:37 +01:00
clayjohn
31506ebe85 updated description of metallic in SpatialMaterial 2020-02-12 15:05:49 +01:00
Hugo Locurcio
f433c3656b Update EditorSceneImporterAssimp description to reflect current status
(cherry picked from commit 95f6be365aef0c2fb489b1ac852f4ead11567712)
2020-02-12 15:05:16 +01:00
Haoyu Qiu
7cfcf1824b Completes doc for ItemList and Tree
(cherry picked from commit 7a41c44be2993b21260f4e1f6b9f99949b92dce7)
2020-02-12 15:05:02 +01:00
seenloitering
20d0034039 Add documentation for Skeleton2D
Signal bone_setup_changed remains undocumented. I took a quick look at
the cpp code, but its purpose remained unclear to me. If anyone can
steer me in the right direction, I'm happy to flesh this out.

(cherry picked from commit 915199243235db8d380ee6eaa3b0d177aec7589c)
2020-02-12 15:04:49 +01:00
Rémi Verschelde
4657daff05 doc: Add description for EditorInspector
(cherry-picked from #35858)
2020-02-12 15:04:19 +01:00
Hugo Locurcio
23e08b0fad Improve the doc_status.py console output
- Duplicate the header when the `-a` flag is enabled. Since lots of
  items are displayed in this case, this helps the user remember
  which column is which without having to scroll back to the top.
- Bolden the overall percentages for easier visual grepping.

(cherry picked from commit 7c3f6b2870c5108e781a5e691f96d0a6889fa2de)
2020-02-12 14:59:21 +01:00
Rémi Verschelde
8a0f94a688
Merge pull request #35949 from akien-mga/3.2-cherrypicks
Cherry-picks for the 3.2 branch (future 3.2.1)
2020-02-06 15:56:02 +01:00
Haoyu Qiu
341740c0bf Centers icon vertically in project list
(cherry picked from commit c1011178c03354dd01972f4540bc07281591ff39)
2020-02-06 13:02:08 +01:00
Hugo Locurcio
9a8455f5a7 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.

(cherry picked from commit 2dd3a01d11dc4786c297e95e6c716f1fb8b7cff4)
2020-02-06 13:02:08 +01:00
Rémi Verschelde
bc61439306 Changelog: Mention 3.2 changes to TileMap features
Cf. #28896, #29519, #30231.

(cherry picked from commit 989b48badcc3819a0efd05f45875c56b05cd765c)
2020-02-06 13:02:08 +01:00
Haoyu Qiu
012f8ffb36 Shortens minimum height of script editor windows
(cherry picked from commit 6785e199bb84bfefc7bd05bec2b4051733eb2ad7)
2020-02-06 13:02:08 +01:00
clayjohn
453babc60d Finish documenting BakedLightmap and TextureLayered
(cherry picked from commit 5643bc71f793fdf91dd82f0656fd65d1c3976222)
2020-02-06 13:02:08 +01:00
Haoyu Qiu
11f012d2db Completes doc for button classes
(cherry picked from commit db42d5ddffd707017097cc864b0015a11e2fc81e)
2020-02-06 13:02:08 +01:00
Hugo Locurcio
47368f2b7c doc: Add an example for Array.sort()
This may help people understand the difference between alphabetical
and natural order more quickly.

(cherry picked from commit 1de9118c5fee6201ea1e9eb4be9b00867f536520)
2020-02-06 13:02:08 +01:00
Hugo Locurcio
3410dd3a9e doc: Add a short AnimationPlayer versus Tween comparison
Many newcomers are confused about which one to choose for animating
properties. This should help clarify the situation with regards
to AnimationPlayer versus Tween.

(cherry picked from commit 810b1341cef475c28c97cc476f54e1199f5c3d2d)
2020-02-06 13:02:08 +01:00
Haoyu Qiu
0d8b3efeb7 Adds extra cursors for macOS
Before, plain arrow cursor or unsuitable ones were used.

(cherry picked from commit 8f881847c05b596e587f87cc682ce0307a52af34)
2020-02-06 13:02:08 +01:00
Hugo Locurcio
1898240af8 Increase the maximum number of octaves in OpenSimplexNoise to 9
An error message is now printed when trying to set the number of octaves
above the maximum allowed value.

The magic constant was also replaced with a define that can be
easily changed.

This closes #28714.

(cherry picked from commit 13622d40fc22e2b3be90d1b6f3c78e4b05f7ca1f)
2020-02-06 13:02:08 +01:00
Hugo Locurcio
cbd4784d14 Improve the CheckBox and CheckButton class documentations
This makes the CheckBox and CheckButton classes 100% documented.

(cherry picked from commit c9946bc87e269a2733fa28885ed305b381a5f909)
2020-02-06 13:02:08 +01:00
Hugo Locurcio
7487a2d11a Use the editor background color for the profiler graph
This leads to a better appearance compared to using pure black.

(cherry picked from commit fa2fda324476d9384f86773d1e4bc17ff4f8b05e)
2020-02-06 13:02:08 +01:00
Haoyu Qiu
3388b7f4c7 Adds sanitizer options for macOS
(cherry picked from commit df4ea84e03b9d1f4397860c562084558a8f062f7)
2020-02-06 13:02:08 +01:00
Hugo Locurcio
74bf8b2d50 Allow saving anywhere when exporting CSV measures from the profiler
Previously, the CSV file could only be saved in `res://`. Since this is
an editor tool, it makes sense to allow saving anywhere on
the filesystem.

(cherry picked from commit 81f33df84b8f72d633081cdf2c7b8cd5700d9c87)
2020-02-06 13:02:08 +01:00