2042 Commits

Author SHA1 Message Date
Hein-Pieter van Braam-Stewart
0b4dec63a9 Object::script may not be a valid Ref<Script>
It appears that Object::script may be a valid ScriptInstance but not be
castable to Ref<Script>. There were only 5 places in the code that made
this assumption. This commit fixes that.

(cherry picked from commit 20b0046945bfe55591c370e32f4928f7cbeb45e6)
2019-07-03 17:02:13 +02:00
Rémi Verschelde
733668074a Fix creating editor data, config and cache paths
We used to abort if the system-specific data folder (e.g. `~/.local`
or `%APPDATA%`) is missing, but the next code chunk actually creates
it with `make_dir_recursive` if missing.

Fixes #26598.

(cherry picked from commit c0050d9295c1fd9b428782e49a60d67d83ef892b)
2019-07-03 16:18:34 +02:00
Hugo Locurcio
41cda84b11 Add a setting hint for the Output panel font size
This closes #21237.

(cherry picked from commit 07e87f6ec09dd600fc53c03801b63c828b2561f8)
2019-07-03 16:13:07 +02:00
Marc Gilleron
0f2e3976d0 Fixed uninitialized log member due to THEME_CHANGED notification
(cherry picked from commit fb2eb66e40269d91b8e2392d52fff2a54cb32ebd)
2019-07-03 16:11:03 +02:00
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
Gleb Mineev
8ce8a45219 #21661: fixed GraphNode title offset
(cherry picked from commit 746ad820cf9f878b1076a223b0483d05a27d6e0a)
2019-07-03 14:27:49 +02:00
cyclopsian
049c91f4d1 Check for absolute paths in OBJ loader
(cherry picked from commit 45ba58c12376ab503230e5a4650648486042d936)
2019-07-03 14:23:11 +02:00
Rémi Verschelde
7586957720 Export dialog: Fix error color and link alignment
Also fix extraneous "- " line when there are more than 2 messages.

(cherry picked from commit 5542d4a830760affb10b72b50f950341595d2dd7)
2019-07-03 13:56:28 +02:00
K. S. Ernest (iFire) Lee
ff35310650 Bones are now named and their parents are correct.
(cherry picked from commit ac541f5d16f832615ceae1d23fd2c964fab99856)
2019-07-03 13:35:41 +02:00
Rémi Verschelde
392d988228 Export: Properly reload preset when opening dialog
Fixes #20119 where newly installed templates were not detected.

Also fix a bug with preset deletion where it would attempt to
edit an already removed preset. For this I made it so that
ItemList::deselect_all() also resets `current` to -1, as a manual
ItemList::deselect(idx) already does.

(cherry picked from commit 13239cd4cc271ba4ccac59a060012129829dfc5f)
2019-07-03 13:23:10 +02:00
volzhs
fd5dca2689 Fix copying ttf, otf by DND to editor
regression from d65ac7378c77648124e0e8acd09cea8fd0d104cd

(cherry picked from commit 4bb85b70e1b4bf6ccfba2e2c63e38879a5f09d10)
2019-07-03 13:09:18 +02:00
Yar-Mukhamedov
47c7bfd678 Fix export templates installation error...
(cherry picked from commit bf37bd94b6c3604f760abea691973b4b2d09e622)
2019-07-03 13:08:44 +02:00
Marcelo Fernandez
fab378abf5 Fix profiler not updating on realtime
(cherry picked from commit 34045051d29a94797415e693204862ddf155f564)
2019-07-03 12:33:25 +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
volzhs
12458ebe8c Fix updating mesh when reimporting
(cherry picked from commit 9d5e1228eaa1fe0180b23969edda80d3c461f677)
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
Bernhard M. Wiedemann
413f4db585 BuildSystem: Fix font list
We want to add the individual strings to the list
and not add a list object to the list.

Without this patch, sorting failed because "str < list"
is not a valid operation in python.

(cherry picked from commit f3125823268c414e7538d440cffe3c8a95294cad)
2019-07-03 10:48:19 +02:00
James Buck
cd25c9724f Fix editor tooltip formatting
Removed unnecessary word wrap which caused broken tags and general
ugliness. Fixes #24926

(cherry picked from commit 8b1b2f6a4cfb65d186097e29d4979838e9114685)
2019-04-20 19:55:19 +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
Rémi Verschelde
468b3dccab Fix missing/malformed license headers 2019-01-03 11:18:27 +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
Rémi Verschelde
272c31c837 Settings: Sort text editor themes alphabetically
(cherry picked from commit f0051394da56a329107b08e4f3c82de0e5fbf847)
2018-11-28 10:27:42 +01:00
Hein-Pieter van Braam
96ed1801aa When starting up try creating directories recursively
Previously we had a check to see if cache and data directories exist and
another check to try to make them if they do not. However the second
check was never reached if we don't have the directories in question.

Furthermore for cache directories on Linux people who never started a
desktop environment we need to recurisively create the XDG directory as
well as the godot specific directory.

This fixes #17963

(cherry picked from commit 321ac5ae136635a12925c97d078153a5cae44f3d)
2018-11-28 10:27:41 +01:00
Juan Linietsky
248eee819a Add support for line continuations (wtf) in obj format, fixes #7974
(cherry picked from commit 5a5614e8adcc49b92621dc2f39364385769d36a0)
2018-11-28 10:27:41 +01:00
Ibrahn Sahir
24269555a3 Corrected art depo link in editor icons readme.
(cherry picked from commit e1b14db86ae6dc1c865409a62babb7863e9c0b08)
2018-11-01 11:39:29 +01:00
Rémi Verschelde
67a108b196 DocData: Fix return type listed as "var" instead of "Variant"
(cherry picked from commit f92b87e5f8025e8ac7de1eaaf8fafbaf10521e7b)
2018-11-01 11:39:28 +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
Saracen
548777910b Fixes the hyperlinks for enumerators inside classes in the editor help.
(cherry picked from commit 63c6a2487fda4121ea28ba980ac331cd39e61acb)
2018-11-01 11:39:21 +01:00
Leon Krause
ce362c03cf Allow exporting runnable presets from command line
(cherry picked from commit af7926cf9863343a43b3673ab2d3fbe27f3e88ea)
2018-10-31 10:56:44 +01:00
Rémi Verschelde
f16f9b2b8a i18n: Sync translations with Weblate 2018-08-23 13:37:15 +02:00
Josh Faust
be588f9493 Fix crash on editor startup when running with platform=server
(cherry picked from commit 4e58db9f1244a00b1f29d9a0b57f77cfe32c0a44)
2018-07-28 16:06:30 +02:00
Michael Lee
00fa61f8f5 Preventing an editor crash in the event that a plugin scene's root-node is null.
(cherry picked from commit 2adfdbe18410a048b93f27fdcdbe17f7ac0d1015)
2018-07-28 16:06:30 +02:00
Rémi Verschelde
5c6c88ef15 i18n: Sync translations with Weblate 2018-07-26 11:22:43 +02:00
Rémi Verschelde
c709dff1a2 Style: Format code with clang-format 6.0.1
(cherry picked from commit 7c9f7452f4fd775ff80dbdfc27a6bfa07a1e8fcc)

Travis: Update style checks to clang-format 6.0.1

(cherry picked from commit 003ac67df1c25bb64bdf648ca39e4987277171b6)
2018-07-18 16:37:23 +02:00
Rodolfo Ribeiro Gomes
4fcb0d036c fix default glTF metallic & roughness factor values
The glTF 2.0 spec says that these pbrMetallicRoughness material
properties should be set as 1.0 by default.
In fact, KhronosGroup's official Blender Exporter does not even write
down those parameters if they are set as 1.0.

However, Godot import them as 0.0.

https://github.com/KhronosGroup/glTF/tree/master/specification/2.0#pbrmetallicroughness

Fixes: #19613 https://github.com/godotengine/godot/issues/19613
(cherry picked from commit 01b01209a3ec3da4df17b03d401560bb664772c6)
2018-07-10 00:10:39 +02:00
Rémi Verschelde
d99b247cc7 Revert "Fix saving unmodified scenes and resources"
This reverts commits 28ab60422d648d43d219186ea0ecffce1645188f
and 7821b70a00768cb99c0b48450eabe5a687ae276c.

Fixes #19576, and likely the fact that subresources are no
longer saved when saving scenes with no change.

(cherry picked from commit 5d7f9f804a238f48115b488b93261f68940d3eb5)
2018-07-08 15:39:15 +02:00
Rhody Lugo
2f3e4c1a7a add NoCache wrapper to Command
(cherry picked from commit 920224a535f7858dd4bf39f04e3c90c8276503c3)
2018-06-22 14:42:14 +02:00
Rémi Verschelde
d04cc2855a i18n: Sync translations with Weblate 2018-06-22 10:57:15 +02: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
Rémi Verschelde
e8bfc09b81 i18n: Sync translations with Weblate 2018-06-05 22:10:51 +02:00
Rémi Verschelde
74808e71d2 i18n: Sync translation templates with current source 2018-06-05 22:04:33 +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
volzhs
97ad6b813a Make filename clipped on Import dock
(cherry picked from commit 12fb5f58d9e0913c12358ccfb410f3e4b0128198)
2018-06-01 18:00:17 +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
Alexander Holland
fd95935fef hide tab changed debug print
(cherry picked from commit 31f28885f93aeff6db45fcf6dab147cddaab509f)
2018-05-13 22:40:28 +02:00
RaphaelHunter
4fbb460a02 Fix:code editor text size should change at least one each time, don't mind how you setting your display scale
(cherry picked from commit eeb05344267580a25bc59d3c363537ade363f82e)
2018-05-13 22:39: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
Hugo Locurcio
8ccb27ce18 Tweak the property hint ranges of caret blink and line length guideline
This allows for more precise adjustments.

(cherry picked from commit 0eb2f6c2235ba13409c169225321cd5eafd6ad5b)
2018-05-13 22:36:21 +02:00
Unknown
09277c8fd8 LinkButtons are now responsive to engine theme
Fixes #18636, so now LinkButtons (like those in the asset store) will change font colour to remain visible in any engine theme, just like Labels etc

(cherry picked from commit c364a1278e1e499f40dccadbd78b76bbe6e44604)
2018-05-13 22:34:10 +02:00
Peter Folkins
3013f4cf2b Fix AnimationPlayer edited scene bug
(cherry picked from commit 223f08585775ad09f7196ee408eaa0d8bef992a8)
2018-05-13 22:05:28 +02:00