Commit Graph

46463 Commits

Author SHA1 Message Date
Tony-Goat 71febfd6e2 Updated LineEdit to address #41278
Updated set_max_length() function to actually pull a substring of the current text so it's not all thrown away when the new max length is shorter than the current length.
2020-08-26 11:19:24 -06:00
PouleyKetchoupp bb306750ce Fix WINDOW_EVENT_FOCUS_IN for popups on Windows
On Windows, WINDOW_EVENT_FOCUS_IN was never sent by the display server
for popups, because WM_ACTIVATE events are received during the call to
_update_window_style, which happened before the callbacks were set.

This was causing some issues with the way Popup is now handling closing on
parent focus.

Now _update_window_style is only called during show_window, after Window
initialized callbacks.
2020-08-26 18:14:36 +02:00
PouleyKetchoupp 5315bff002 Fix menu popups delay and focus in X11 display server
Now using override_redirect for menu & tooltip popups to prevent the WM from
interfering with them, so we have more control over focus management
and avoid a delay before they show up.
2020-08-26 18:14:07 +02:00
Keegan Owsley e148338d42 Wrap angles to (-pi, pi) in momentum calculation.
Fixes a bug that causes KinematicBody2Ds to produce too much angular
momentum when rotating beyond 180 degrees.
2020-08-26 08:25:28 -07:00
simpu ea2eaf8c27 Added debugger plugin support
Changes:
* EngineDebugger is exposed to gdscript. Game side of communication can be implemented through it.
* EditorDebuggerPlugin is added which handles the editor side of communication.
2020-08-26 11:24:51 +05:30
Lunatoid d602be077d Gives the theme editor a horizontal scrollbar
Fixes #34509 where the theme editor would push away the inspector
if something like "hseperation" is really high.
Now `set_enable_h_scroll` is true which fixes this.
2020-08-26 01:48:46 +02:00
SkyJJ c1016dc3bf Add translators comments extraction for Editor 2020-08-25 20:59:29 +02:00
Rémi Verschelde a609b30ddb Merge pull request #41511 from KoBeWi/dynamite_font
Accept DynamicFontData for Fonts
2020-08-25 18:41:03 +02:00
Tomasz Chabora b5fe41988b Accept DynamicFontData for Fonts 2020-08-25 18:12:35 +02:00
Rémi Verschelde b2aae76f85 Merge pull request #41500 from bruvzg/mac_ds_use_after_free
[macOS] Fix heap use-after-free in DisplayServer.
2020-08-25 14:35:21 +02:00
Rémi Verschelde fe24b7c474 Merge pull request #41501 from akien-mga/revert-40781-41025
Revert "Check if global class file still exists before registering it"
2020-08-25 14:32:55 +02:00
Rémi Verschelde d7c77f6dd0 Merge pull request #41138 from EricEzaM/open-inspector-section-on-drag-and-drop-hover
Added ability to unfold editor sections when dragging and dropping.
2020-08-25 13:15:36 +02:00
bruvzg 9a85948907 [macOS] Fix heap use-after-free in DisplayServer. 2020-08-25 14:04:20 +03:00
Rémi Verschelde f13207254c Revert "Check if global class file still exists before registering it"
And revert follow-up regression fix "Remap script path when registering class."

After the regression fix, the original issue is valid again so it's better
to go back to the previous state.

This reverts commits e264ae20d2 and
fceb64827e.
2020-08-25 13:02:03 +02:00
Rémi Verschelde dd58f4da66 Merge pull request #41085 from SekoiaTree/master
Fixed node scaling arrows being wrong
2020-08-25 12:44:21 +02:00
Rémi Verschelde 9d8f3496e8 Merge pull request #40443 from SkyLucilfer/PluralsSupport
Added plurals and context support to Translation
2020-08-25 12:11:56 +02:00
Rémi Verschelde e968109fa7 Merge pull request #41497 from lyuma/assimp_set_pose_fix
Fix regression in FBX import caused by Skeleton3D
2020-08-25 12:08:58 +02:00
Eric M 7cc1b0f7eb Added ability to unfold editor sections when dragging and dropping.
Also added editor setting to control the delay used before unfold occurs.
2020-08-25 19:58:42 +10:00
Lyuma 0851d6dcdf Fix regression in FBX import caused by Skeleton3D
A change in commit f7fdc87 changed the Skeleton3D "pose" property from PROPERTY_USAGE_EDITOR to PROPERTY_USAGE_NOEDITOR.
This should have had no effect, however it turns out assimp was assigning to the pose property.

This change adjusts the FBX import to only get_bone_rest/set_bone_rest, not set_bone_pose.
2020-08-25 01:17:39 -07:00
SekoiaTree 603febdbfe Fixed node scaling arrows being wrong
Patch for #21755. Node scaling arrows pointed the wrong way when nodes were rotated. Ammend: made math cleaner.

Simplified expression

Changes suggested by Aaron Franke

Co-authored-by: Aaron Franke <arnfranke@yahoo.com>
2020-08-25 09:50:15 +02:00
Rémi Verschelde 443686d724 Merge pull request #41461 from Calinou/ci-platforms-emoji
GitHub Actions: Prepend emoji to platform names for easy visual grepping
2020-08-25 00:43:19 +02:00
Rémi Verschelde ba7738a3b2 Merge pull request #41476 from nekomatata/subviewport-node-compatibility
Add Viewport/SubViewport node compatibility
2020-08-24 18:02:07 +02:00
Rémi Verschelde 200c58bbf2 Merge pull request #41469 from madmiraal/fix-41397
Ensure node's area tree signals are disconnected when clearing monitoring, even if nodes are no longer in the tree.
2020-08-24 17:59:35 +02:00
Rémi Verschelde 6a277b6604 Merge pull request #41485 from neikeq/issue-41433
C#: Fix 'Parameter toolsPath cannot be null' error
2020-08-24 15:24:00 +02:00
George Marques 722be9aaef GDScript: Don't fail to load constants if they're not a literal
It's still okay as long as it's a constant value. This should already
been validated by the analyzer.
2020-08-24 09:15:33 -03:00
Ignacio Etcheverry 2bd6252e92 C#: Fix 'Parameter toolsPath cannot be null' error 2020-08-24 11:24:08 +02:00
PouleyKetchoupp e869e6eb0c Add Viewport/SubViewport node compatibility 2020-08-23 20:18:11 +02:00
George Marques ca90c9c9a9 GDScript: Properly resolve external inner classes from preload
This gets the correct parser and class node when resolving from a full
GDScript reference.
2020-08-23 12:55:27 -03:00
George Marques d36d7e2a1c GDScript: Use pointer instead of references in cache
They are not supposed to be kept alive and this is cleaner and less
error-prone than unreferencing the elements.
2020-08-23 12:55:27 -03:00
George Marques 58f5c2bab6 Merge pull request #41238 from MarianoGnu/gdscript-export-resource
Fix GdScript Analyzier not detecting Resource subclass correctly
2020-08-23 11:04:52 -03:00
Hugo Locurcio 82b30f36cb GitHub Actions: Prepend emoji to platform names for easy visual grepping 2020-08-23 15:13:36 +02:00
Marcel Admiraal 91bf9a91dd Ensure node's area tree signals are disconnected when clearing monitoring,
even if nodes are no longer in the tree.
2020-08-23 11:13:02 +01:00
Hugo Locurcio 58ed3037c0 Improve the resource loading error message to mention the need to import
This is a common pitfall when setting up projects in a headless
environment.
2020-08-22 22:19:08 +02:00
Paulb23 6cdcdbc242 Fix color region end key seach and start key order 2020-08-22 19:55:44 +01:00
PouleyKetchoupp 6d1ef8efac Fix popup closed when an ancestor window is focused
Previously, only the direct parent were taken into account.

Popups like contextual menus could stay open if an ancestor which is
not a direct parent was focused.

Reproduction steps (any platform):
- Select a node in the scene tree
- Left click the node to start renaming
- Right click to open the copy/paste contextual menu
- Left click in the scene tree to deselect the node

Also closing popup when focusing out of the application, without waiting
for the parent to get focus to do so.
2020-08-22 18:42:42 +02:00
PouleyKetchoupp 2b49cb0b73 Re-apply "Fixes for windows in X11 tiling WMs"
From PR #38727 which was reverted in #41373 because of regressions in Ubuntu
with Gnome.

Co-authored-by: Lorenzo Cerqua <lorenzocerqua@tutanota.com>
2020-08-22 18:42:42 +02:00
Andrii Doroshenko (Xrayez) 6eb4b89eef Build the engine with custom modules in Visual Studio
First, compile the engine normally with:
```
scons custom_modules="path/to/your/modules" vsproj=yes
```
Then run the Visual Studio project. You can now rebuild the engine if
you need to make changes to custom modules directly within IDE.
2020-08-22 18:22:09 +03:00
Marcel Admiraal 4b14916288 Check and correct for zero scaling when unscaling Bullet basis. 2020-08-22 08:16:13 +01:00
Rémi Verschelde 2ba96f0dd9 Merge pull request #41428 from madmiraal/fix-python-style
Fix new black style check failures in various files.
2020-08-22 00:53:52 +02:00
Marcel Admiraal 5f092cf7bb Fix new black style check failures in various files. 2020-08-21 16:51:30 +01:00
Rémi Verschelde 8c4f556637 Merge pull request #41425 from Calinou/doc-2d-sprite-animation
Link to 2D Sprite animation tutorial in relevant class documentations
2020-08-21 15:54:15 +02:00
Rémi Verschelde f1230fa671 Merge pull request #41423 from KoBeWi/NEXT.FRAME
Mention that body_set_state is deferred
2020-08-21 15:05:54 +02:00
Hugo Locurcio 6d62e8b917 Link to 2D Sprite animation tutorial in relevant class documentations 2020-08-21 14:26:28 +02:00
Rémi Verschelde bf48b0976e Merge pull request #41376 from Calinou/improve-editor-property-selector
Improve search and display in the editor property/method selector
2020-08-21 14:11:13 +02:00
Tomasz Chabora 255129a5d9 Mention that body_set_state is deferred 2020-08-21 13:31:33 +02:00
Rémi Verschelde b0ca859501 Merge pull request #41363 from Calinou/test-add-gradient
Add a test suite for Gradient
2020-08-21 02:41:17 +02:00
Rémi Verschelde 6790f111ae Merge pull request #41387 from skyace65/CollisionShapeDoc
Update CollisionShape2D doc
2020-08-21 02:28:08 +02:00
Rémi Verschelde 289b14e5c3 Merge pull request #41405 from skyace65/Line2D
Clarify points in Line2D doc
2020-08-21 02:14:31 +02:00
skyace65 fe8d998858 Update CollisionShape2D doc 2020-08-20 20:13:51 -04:00
Rémi Verschelde ad376d4422 Merge pull request #41379 from hazarek/patch-1
Fixes GDScript UTI
2020-08-21 02:13:45 +02:00