504 Commits

Author SHA1 Message Date
David Cambré
f1cc2ac84f Fix VisualScriptPropertySet value hint
(cherry picked from commit 0c9947cb2f542e404b78903b4ccf754e663c0639)
2021-09-29 08:57:25 +02:00
David Cambré
b6c8b9b561 Update VisualScriptCustomNode.xml
(cherry picked from commit 080125660a9adee7f03cbbf4ffcd0cef079123b5)
2021-09-21 15:00:54 +02:00
Rémi Verschelde
8dad86ba00 doc: Use self-closing tags for return and argument
For the time being we don't support writing a description for those, preferring
having all details in the method's description.

Using self-closing tags saves half the lines, and prevents contributors from
thinking that they should write the argument or return documentation there.

(cherry picked from commit 7adf4cc9b5de6701a41e27690a69b9892d5eed85)
2021-08-03 10:32:31 +02:00
Haoyu Qiu
6315281031 Make action names translatable
(cherry picked from commit a3b221e99fb86afee9d055c7113d05473f229087)
2021-08-03 09:27:12 +02:00
kleonc
d5e2032f22 VisualScriptEditor Fix in graph position calculation (do not skip zoom)
(cherry picked from commit 3336453dffecc1c0ade1aa1065299a3cc8aa3407)
2021-07-26 14:38:26 +02:00
Umang Kalra
348a65513c Fixes missing descriptions in search window of visualscript
(cherry picked from commit 5e8d31ef0eaf89c61b4180df470cad33fc5788bc)
2021-06-29 13:47:35 +02:00
David Cambré
6c12c2a707 The built in function math/seed was missing the sequenceport.
(cherry picked from commit d7205ef1d03d83a3923a35d5bf1edbf292ae3a55)
2021-05-31 12:04:04 +02:00
Rémi Verschelde
559d05bf3c VisualScript: Fix wrongly setting default value on property hint change
PR #45096 put the backported code in the wrong case, it should be for `type`
and not for `hint`.

Also synced `hint` enum values with `Object.PropertyHint`.

Fixes #48698.

(cherry picked from commit c7182512dde674483d0d88996ca4bb856928f07d)
2021-05-13 23:17:07 +02:00
kleonc
8db0280b4b Make posmod use int64_t instead of int
(cherry picked from commit f04a964627d469e6de4227ebe6301ba18757b9de)
2021-05-04 12:47:13 +02:00
Rémi Verschelde
648bf9291b doc: Make all tutorial links point to 3.3 branch of docs 2021-03-26 10:43:43 +01:00
Rémi Verschelde
8588d87ca6 doc: Sync classref with 3.3 version bump 2021-03-23 13:40:34 +01:00
Pedro J. Estébanez
a1023f2e00 Modernize Mutex
- Based on C++11's `mutex`
- No more need to allocate-deallocate or check for null
- No pointer anymore, just a member variable
- Platform-specific implementations no longer needed
- Simpler for `NO_THREADS`
- `BinaryMutex` added for special cases as the non-recursive version
- `MutexLock` now takes a reference. At this point the cases of null `Mutex`es are rare. If you ever need that, just don't use `MutexLock`.
- `ScopedMutexLock` is dropped and replaced by `MutexLock`, because they were pretty much the same.
2021-02-18 11:58:08 +01:00
Rémi Verschelde
460ad9886d Merge pull request #45828 from akien-mga/3.2-cherrypicks
Cherry-picks for the 3.2 branch (future 3.2.4) - 21st batch
2021-02-09 09:35:58 +01:00
Kanabenki
6603578ab3 Snap VisualScript comment to grid when resizing
(cherry picked from commit 07fb7f9888126d189476ec9a6272447b7c9748ac)
2021-02-08 22:36:36 +01:00
Rémi Verschelde
b2d31c3d5f Merge pull request #45448 from pycbouh/graphedit-minimap-active-invisible-3.2
[3.2] Fix minimap capturing events and improve its theme and editor settings
2021-01-25 20:33:21 +01:00
Yuri Sizov
c0776f90f5 Fix minimap capturing events and improve its theme
Add an editor setting for minimap opacity in visual editors
2021-01-25 21:49:34 +03:00
Rémi Verschelde
ab9abab463 Update copyright statements to 2021
Happy new year to the wonderful Godot community!

2020 has been a tough year for most of us personally, but a good year for
Godot development nonetheless with a huge amount of work done towards Godot
4.0 and great improvements backported to the long-lived 3.2 branch.

We've had close to 400 contributors to engine code this year, authoring near
7,000 commit! (And that's only for the `master` branch and for the engine code,
there's a lot more when counting docs, demos and other first-party repos.)

Here's to a great year 2021 for all Godot users 🎆

(cherry picked from commit b5334d14f7a471f94bcbd64d5bae2ad853d0b7f1)
2021-01-13 16:17:06 +01:00
Rémi Verschelde
0f3927aff2 Merge pull request #45096 from Chaosus/vs_assign_default_value_3.2
[3.2] Auto-assign default value for variable in visual script on type changing
2021-01-11 10:39:39 +01:00
Yuri Roubinsky
d1e3e8bc86 [3.2] Auto-assign default value for variable in visual script on type changing 2021-01-11 10:29:12 +03:00
Rémi Verschelde
dbc8647b06 Merge pull request #44795 from akien-mga/3.2-cherrypicks
Cherry-picks for the 3.2 branch (future 3.2.4) - 14th batch
2020-12-29 17:16:25 +01:00
Yuri Roubinsky
e5515a5cb1 Fix broken members panel in visual script editor
(cherry picked from commit d6bdd042bc255a7a8924e09d44b24532cf3babc1)
2020-12-29 16:02:01 +01:00
Rémi Verschelde
827e36b581 doc: Warn about using Node internal processing
See #43689.

Also 'fixed' some spelling for behavior in publicly visible strings.
(Sorry en_GB, en_CA, en_AU, and more... Silicon Valley won the tech spelling
war.)

(cherry picked from commit a655de89e3abc14baff7a95deb85fe4daed7361c)
2020-11-26 09:38:45 +01:00
Rémi Verschelde
8d10725cf2 doc: Sync classref with current source 2020-10-19 17:13:30 +02:00
Rémi Verschelde
5766590ef4 doc: Make docs.godotengine.org links point to 3.2 branch 2020-10-19 16:10:01 +02:00
Tomasz Chabora
df7611e61c Bind missing constant in VisualScriptPropertyGet
(cherry picked from commit aadc8d54a47cba2ec8c5fd40875fa77ef3d89974)
2020-10-19 16:09:59 +02:00
Jacob Edie
355474916c added temp variable because *p_inputs[2] is the same as *p_outputs[0]
(cherry picked from commit d76457a7f39cade4f0bccfc8c68eb1b1c5a59c44)
2020-10-19 16:09:58 +02:00
Rémi Verschelde
d6a8f59c06 Merge pull request #40461 from nekomatata/script-editor-init-optimization-3.2
[3.2] Optimized ScriptEditor initialization when many scripts are loaded
2020-10-01 13:58:01 +02:00
Rémi Verschelde
523f5512e0 Merge pull request #42170 from Razoric480/fix-vscript-value-by-type-32
Add a VScript func to sanitize variant values (3.2)
2020-09-23 09:35:22 +02:00
Francois Belair
3e50b8e0c5 Add a VScript func to sanitize variant values
Backported to 3.2
2020-09-18 11:28:58 -04:00
Rémi Verschelde
8340d3f8d7 Fix typos with codespell
Using codespell 1.17.1.

Method:
```
$ cat > ../godot-word-whitelist.txt << EOF
ang
curvelinear
dof
doubleclick
fave
findn
leapyear
lod
merchantibility
nd
numer
ois
ony
que
seeked
synching
te
uint
unselect
webp
EOF

$ codespell -w -q 3 -I ../godot-word-whitelist.txt --skip="./thirdparty,*.po"
$ git diff // undo unwanted changes
```
2020-09-18 14:09:51 +02:00
PouleyKetchoupp
d504c15295 Optimized ScriptEditor initialization when many scripts are loaded
This change avoids the editor to freeze for several seconds when a
project with lots of scripts is loaded in the editor.

It focuses on a few heavy operations previously executed on all
previously loaded scripts:
- Initialize script resource (script validation/parsing) only
on focus
- ScriptTextEditor: code editor and edit menu are added to the
scene only on focus
- Add to recent scripts only when opening new scripts
(load/save scene metadata)
2020-07-17 09:42:11 +02:00
Rémi Verschelde
183d22b0ef DocData: Skip language-specific ClassDoc without methods/constants
Removes the useless `@C#`, `@NativeScript` and `@VisualScript` entries.

(cherry picked from commit ba0db95909a232e3f4d694294f077c9460ef00ce)
2020-06-18 11:29:28 +02:00
Rémi Verschelde
b65029b408 SCons: Format buildsystem files with psf/black
Configured for a max line length of 120 characters.

psf/black is very opinionated and purposely doesn't leave much room for
configuration. The output is mostly OK so that should be fine for us,
but some things worth noting:

- Manually wrapped strings will be reflowed, so by using a line length
  of 120 for the sake of preserving readability for our long command
  calls, it also means that some manually wrapped strings are back on
  the same line and should be manually merged again.

- Code generators using string concatenation extensively look awful,
  since black puts each operand on a single line. We need to refactor
  these generators to use more pythonic string formatting, for which
  many options are available (`%`, `format` or f-strings).

- CI checks and a pre-commit hook will be added to ensure that future
  buildsystem changes are well-formatted.

(cherry picked from commit cd4e46ee65dab6baa6a143bf3b3f64244be36712)
2020-06-10 15:30:52 +02:00
Rémi Verschelde
756cefd6d3 Merge pull request #39280 from akien-mga/3.2-cherrypicks
Cherry-picks for the 3.2 branch (future 3.2.2) - 7th batch
2020-06-04 13:29:52 +02:00
Swarnim Arun
f82f8ec125 Fix crashing of VisualScript due to...
Attempting to move the function node to another function whose data connection is a dependency of the node the specific node being moved to a different function during changes to sequence connections.
By skipping, if the from_node is a function_node during the data connection dependencies scan.
Should fix #37991

(cherry picked from commit 5c48631509751191afc5a83e4c48075a90a38150)
2020-06-04 12:16:40 +02:00
Rémi Verschelde
cd4df3803e Merge pull request #37933 from akien-mga/3.2-cherrypicks
Cherry-picks for the 3.2 branch (future 3.2.2) - 2nd batch
2020-04-16 15:14:39 +02:00
Nico Mitchell
c9e627738f Change round return type to float
(cherry picked from commits c2ffaf5b2b6b2d167c7bcfdcc7b1ad58c8d7c858
and f7cc2b090cf1e32c7671a35839863d0c5d448715)
2020-04-16 12:57:21 +02:00
Rémi Verschelde
91719721cd Merge pull request #37289 from akien-mga/3.2-cherrypicks
Cherry-picks for the 3.2 branch (future 3.2.2) - 1st batch
2020-03-25 13:58:14 +01:00
Rajat Goswami
216ca62ae5 Adding missing include guards to header files identified by LGTM.
This addresses the issue godotengine/godot#37143

(cherry picked from commit 2ecf928ae39253f8cc72de1ad1391e8ed140ed6d)
2020-03-25 11:38:54 +01:00
Rémi Verschelde
a0df0da81e Merge pull request #36784 from akien-mga/3.2-cherrypicks
Cherry-picks for the 3.2 branch (future 3.2.1) - 3rd batch
2020-03-05 08:24:51 +01:00
Rafał Mikrut
0dc0cf86b9 Fix suspicious | and + operators
(cherry picked from commit d0621b954b182bb5f30b256ec70a45d821985e58)
2020-03-04 12:40:14 +01:00
Rémi Verschelde
d82dceee33 Merge pull request #36215 from akien-mga/3.2-cherrypicks
Cherry-picks for the 3.2 branch (future 3.2.1) - 2nd batch
2020-02-14 22:04:19 +01:00
Yuri Roubinsky
06bd6e8c49 Fix VisualScriptClassConstant to be updated properly
(cherry picked from commit 386d0fe9887e7cb272aeb05bfe6930bec4114140)
2020-02-14 16:12:09 +01:00
Yuri Roubinsky
9f6f0e15fa Fix GlobalConstant/BasicTypeConstant return type in visual scripts
(cherry picked from commit c19933eec4a3c2d21a07be823c95f87a2141ca60)
2020-02-14 16:11:54 +01:00
Rémi Verschelde
87d6172967 doc: Drop unused 'category' property from header
We already removed it from the online docs with #35132.

Currently it can only be "Built-In Types" (Variant types) or "Core"
(everything else), which is of limited use.

We might also want to consider dropping it from `ClassDB` altogether
in Godot 4.0.
2020-01-26 16:02:39 +01:00
Rémi Verschelde
4128510769 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
Ignacio Etcheverry
bdf2a26d45 Fix ClassDB API portability with some android and editor classes
- `EditorNavigationMeshGenerator` was being registered as part of the Core API,
even after d3f48f88bb84d22b7805ce971ac86cf1953a29fd. We must make sure to
set Editor as the current ClassDB API type before creating an instance.

- The `VisualScriptEngineSingleton.constant` property has a property hint string
that's different between tools and non-tools builds. This commit makes the
hint string to no longer be set in `_bind_methods`, and to instead set it in
`_validate_property`. This way it's ignored when calculating the API hash.

- `JavaClassWrapper` is now registered in ClassDB on all platforms,
using a dummy implementation on platforms other than Android.
This fixes API portability between Android and other platforms.

- Updated `--class-db-json` command to ignore non-virtual methods that start
with an underscore (see: 4be87c6016a5893cbde897924e540df4c988cee5).
2020-01-19 20:15:13 +01:00
Rémi Verschelde
3d40a35f0b Merge pull request #35117 from timothyqiu/deferred
Makes adding port in Visual Script nodes deferred
2020-01-14 14:41:53 +01:00
Haoyu Qiu
ae45f7df23 Makes adding port in Visual Script nodes deferred 2020-01-14 21:03:09 +08:00
Rémi Verschelde
be5dd6ce1f Update copyright statements to 2020
Happy new year to the wonderful Godot community!

We're starting a new decade with a well-established, non-profit, free
and open source game engine, and tons of further improvements in the
pipeline from hundreds of contributors.

Godot will keep getting better, and we're looking forward to all the
games that the community will keep developing and releasing with it.
2020-01-01 11:16:22 +01:00