Commit Graph

3947 Commits

Author SHA1 Message Date
Hugo Locurcio
d871ac670d Use uppercase for all hexadecimal constants in the editor help
(cherry picked from commit 6516098d12)
2019-11-12 13:09:35 +01:00
qarmin
cb394082ef Fix memory leak after closing files
(cherry picked from commit 53c0a29fb0)
2019-11-12 13:09:35 +01:00
Michael Alexsander Silva Dias
1804a726b4 Fix error spam when typing in the TileMap editor's search box while having no results
(cherry picked from commit 412a0b73e9)
2019-11-12 13:09:35 +01:00
Hein-Pieter van Braam-Stewart
ef6d414e6e Fix moving and renaming files
This commit fixes several issues related to moving scenes and resources
in an open project.

* Don't try to reload scenes while not all scenes are updated yet.
* Don't use the UndoRedo system to update non-user initiated editor
state.
* Resave scenes after moving files and updating resource path(s).

(cherry picked from commit 0ac7715a27)
2019-11-12 13:09:35 +01:00
Michael Alexsander Silva Dias
02ccd4d78c Remember selected subtile when updating the TileMap editor
Fixes #29444.

(cherry picked from commit 0a03ed7544)
2019-11-12 13:09:35 +01:00
Nils ANDRÉ-CHANG
6afcc72465 Fix Segmentation fault and reduce memory consumption
(cherry picked from commit a156b7976d)
2019-11-12 11:44:04 +01:00
WiggleWizard
4444bd1fcb Fixed virtual method not showing up in autocomplete and docs
(cherry picked from commit aebca30c43)
2019-11-12 11:42:45 +01:00
Pedro J. Estébanez
aacefcb7dc Fix 2D bones ignored by onion skinning
Fixes #27819.

(cherry picked from commit 88153fbb61)
2019-11-12 11:41:51 +01:00
Pedro J. Estébanez
340f542e49 Remove ghost of canvas zoom controls during onion skinning
(cherry picked from commit 3b17e6de33)
2019-11-12 11:41:06 +01:00
Pedro J. Estébanez
f040f7c283 Fix canvas zoom controls lazy position update
After hiding/showing rulers, zoom controls were kept at the wrong position until an update happened because of other reason.

(cherry picked from commit 4dd9efe757)
2019-11-12 11:41:02 +01:00
Michael Alexsander Silva Dias
b01ef197a6 Fix bottom panel visibility behaviour in the theme editor
Fixes #29034, fixes #29056

(cherry picked from commit b5c8205312)
2019-11-12 11:39:53 +01:00
Rémi Verschelde
8dce0ce022 i18n: Skip unsupported locales for editor translations
Godot currently can't properly render scripts that require Right-To-Left
and font shaping support, so we skip those.
This is a temporary measure until these features are supported.

Fixes #28577.

(cherry picked from commit 92f67ceef3)
2019-11-12 11:39:30 +01:00
Hugo Locurcio
665c00eb58 Allow empty replacement texts in the Find in Files replace dialog
This closes #29026.

(cherry picked from commit a411067829)
2019-11-12 11:38:34 +01:00
Guilherme Felipe
4a933a6409 [EditorSpatialGizmo] Fix error in intersect_ray
(cherry picked from commit 70ead9455f)
2019-11-12 11:19:33 +01:00
homer666
027e2e90fd Refresh import dock on change "animation/storage"
(cherry picked from commit 106d1f3c3c)
2019-11-12 11:15:06 +01:00
homer666
918e120da3 Update edited keyframe's snap mode properly
(cherry picked from commit 62e0262951)
2019-11-12 11:14:08 +01:00
Aaron Winter
794341e0b5 added negative X and negative Y offset to TileMap
clang-format

added negative X and negative Y offset to TileMap

(cherry picked from commit 63e0fd7675)
2019-11-12 11:07:19 +01:00
will
7d84035e13 New shortcuts for the editor menu items
(cherry picked from commit 7a88002992)
2019-11-12 11:04:06 +01:00
Vixelz
39e76014d4 Include global class resources in Resource property inspector
Much like how script defined global classes can be created from the
"New Resource..." button in the FileSystem panel, this allows the
creation of script defined resources to be embedded.

(cherry picked from commit 03f7a724ed)
2019-11-12 11:02:43 +01:00
nobuyuki_nyuu
00883e8fdc Changes default coarse 2d zoom level from 1.5 to sqrt(2).
(cherry picked from commit 3f516622c3)
2019-11-08 15:48:19 +01:00
Emmanuel Barroga
53b44aacad Fix Redundant Navigation Polygons
When adjusting the vertices of a navigation polygon, the tile editor would create a duplicate navigation polygon.  So each time you made an adjustment, another copy of the polygon would be created.

(cherry picked from commit 6c83550dfc)
2019-11-08 15:48:19 +01:00
Cameron Reikes
a5547ac3c7 Button object used after pressed is called
- by queueing for deletion node can call own cleanup methods

(cherry picked from commit c69ff6833c)
2019-11-08 15:48:19 +01:00
Bojidar Marinov
fe90b69e0f Fix "Make Scene Root" deleting previous root whenever focusing another scene
Hopefully fixes #24484 and fixes #27222.

(cherry picked from commit cfc779ccf0)
2019-11-08 15:48:19 +01:00
volzhs
e168f04bc3 Fix validating editor bold font
(cherry picked from commit aa5e34d018)
2019-11-08 14:03:58 +01:00
Rémi Verschelde
5f314c54ff Prevent crash when we can't write to editor cache or config path
This can happen if users somehow got wrong user permissions assigned to
their Godot cache, config or data paths (e.g. `~/.config/godot`).

The error messages should give them a hint as to what the issue may be.

Fixes #33199.

There may be other situations that still lead to a crash, we need to
review all uses of `FileAccess::open` with `FileAccess::WRITE` mode to
ensure that proper pointer validation is done.

(cherry picked from commit 565f7183aa)
2019-11-08 13:13:55 +01:00
Hugo Locurcio
0c0c911ae8 Display version information in the editor at all times
This closes #27811.

(cherry picked from commit dee9e9dc62)
2019-11-08 12:57:50 +01:00
Hugo Locurcio
22147bb9dc
Add the missing autokeying icon
This icon was added in the `master` branch (and then improved) a
while ago.

This adds the latest version of the icon to the `3.1` branch.
2019-10-20 14:31:45 +02:00
XiaoLongHan
d585b1a5b1 fix file system not refresh on exFAT
(cherry picked from commit 9d309096c9)
2019-09-26 14:45:02 +02:00
Michael Alexsander Silva Dias
e40293942d Regression fixup to the theme editor
(cherry picked from commit b7c2bcff76)
2019-09-24 09:00:46 +02:00
Michael Alexsander Silva Dias
7ff607290a Minor fixups to the theme editor
(cherry picked from commit 1c872c75db)
2019-09-24 09:00:46 +02:00
Chaosus
9953b2ab43 Disallow loopback connection in visual scripts and visual shaders
(cherry picked from commit 21ca9f6c7c)
2019-09-24 09:00:46 +02:00
qarmin
49bbec08e2 Disable Project Export button after deleting preset
(cherry picked from commit 2fc2d82465)
2019-09-24 09:00:45 +02:00
Matheus Lima Cunha
1e5709265c Move vertex along a single axis while editing and holding shift
(cherry picked from commit 0110a88547)
2019-09-24 09:00:45 +02:00
Hugo Locurcio
614dbe74e2 Scale animation track editor line widths on hiDPI displays
(cherry picked from commit c0959f00a0)
2019-09-24 09:00:45 +02:00
Anders Stenberg
e18f18dbec Proper passing of the "transform_key_request"
signal from SpatialEditorViewport to InspectorDock

(cherry picked from commit 645c656571)
2019-09-24 09:00:45 +02:00
hbina085
8c2e10c393 Many fallthrough switch cases now have the FALLTHROUGH macro to tell the compiler that this is intended.
(cherry picked from commit 9f0c6a6009)
2019-09-24 09:00:45 +02:00
Rémi Verschelde
fc18d637a8 Fix -Wimplicit-fallthrough warnings from GCC 8
Adds `FALLTHROUGH` macro to specify when a fallthrough is intentional.
Can be replaced by `[[fallthrough]]` if/when we switch to C++17.

The warning is now enabled by default for GCC on `extra` warnings level
(part of GCC's `-Wextra`). It's not enabled in Clang's `-Wextra` yet,
but we could enable it manually once we switch to C++11. There's no
equivalent feature in MSVC for now.

Fixes #26135.

(cherry picked from commit fc370b3feb)
2019-09-24 09:00:45 +02:00
qarmin
3b703d6707 Small fixes, mostly dupicated code
(cherry picked from commit 856a8226a5)
2019-09-24 09:00:45 +02:00
Theis Egeberg
a2cf479f07 Removed extra division by format channels causing sounds to get halved.
(cherry picked from commit e630591aea)
2019-09-24 09:00:45 +02:00
Theis Egeberg
330c7a2fb4 Fix end pops when trimming wav files
-Added trim limit constant at top of file, defining at which db trimming should occur (moved from being in the code itself)
-Added fade out frames constant at top of file, defining how many frames should have fade out applied (to avoid pops at the end of trim)
-Rewrote parts of the trimming logic to use an average of volume across all channels instead of any particular channel
-Added fade-out to trimming

(cherry picked from commit 26cc521d55)
2019-09-24 09:00:44 +02:00
Tomasz Chabora
25074c734d Use filename for scene root of imported models
(cherry picked from commit 82fadde680)
2019-09-24 09:00:44 +02:00
Ibrahn Sahir
78a7f945e4 Removed an unused and leaked CheckButton instance in theme editor plugin
(cherry picked from commit cbf2d3cdc4)
2019-09-24 09:00:44 +02:00
Michael Alexsander Silva Dias
28d48a0886 Enhance theme preview
(cherry picked from commit 5dfbdbcd0b)
2019-09-24 09:00:44 +02:00
Bojidar Marinov
ef6807b34c Fix remote scene tree root folding
Fixes #25487

(cherry picked from commit 72472bef05)
2019-09-24 09:00:44 +02:00
Guilherme Felipe
6319d662af [StateMachine] Fix play position
Continuation of 771fbd282a

(cherry picked from commit 0fcbf4da8f)
2019-09-24 09:00:44 +02:00
Guilherme Felipe
be47e0546d Show play position of sub state machine
Sub state machine now show the play position of the current state
playing.

(cherry picked from commit 771fbd282a)
2019-09-24 09:00:44 +02:00
UziMonkey
cb0e500d27 Add sub-resource name when available to script editor
(cherry picked from commit 7056c825a3)
2019-09-24 09:00:44 +02:00
Rémi Verschelde
b8d29b5c66 doctool: Fix writing theme_item descriptions
We already had support for parsing and saving theme_item descriptions
in DocData, and displaying it in the editor, but doctool would drop the
changes as it was not writing them back to the XML.

Part of #29868.

(cherry picked from commit 615ffb3507)
2019-07-29 16:18:48 +02:00
Rémi Verschelde
24f17f2208 doc: Fix DocData.merge_from copying old setters and getters
This is not necessary and means that some setters and getters
can end up wrong if they are changed in the bindings but DocData
does not update them when running --doctool.

Fixes #29425.

Co-authored-by: Bojidar Marinov <bojidar.marinov.bg@gmail.com>
(cherry picked from commit e1e3fcc908)
2019-07-29 15:16:17 +02:00
kbake
e14226ebd4 fixes 27543, adds a copy button for the editor log
(cherry picked from commit aa4e27084f)
2019-07-24 14:11:33 +02:00