473 Commits

Author SHA1 Message Date
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
Haoyu Qiu
dabb079de6 Cleans up headers included in editor_node.h 2019-12-24 21:46:05 +08:00
Haoyu Qiu
b97dc6a6e9 Makes more editor strings translatable
* "Add" button text in Groups Editor
* "Receiver Method" in Connect Signal Dialog
* "Play Mode" in Animation State Machine Editor
* "Mesh Library" button text in Mesh Library editor plugin
* Compose Array node button texts in Visual Script
* Various button texts in TileSet Editor
* Various Run Script errors
2019-12-21 20:58:17 +08:00
Haoyu Qiu
5d738c7dd7 Fixes size of create function dialog 2019-12-17 09:04:30 +08:00
Haoyu Qiu
d2fce601b8 Makes more strings in editor translatable
* File type names in file dialogs
* Layout option names
* Visual shader editor UI
2019-12-16 16:41:07 +08:00
Rémi Verschelde
ddad6afa92 Merge pull request #34040 from qarmin/unused_variable_more_precise_numbers
Removed unused variables, add some constants numbers
2019-12-10 08:25:31 +01:00
Rafał Mikrut
42a7ed894a Removed unused variables, add some constants numbers 2019-12-10 05:13:02 +01:00
Rémi Verschelde
fa4c6b8f82 doc: Markup fixes for enums and constants 2019-12-06 23:09:20 +01:00
codecustard
cce26ada16 Fixes wrong position when adding node in VS editor
When adding a node in the visual script editor while zoomed in, the position of the newly added node would be wrong.
2019-12-04 17:12:01 -08:00
Rémi Verschelde
8c6fa62520 Merge pull request #33810 from akien-mga/codespell
Fix typos with codespell
2019-11-22 08:58:50 +01:00
Rémi Verschelde
930f051a8b Fix typos with codespell
Using codespell 1.16.0.

Method:
```
$ cat > ../godot-word-whitelist.txt << EOF
ang
curvelinear
dof
doubleclick
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
```
2019-11-22 08:35:03 +01:00
Hugo Locurcio
6938d98f36 Use the Unicode "multiply" sign for the "A x B" visual script node 2019-11-15 19:06:53 +01:00
Rémi Verschelde
410850ac19 Merge pull request #32853 from OsamaElHariri/visual_script_setter_props_fix
Set the properties of a Set node after add_node
2019-11-07 13:13:33 +01:00
Rémi Verschelde
a27aa8b30f Merge pull request #33238 from qarmin/other_fixes
Fix some crashes, overflows and using variables without  values
2019-11-01 22:12:47 +01:00
Rafał Mikrut
74c0424e26 Fix some crashes, overflows and using variables without values 2019-11-01 16:16:31 +01:00
Omicron
26adf635c4 Fix: typo atleast -> at least
Typo found in source string, reported by linux-man on weblate
2019-11-01 16:10:21 +01:00
Rémi Verschelde
43d9afb3af i18n: Sync translation template with current source 2019-10-29 13:57:45 +01:00
Osama El Hariri
7b1bb68586 Set the properties of a Set node after add_node 2019-10-28 21:03:12 +02:00
Rémi Verschelde
ea3d494e0a Merge pull request #32830 from timoschwarzer/remove-redundant-compiler-directives
Remove redundant compiler directives
2019-10-15 09:57:46 +02:00
Timo Schwarzer
c9f2101028 Remove redundant compiler directives
Closes #32817
2019-10-14 16:23:13 +02:00
qarmin
b674b6d163 Small fixes to redundand code, copy paste bugs 2019-10-14 11:40:55 +02:00
Rémi Verschelde
632baf571b Merge pull request #32697 from madmiraal/remove-editor-dependency
Remove editor dependency
2019-10-10 09:21:54 +02:00
Marcel Admiraal
fdba9db2af Remove dependency on the editor directory being in the build's include path.
- Add or remove the necessary subdirectorires to the includes to remove
dependency on the editor directory being in the build's include path.
- Ensure includes in modified files conform to style guideline.
- Remove editor from the build include path.
2019-10-10 08:57:00 +02:00
Aaron Franke
3086baa218 Make VisualScript check inheritance for port info 2019-10-09 01:47:05 -04:00
Rémi Verschelde
7076528aee Merge pull request #32438 from Chaosus/fix_dialog_theme
Fix theme in visual script dialogs (at startup)
2019-09-30 11:02:37 +02:00
Chaosus
b7abea99e7 Fix theme in visual script dialogs (at startup) 2019-09-30 10:51:05 +03:00
Rémi Verschelde
43a4d0ffb6 Merge pull request #32402 from YeldhamDev/fix_vs_add_function
Fix VS editor's "Create Function" dialog
2019-09-29 21:36:57 +02:00
Swarnim Arun
7fadef06b0 Deconstruct node for Visualscript
Adds deconstruct nodes for the built-in types and adds default text to function rename_input_box for the visualscript.
2019-09-29 23:00:08 +05:30
Michael Alexsander Silva Dias
1e8498dd62 Fix VS editor's "Create Function" dialog 2019-09-28 11:57:13 -03:00
Rémi Verschelde
14647a9fef Merge pull request #32398 from YeldhamDev/cleanup_vs_editor_left
Cleanup VS editor's left menu
2019-09-28 07:35:46 +02:00
Michael Alexsander Silva Dias
a71734853f Cleanup VS editor's left menu 2019-09-27 21:20:43 -03:00
Swarnim Arun
91a1d201d1 Fix Edit function button 2019-09-28 02:16:11 +05:30