698 Commits

Author SHA1 Message Date
Aaron Franke
58c87e5d26 Fix many errors found by PVS-Studio
Fix errors 2, 3, 4, 6, 8, 9, 11, 12, 13, 14, and 15.

(cherry picked from commit cb01268562a47e6a1c32559f58fbadd46e52d304)
2019-07-03 15:39:12 +02:00
Rémi Verschelde
69f08cd2cc Fix shortcuts using KEY_MASK_CTRL instead of KEY_MASK_CMD
KEY_MASK_CMD is automatically replaced by KEY_MASK_CTRL on non-OSX
and KEY_MASK_META (Command key) on OSX, so it should be used for all
Ctrl/Cmd + key shortcuts.

Also de-hacked the macOS shortcut replacements with proper conditional
definition. Not tested on macOS, cannot judge if they are good shortcuts.

Fixes #10761.

(cherry picked from commit 3f09cac267ad351307b4dfcc7e4276ef4347c459)
2019-07-03 12:33:25 +02:00
Peter Folkins
9d006730ad Fix script editor CTRL+CLICK on singleton functions
(cherry picked from commit 0c1a71b0471d30138db00f9a50d3bf4157523586)
2019-07-03 12:33:24 +02:00
Rémi Verschelde
0eab0d9343 Update copyright statements to 2019
Happy new year to the wonderful Godot community!
2019-01-03 11:41:35 +01:00
Julien CATINEAU
22b105e421 add option to invert y-axis
(cherry picked from commit 57e6b8781ca311ffd919f25a2c36039f45866c2a,
with later renaming from efd4228892eb41ef3980ffec43b2095a54ea1d12
and 563356109b12b3296b9359973329d7499dbfaa98)
2018-11-28 10:27:42 +01:00
M. Huri
e6ae704f32 Repaired mistyped of 'its' on several files.
(cherry picked from commit b46ba24e3b6bbdc107282347f6dbac0b192e1644)
2018-11-01 11:39:26 +01:00
Rémi Verschelde
909eaede4c Disable threading in Asset Library
Threaded HTTPRequest appears to be crashy on 3.0.x.
Fixes #19336.
2018-06-22 09:30:17 +02:00
Hugo Locurcio
403f7dc35f Change ".." punctuation for "..." in editor strings (#16507)
(cherry picked from commit 1c419531a009f48aa074f9b5f93b98d387c33723)
2018-06-05 21:42:33 +02:00
Karolis K
c461b15720 Fix icon if remote icon load fails
(cherry picked from commit c3e921fba3be76c27c33c495e2df4b64fdeb8638)
2018-05-13 22:58:13 +02:00
Michael Alexsander Silva Dias
4aad40d249 Small changes for some strings.
(cherry picked from commit 5b0ddb1354e211a6a6ef0ddfe27c0f47d69406b3)
2018-05-13 22:37:56 +02:00
Wilson E. Alvarez
0d6c64b38a Removed unneeded sort from SpriteFramesEditor plugin
(cherry picked from commit bb9c75c5ed818197794dcae109f4555db4f5cb7c)
2018-04-29 15:02:18 +02:00
Pedro J. Estébanez
3bda257163 Fix theme editor sample widgets
(cherry picked from commit a0626d7d9c005905b836552d597c173c701e248b)
2018-04-28 22:19:54 +02:00
Pedro J. Estébanez
20fa30bde6 Use radio-button-like menu entries where applicable
(cherry picked from commit a6dc160d5cdf581c61d9c0ecd042aa7b5e958a87)
2018-04-28 22:16:53 +02:00
Pedro J. Estébanez
b5b0e42b85 Support radio-button entries in ItemListPlugin
(cherry picked from commit bf14a6deffe4c9b74920080851f7e4e273f66116)
2018-04-28 22:16:38 +02:00
Pedro J. Estébanez
a525ea128d Add radio-button-looking entries to PopupMenu
They work exactly the same as current checkbox-decorated items, but in order to preserve compatibility, separate methods are used, like `add_radio_check_item()`. The other option would have been to add a new parameter at the end of `add_check_item()` and the like, but that would have forced callers to provide the defaults manually.

`is_item_checkable()`, `is_item_checked()` and `set_item_checked()` are used regardless the item is set to look as check box or radio button.

Keeping check in the name adds an additional clue about these facts.

Closes #13055.

(cherry picked from commit ab3b1d9f3ed5c8a4dda885d84ed5949b0146639d)
2018-04-28 22:16:25 +02:00
Alexander Alekseev
0f5a3d23ea Update transform buttons in tile editor while using T, A, S shortcuts (fixes #17962)
(cherry picked from commit 0853ac2006194afc7f96ad49cb15fc1e0746c83f)
2018-04-28 20:24:00 +02:00
Poommetee Ketson
c5dfe6824c Mesh: fix crash when creating mesh outline from QuadMesh
Since create_outline can only make outline for PRIMITIVE_TRIANGLES,
when QuadMesh (which is PRIMITIVE_TRIANGLE_FAN) is used to create
outline, will leave `arrays` empty, and crash when it is being indexed
for "indices" subarray.

This PR shows error when there's only one surface and it is not
TRIANGLES. Also prevent the crash if it has more than one surface
and none of them are TRIANGLES (and any other cases that could leave
`arrays` empty) by checking the size of `arrays` == 8 before indexing
it, since the method seems to expect `arrays` to be of that size.

(cherry picked from commit a492d229529018f0277f75aa7b99661b5dd40420)
2018-04-28 20:16:22 +02:00
Michael Alexsander Silva Dias
60bc0f79a7 Fixed some popups not shrinking their size back when losing items.
(cherry picked from commit 7cbf301f31a57771b3c7dbe378654195f3db4ab1)
2018-04-28 19:59:37 +02:00
Poommetee Ketson
72350eebb2 ScriptTextEditor: fix capitalize offset
(cherry picked from commit caa0d513ab89d46dbf694182ab47a77f5fbe31ed)
2018-04-28 16:45:17 +02:00
Bernhard Liebl
6d767b0f9a AnimationPlayer: fix scrubbing after play backwards
(cherry picked from commit b553b38e7be52003f44bb05165fdae25c5863ab7)
2018-04-28 15:55:36 +02:00
poke1024
2f53325bed Fix round preview getting square on "run scene" (issue 16734)
(cherry picked from commit 899f7b125e843d7187ad7c614588d635ce989f80)
2018-04-14 20:37:54 +02:00
Blazej Floch
2c93def09d Add "Show Origin" and "Show Viewport" options to 2D Editor Viewport
(cherry picked from commit 934498d37ad8f57384a3eeddc9b577797f2339a3)
2018-03-28 23:33:03 +02:00
Andreas Haas
9cbcff4e91 ScriptEditor: Use EditorSettings instead of hardcoded values in constructor.
(cherry picked from commit 1cfc43421ee75304a63ef3905c0334f9d3faf302)
2018-03-28 23:13:46 +02:00
geequlim
5eebe51014 Fix builtin script cannot open from debug stacks
(cherry picked from commit 095e2bcc26302a27a71b37b76348cb9231ab5862)
2018-03-28 22:12:31 +02:00
Fabio Alessandrelli
89bff17cd2 More threading in AssetLib
AssetLib now uses thread as requested to download previews and items

(cherry picked from commit 3a25415a1c2928e22b4eb9da782237ed73fb79c8)
2018-03-28 21:03:56 +02:00
Hein-Pieter van Braam
675899a521 Fix various valgrind reported uninitialized variable uses
(cherry picked from commit d702d7b335c0c9305e75131770c0ea739b70d813)
2018-03-01 21:06:31 +01:00
Rémi Verschelde
d79a7a2773 Refactor version macros and fix related bugs
The previous logic with VERSION_MKSTRING was a bit unwieldy, so there were
several places hardcoding their own variant of the version string, potentially
with bugs (e.g. forgetting the patch number when defined).

The new logic defines:

- VERSION_BRANCH, the main 'major.minor' version (e.g. 3.1)
- VERSION_NUMBER, which can be 'major.minor' or 'major.minor.patch',
  depending on whether the latter is defined (e.g. 3.1.4)
- VERSION_FULL_CONFIG, which contains the version status (e.g. stable)
  and the module-specific suffix (e.g. mono)
- VERSION_FULL_BUILD, same as above but with build/reference name
  (e.g. official, custom_build, mageia, etc.)
  Note: Slight change here, as the previous format had the build name
  *before* the module-specific suffix; now it's after
- VERSION_FULL_NAME, same as before, so VERSION_FULL_BUILD prefixed
  with "Godot v" for readability

Bugs fixed thanks to that:

- Export templates version matching now properly takes VERSION_PATCH
  into account by relying on VERSION_FULL_CONFIG.
- ClassDB hash no longer takes the build name into account, but limits
  itself to VERSION_FULL_CONFIG (build name is cosmetic, not relevant
  for the API hash).
- Docs XML no longer hardcode the VERSION_STATUS, this was annoying.
- Small cleanup in Windows .rc file thanks to new macros.

(cherry picked from commit 23ebae01dc7e3df9c842ca7d017f7b233837721d)
2018-02-24 01:34:34 +01:00
Yan Pas
3e8c214a19 Delete all selected lines using the delete line shortcut in script editor
(cherry picked from commit 7368978a48127a4c238f51bd0dbdf4c8d091809f)
2018-02-22 13:09:02 +01:00
Artem Varaksa
eacd66e784 Clean up some bad words from code comments
(cherry picked from commit d35e48622800f6686dbdfba380e25170005dcc2b)
2018-02-22 12:22:41 +01:00
luz.paz
751806b5c7 Fix typos with codespell
Found via `codespell -q 3 --skip="./thirdparty,./editor/translations" -I ../godot-word-whitelist.txt`
Whitelist consists of:
```
ang
doubleclick
lod
nd
que
te
unselect
```

(cherry picked from commit 612ab4bbc6f2396f4dcd68c3f142f7dfa2f5f0a5)
2018-02-22 12:17:06 +01:00
Chaosus
c6a96fc360 Enable snapping when control key pressed
(cherry picked from commit 24c170555d57ccbbb270f02d0b5d3e98f99b8729)
2018-02-21 22:16:20 +01:00
volzhs
317cb336eb Keep to show current script when closing all docs
also fix error when removing multiple tabs from TabContainer at same frame.
like closing multiple docs at once.

Fix #16403

(cherry picked from commit df84290a7ee2e4e939fc4eccc030129227c83895)
2018-02-21 22:09:23 +01:00
damarindra
9f9731da3a fix crash autotile edit mode
(cherry picked from commit cceb176be372c4c07c18d707e794ee8c3a8873e8)
2018-02-19 22:30:13 +01:00
ianb96
2f87e7ffe9 option to disable sort in script list
(cherry picked from commit e1778fb921a7800e50fd464cc16eaae6faa19ee9)
2018-02-19 22:26:29 +01:00
Michael Alexsander Silva Dias
9fb843db06 Added "allow_reselect" property to ItemList and enabled it for the method/help lists.
(cherry picked from commit 4dbf6ac1b890ff6333d1600d2c091baa176b356c)
2018-02-19 22:21:14 +01:00
George Marques
a39930c5b9 Add a function to remove controls from containers
Closes #5968

(cherry picked from commit da69a0625333304e81e5d706d13e15ccbd414a52)
2018-02-19 22:18:22 +01:00
Paulb23
148e059940 Fixed members overview not scrolling to correct line
(cherry picked from commit 4d92c5e1c306b483d30004fe04fbef1ad46f7f7f)
2018-02-19 22:13:46 +01:00
Artem Varaksa
7af43c4ca3 Fix #16479 (deselect text when jumping to function)
(cherry picked from commit 3094e897821491a1b2a9e28096d94ff32a3461e8)
2018-02-19 22:13:46 +01:00
Hugo Locurcio
a7d7f763d0 Remove debugging prints related to the asset library
(cherry picked from commit 5513e4e1f9674f9163fdeb6ccc6dc1994736703a)
2018-02-19 22:13:46 +01:00
binbitten
65aa9063c4 Fix spaces and quotes in external editor flags
(cherry picked from commit fb8d2420b58825c5293025ca8dc5b3f4e587787d)
2018-02-19 22:13:45 +01:00
ianb96
9eb546e7ff drop path text at mouse pos
(cherry picked from commit 06965f2770a5ee25db1691174d22d2a4a8e9116a)
2018-02-19 22:13:45 +01:00
Chaosus
91692ce72a Fix gradient texture preview
(cherry picked from commit 3ba43ac975fae174454f38ec7ae9979ea0eb5964)
2018-02-19 22:13:45 +01:00
Michael Alexsander Silva Dias
617bcd1b91 Capitalized "View" menu options.
(cherry picked from commit b507eeddcce18511445c940a8803ab439f830afa)
2018-02-19 22:13:45 +01:00
Poommetee Ketson
ba36ef5465 3DEditor: fix selecting node in viewport not update inspector
(cherry picked from commit cfac160f9fb29996a38e1360f223236ccf15c48c)
2018-02-19 22:13:44 +01:00
Poommetee Ketson
41f9904e71 3DEditor: fix multiple node selection crash the editor
I'm not sure about this fix. This seems to also fixes the weird
selection bug where when selecting node 1 to 3 it focuses on
2nd node.

(cherry picked from commit 25dd1f0681cf6532b1d0fb1e023d0e8a50c30e69)
2018-02-19 22:13:44 +01:00
Julian Murgia
3548f71cc4 Display path to preloaded res + button to open it
(cherry picked from commit b766a849adb027762baabc89c0b58635883cd9d7)
2018-02-19 20:56:16 +01:00
Razah
72901936cc Fix shortcut conflict
fix https://github.com/godotengine/godot/issues/16054
The clone_down shortcut that conflicts with the "editor / play" shortcut has been replaced by "SHIFT + COMMAND + C" instead of "COMMAND + B" on macOS
2018-01-25 19:24:51 +03:00
volzhs
48611afb80 Rotate Control node with respecting pivot offset 2018-01-24 15:44:28 +09:00
Poommetee Ketson
70be6848c2 Fix ObjectDB Instances still exist
```
WARNING: cleanup: ObjectDB Instances still exist!
   At: core/object.cpp:1989.
Leaked Instance: VSeparator:13837 - Node Name:
Leaked Instance: AutotileEditorHelper:13814
Orphan StringName: VSeparator
Orphan StringName: AutotileEditorHelper
StringName: 2 unclaimed string names at exit.
```
2018-01-22 11:46:05 +07:00
Rémi Verschelde
9f479f096c Fix typos in code and docs with codespell
Using v1.11.0 from https://github.com/lucasdemarchi/codespell
2018-01-18 22:01:42 +01:00