Rémi Verschelde
6b3f013a82
Script editor: Fix open dominant logic for language-specific external editors
...
Follow-up to #40735 .
Co-authored-by: Ignacio Etcheverry <ignalfonsore@gmail.com>
2020-07-27 10:30:03 +02:00
Rémi Verschelde
b5f110c77e
Script editor: Don't open dominant script in external editor
...
Fixes #13429 .
2020-07-26 23:18:05 +02:00
Rémi Verschelde
c75f4c06f0
Merge pull request #40647 from Xrayez/blank-tabs-fix
...
Make unsaved scripts in the script editor more user-friendly
2020-07-26 17:11:31 +02:00
Rémi Verschelde
1a829621e3
Merge pull request #33548 from Calinou/shader-editor-tweak-builtins-color
...
Tweak the built-ins color highlighting in the shader editor
2020-07-26 16:50:50 +02:00
Andrii Doroshenko (Xrayez)
7247247522
Make unsaved scripts in the script editor more user-friendly
...
Unsaved scripts were previously displayed with blank tabs, which are
mostly a result of deleted or improperly moved scripts.
This patch makes sure that those kind of scripts are displayed as
"[unsaved]" now, and ensures that scripts are removed from the list
while deleting scripts from the filesystem dock preventing the unsaved
tabs to appear in the first place (a user is already prompted with
"no undo" warning while deleting any file).
A user is always prompted to save those "[unsaved]" scripts if they
attempt to close them without saving in any case except as described
above.
2020-07-26 16:05:44 +03:00
Rémi Verschelde
5700429e4e
Merge pull request #33760 from nekomatata/script-editor-init-optimization
...
Optimized ScriptEditor initialization when many scripts are loaded
2020-07-26 14:05:56 +02:00
Rémi Verschelde
6f292f906e
Merge pull request #38900 from bruvzg/docs_ignore_os_spec_def_vals
...
Docs: Ignore OS specific values (constants, project settings, properties)
2020-07-25 18:54:25 +02:00
Rémi Verschelde
5f75cec59e
Merge pull request #40640 from Xrayez/base-begins-with-local-err
...
Skip internal scripts for breakpoints without printing an error
2020-07-25 13:00:02 +02:00
SkyJJ
280d4e2965
Fix TTR misuse
2020-07-24 15:15:23 +02:00
Rémi Verschelde
27d1209282
Merge pull request #38088 from YeldhamDev/name_tooltips_tweaks
...
Small naming and tooltip tweaks
2020-07-24 13:57:13 +02:00
Michael Alexsander
5643d2e3fe
Small naming and tooltip tweaks
2020-07-23 20:17:43 -03:00
Rémi Verschelde
3811fb919e
Merge pull request #40598 from vnen/gdscript-2.0
...
GDScript 2.0 (again)
2020-07-24 01:04:57 +02:00
Rémi Verschelde
c853dd5ddb
Merge pull request #40632 from asmaloney/macos-maya-scroll
...
[macOS] Fix Maya navigation with ALT + mouse scroll
2020-07-23 23:39:31 +02:00
Andrii Doroshenko (Xrayez)
1c70a33d9c
Skip internal scripts for breakpoints without printing an error
...
This removes:
```
ERROR: get_breakpoints: Condition ' base.begins_with("local://")
```
while running a project with blank scripts caused by deleting
or moving, or built-in scripts which are not yet saved within a scene
on running a project.
2020-07-23 20:51:17 +03:00
Tomasz Chabora
9c84e34fd4
Fix run project when current scene was never saved
2020-07-23 18:51:32 +02:00
Andy Maloney
394a7826be
[macOS] Fix Maya navigation with ALT + mouse scroll
...
Methods were being called with InputEventMouseMotion instead of InputEventPanGesture, and they were null.
Fixes godotengine/godot#16181 on the master branch
2020-07-23 10:38:31 -04:00
HaSa1002
5b51ae1c5d
Add multiple programming language support to class reference
2020-07-23 15:19:09 +02:00
Rémi Verschelde
5671469724
Merge pull request #37336 from dreamsComeTrue/canvas-editor-change-cursor
...
Request immediate refresh of cursor in 2D editor while using shortcuts
2020-07-23 09:49:48 +02:00
Rémi Verschelde
a5fb445121
Merge pull request #40450 from asmaloney/spelling
...
Fix spelling & grammar in comments, docs, and messages
2020-07-21 22:14:04 +02:00
Andy Maloney
4dda62f591
Fix spelling & grammar in comments, docs, and messages
2020-07-21 15:17:23 -04:00
Rémi Verschelde
60fab23262
Merge pull request #32908 from Nehluxhes/node_update_twice
...
Remove duplicate displayed node update call
2020-07-21 21:09:47 +02:00
Rémi Verschelde
22ed721d15
Merge pull request #40448 from Paulb23/fix_txt_close_crash
...
Fix crash when closing a TextFile
2020-07-21 21:08:39 +02:00
Nehluxhes
c85d04a771
Remove duplicate node update call
2020-07-21 19:47:44 +02:00
Rémi Verschelde
6f428f2494
TileSet Editor: Check polygon size before indexing
...
Fixes #39722 .
2020-07-21 11:18:19 +02:00
Rémi Verschelde
0a1dd5b6e4
Merge pull request #38763 from fire/38751
...
Allow gltf2 morph targets including animations with no default value…
2020-07-20 22:22:16 +02:00
George Marques
aa09b4f85d
Reintroduce code completion
2020-07-20 11:38:40 -03:00
George Marques
95c0909290
Add warning checks in GDScript analyzer
...
Reenable checking those when validating code.
2020-07-20 11:38:40 -03:00
Rémi Verschelde
0edb49ad16
Merge pull request #40500 from KoBeWi/inspector_magic
...
Convert some resource types in the inspector
2020-07-20 14:50:06 +02:00
Tomasz Chabora
fb8b399ddf
Convert some resource types in the inspector
2020-07-20 13:22:22 +02:00
Tomasz Chabora
e44c9101da
Prevent multiple Controls moving inside container
2020-07-20 13:22:13 +02:00
PouleyKetchoupp
ccff2f2551
Optimized ScriptEditor initialization when many scripts are loaded
...
This change avoids the editor to freeze for several seconds when a
project with lots of scripts is loaded in the editor.
It focuses on a few heavy operations previously executed on all
previously loaded scripts:
- Initialize script resource (script validation/parsing) only
on focus
- ScriptTextEditor: code editor and edit menu are added to the
scene only on focus
- Add to recent scripts only when opening new scripts
(load/save scene metadata)
2020-07-17 09:02:24 +02:00
Paulb23
54bca425b2
Fix crash when closing a TextFile
2020-07-16 15:50:23 +01:00
Hugo Locurcio
bfc644a9aa
Tweak the built-ins color highlighting in the shader editor
...
This makes built-ins easier to distinguish from keywords at a
quick glance.
2020-07-15 23:03:26 +02:00
Rémi Verschelde
6497a3fb50
Merge pull request #40291 from hinlopen/dialog-size
...
Resize various dialogs
2020-07-15 12:13:33 +02:00
Rémi Verschelde
0f369ac2c0
Merge pull request #40376 from hinlopen/quick-open-improvements
...
Improve quick open performance and behaviour
2020-07-15 12:12:09 +02:00
bruvzg
0181c3dde1
Docs: Ignore OS specific values (constants, project settings, properties).
2020-07-15 12:24:59 +03:00
Rémi Verschelde
c8523038cc
Merge pull request #40268 from DanielZTing/master
...
Fix cancel/OK button order on macOS
2020-07-15 09:21:04 +02:00
Stijn Hinlopen
526e060b73
Resize dialogs (FileDialog, EditorFileDialog, Reparent, SceneTreeDialog and resource depency dialogs).
2020-07-14 14:35:22 +02:00
Paulb23
ccab210fb5
Fixed visual shader editor not clearing colour regions
2020-07-14 13:21:53 +01:00
Stijn Hinlopen
269ed93271
Improve quick open performance and update some behaviour
...
- Cache possible files and icons at popup
- Sort files with heapsort instead of selection sort
- Always scroll back to top (selection) upon refresh
- Scoring function: fix second case and remove expensive similarity computation for insignificant results.
- Only show a max amount of files (currently set at 300)
2020-07-14 14:02:06 +02:00
Rémi Verschelde
1bb66f04c8
Merge pull request #40277 from hinlopen/refactor-project-settings
...
Extract remaining tabs from the ProjectSettingsEditor
2020-07-14 12:16:26 +02:00
Stijn Hinlopen
8a6305a6f2
Refactor Project Settings:
...
- Moved Localization and InputMap editor code to separate files.
- Removed empty method _item_checked from project_settings_editor.
- Reordered some code for better readability.
2020-07-14 11:03:51 +02:00
Rémi Verschelde
ca5958d180
Merge pull request #38440 from Paulb23/syntax_highlighter_refactor
...
Syntax highlighter refactor
2020-07-14 09:49:02 +02:00
Aaron Franke
d8b65461e3
Commit only the SVG files changed by file_format.sh
...
There were a lot of SVG files changed by file_format.sh
2020-07-13 14:08:55 -04:00
Rémi Verschelde
817062f8ec
Merge pull request #40297 from jiteshvm/texture-dialog-size
...
change minimum horizontal size from 200 to 240
2020-07-13 18:02:47 +02:00
Rémi Verschelde
07db4d57d6
Merge pull request #40289 from YeldhamDev/guitab_icon_use_hl
...
Prefer the highlight version of the "GuiTabIcon" icon for buttons, and make their width/height equal
2020-07-13 16:36:28 +02:00
Jitesh
a8905b2a4e
change minimum horizontal size from 200 to 240
2020-07-11 12:21:45 -07:00
Rémi Verschelde
c5d02fdffc
Revert "Merge pull request #38341 from verdog/camera-bounds-fix"
...
This reverts commit 08bbb3f161
.
2020-07-11 19:05:48 +01:00
K. S. Ernest (iFire) Lee
71ae0ff46d
Allow gltf2 morph targets with no default values. Changes for bug 38751
2020-07-11 10:56:07 -07:00
Paulb23
bc4cee4458
Extract Syntax highlighting from TextEdit and add EditorSyntaxHighlighter
...
- Extacted all syntax highlighting code from text edit
- Removed enable syntax highlighting from text edit
- Added line_edited_from signal to text_edit
- Renamed get/set_syntax_highlighting to get/set_syntax_highlighter
- Added EditorSyntaxHighligher
2020-07-11 17:09:58 +01:00
Michael Alexsander
26381265b8
Prefer the highlight version of the "GuiTabIcon" icon for buttons, and make their width/height equal
2020-07-11 12:59:25 -03:00
Paulb23
156daddaaf
Expose Syntax highlighter for editor plugins
2020-07-11 15:40:00 +01:00
Paulb23
2f1080be9b
Convert syntax highlighters into a resource
2020-07-11 15:26:58 +01:00
Daniel Ting
9605fc54c7
Fix cancel/OK button order on macOS
...
The macOS platform convention regarding button order is cancel on left,
OK on right.
2020-07-10 15:10:11 -05:00
Rémi Verschelde
dcd11faad3
Merge pull request #40253 from madmiraal/add-override-keywords
...
Add override keywords.
2020-07-10 21:04:23 +02:00
Yuri Roubinsky
4d2e50eca6
Merge pull request #36225 from Chaosus/shader_fma
...
Added 'fma' function to shader language
2020-07-10 21:24:25 +03:00
Rémi Verschelde
08bbb3f161
Merge pull request #38341 from verdog/camera-bounds-fix
...
Fix Camera2D incorrect preview bounds
2020-07-10 19:35:26 +02:00
Yuri Roubinsky
ecb5f7ea23
Added 'fma' function to shader language
2020-07-10 19:58:03 +03:00
Rémi Verschelde
7bb1cef5c8
Merge pull request #40209 from zaevi/fix-asset-installer-item_edited-behavior
...
fix tree-item's behavior on Asset Installer.
2020-07-10 16:33:46 +02:00
Marcel Admiraal
26fcf2b04c
Add override keywords.
2020-07-10 13:56:54 +01:00
Zae
b0fbde6abd
fix item_edited behavior on Asset Installer.
2020-07-10 17:21:43 +08:00
Rémi Verschelde
f46dc6fb68
Merge pull request #40180 from Coldragon/fix-crash-no-feature-profile
...
Fix crash on editor without a feature profile
2020-07-10 11:00:51 +02:00
Rémi Verschelde
0f6a8f57ee
Merge pull request #40229 from ChristopheLY/atlas-auto-reimport
...
auto re-import atlas, fixes #40047
2020-07-10 10:57:13 +02:00
Rémi Verschelde
da4851a9de
Merge pull request #40198 from DanielZTing/master
...
Do not try to save internal scripts
2020-07-10 10:36:39 +02:00
Chistpohe LY
f34f00bccc
auto re-import atlas, fixes #40047
2020-07-10 09:26:53 +02:00
PouleyKetchoupp
b2d27214aa
Keep debug & verbose options after loading project from project manager
2020-07-09 09:51:32 +02:00
Daniel Ting
d6c979d91b
Do not try to save internal scripts
...
Fixes #40175
2020-07-08 11:53:18 -05:00
coldragon
f2a01b0c6b
Fix crash on editor without a feature profile
2020-07-07 17:45:12 +02:00
Rémi Verschelde
b96b0d90d7
Merge pull request #40162 from vnen/autoloads-list
...
Add a map of autoloads to ProjectSettings
2020-07-07 00:12:59 +02:00
Rémi Verschelde
f706156329
Merge pull request #40160 from pycbouh/fix-pnode-is-null
...
Improve null check in FindReplaceBar
2020-07-06 23:47:44 +02:00
Rémi Verschelde
b00e8ffb22
Merge pull request #40163 from pycbouh/fix-saving-empty-scene
...
Improve scene preview generation for empty scenes and disabled features
2020-07-06 22:52:49 +02:00
Yuri Sizov
6c8a9b7690
Improve scene preview generation for empty scenes and disabled features
2020-07-06 18:55:24 +03:00
George Marques
9654365547
Add a map of autoloads to ProjectSettings
...
So places that need to look into it can use the list instead of parsing
ProjectSettings details (like checking "*" in path for testing if it's
singleton).
2020-07-06 12:35:51 -03:00
Yuri Sizov
49f6dc5004
Expose methods to play scene from plugin code
2020-07-06 17:39:16 +03:00
Yuri Sizov
e94b8a6acc
Improve null check in FindReplaceBar
2020-07-06 17:13:04 +03:00
Andrii Doroshenko (Xrayez)
b399097ecc
Fix editor crash when creating a custom resource from create dialog
2020-07-06 13:53:02 +03:00
Tomasz Chabora
95b4f972e6
Support built-in scripts for inspector categories
2020-07-06 00:06:37 +02:00
SkyJJ
cae6f0bda2
Change translation parser plugin API to parse_file()
2020-07-05 12:14:56 +02:00
Yuri Roubinsky
583b6c9073
Merge pull request #40115 from Chaosus/vshader_fix_dialog
...
Makes "Create shader node" dialog non-exclusive (visual shaders)
2020-07-05 08:41:14 +03:00
Rémi Verschelde
854e9d48ed
Merge pull request #40119 from nekomatata/fix-startup-import-crash
...
Fix crash on project files import in EditorFileSystem
2020-07-05 00:53:00 +02:00
PouleyKetchoupp
759fef5401
Fix crash on project files import in EditorFileSystem
...
Fixes #40017
2020-07-04 16:08:09 +02:00
Rémi Verschelde
597b268150
Merge pull request #40033 from hinlopen/create-dialog-search
...
Improve Create Dialog search ranking and rewrite calculation
2020-07-04 15:52:20 +02:00
Rémi Verschelde
0a5c945188
Merge pull request #40100 from hinlopen/extract-anim-name
...
Refactor extracting animation name
2020-07-04 13:10:04 +02:00
Yuri Roubinsky
e19cdacbd7
Makes "Add new member" dialog non-exclusive for visual shaders
2020-07-04 13:20:30 +03:00
Rémi Verschelde
8ccb1cec91
Merge pull request #40084 from bruvzg/macos_seamless_scaling
...
[macOS] Implement seamless display scaling.
2020-07-04 10:51:09 +02:00
Stijn Hinlopen
973e5bacf0
Rewrite extracting animation name.
2020-07-04 09:55:36 +02:00
bruvzg
df968d577a
[macOS] Implement seamless display scaling.
2020-07-04 10:36:33 +03:00
Juan Linietsky
110e650dc8
Change how default fonts are created, fixes #39235
...
Also fixes file dialog icons.
2020-07-03 21:29:12 -03:00
Rémi Verschelde
b51418842a
Merge pull request #39845 from mrushyendra/bone_painting_undoredo_master
...
Fix undo/redo for bone painting in Polygon2D UV Editor
2020-07-04 01:43:29 +02:00
Rémi Verschelde
c020eea184
Merge pull request #40092 from hinlopen/remove-find-last
...
Remove String::find_last (same as rfind)
2020-07-04 01:38:01 +02:00
Stijn Hinlopen
929b98d24b
Remove String::find_last (same as rfind)
2020-07-03 15:26:22 +02:00
Stijn Hinlopen
85ced4746f
Improve Create Dialog search ranking and refactor calculation.
...
Code changes:
- Improved search ranking with various features (position in type string, string length proportion, in favorite list, in recent list).
- Recent items are now stored in an ItemList (no visual change).
- Removed results that had a parent that matched the search term to improve clarity.
Performance:
- Reduce types to process upon opening the dialog (instead of every search change), reduces number of types by 4~5.
- Clear arrays after closing dialog instead of keeping them.
- Various other optimizations.
2020-07-03 15:06:23 +02:00
Andrii Doroshenko (Xrayez)
dc446203be
Provide warning when using polygon shapes in CollisionShape2D
node
...
`ConvexPolygonShape2D` and `ConcavePolygonShape2D` are only meant to be
used directly in code and not in the editor for physics-based use cases
specifically.
Developers are advised to use `CollisionPolygon2D` instead, which does
generate those shapes under the hood, handling polygon convexivity,
proper orientation etc.
2020-07-03 15:46:09 +03:00
Rémi Verschelde
de33cdecb5
Merge pull request #40065 from rileylyman/script_drag_drop
...
Allow script editor scripts to be drag-dropped onto resource properties
2020-07-03 13:20:52 +02:00
Rémi Verschelde
8ab69153ca
Merge pull request #39968 from lordkettune/custom-tracks-fix
...
Fix custom tracks causing issues on reimport
2020-07-03 07:54:10 +02:00
Rémi Verschelde
c284ff1316
Merge pull request #40067 from YeldhamDev/anim_bezier_timeline_zoom
...
Fix timeline cursor not updating on zoom change in the Bezier editor
2020-07-03 07:51:51 +02:00
Riley Lyman
ab0fe13efb
Make Resource properties accept SE plugin scripts
2020-07-02 18:58:33 -07:00
lordkettune
4313a7bdc8
Fix issues with custom tracks on reimport
2020-07-02 16:08:20 -07:00
Rémi Verschelde
f9c2f35dd9
Merge pull request #39415 from SkyLucilfer/PotGeneration
...
Add POT generation feature in Editor
2020-07-02 22:22:46 +02:00
Michael Alexsander
eee9d053a3
Fix timeline cursor not updating on zoom change in the Bezier editor
2020-07-02 16:07:28 -03:00