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
Rémi Verschelde
d121248562
Merge pull request #40049 from hinlopen/remove-pane-drag
...
Remove unused class PaneDrag
2020-07-02 18:33:36 +02:00
Rémi Verschelde
6e55a4fe8c
Merge pull request #34319 from timothyqiu/tree-drag-10026
...
Prevent dragging from SceneTree buttons
2020-07-02 17:00:42 +02:00
Rémi Verschelde
84c68ebb11
Merge pull request #40034 from hinlopen/fix-new-node-crash
...
Fix: Crash when trying to add new node
2020-07-02 16:26:40 +02:00
Rémi Verschelde
938e2c53ec
Merge pull request #32428 from willnationsdev/script-var-order
...
Add script class categories to EditorInspector.
2020-07-02 16:06:24 +02:00
SkyJJ
efb4609425
Add translation parser plugin support
2020-07-02 14:47:35 +02:00
SkyJJ
1db29d0101
Added "POT generation" feature under "Localization" in the Editor
2020-07-02 14:47:35 +02:00
Stijn Hinlopen
c3d9f12a10
Remove unused class PaneDrag
2020-07-02 13:50:31 +02:00
Rémi Verschelde
90e81b7e2a
Merge pull request #40042 from YeldhamDev/anim_tree_margin
...
Remove oversized margins in the AnimationTree editor
2020-07-02 13:11:24 +02:00
Rémi Verschelde
b46627e7b2
Merge pull request #40041 from YeldhamDev/anim_bezier_timeline_thicc
...
Make timeline cursor in the Bezier editor just as thick as the Animation editor
2020-07-02 11:06:42 +02:00
Stijn Hinlopen
81b6000812
Fix crash by calculating wrong size of array.
2020-07-02 10:58:41 +02:00
Haoyu Qiu
45d0799b5b
Prevent dragging from SceneTree buttons
2020-07-02 15:27:59 +08:00
Michael Alexsander
4f00ac7003
Remove oversized margins in the AnimationTree editor
2020-07-02 02:53:42 -03:00
Michael Alexsander
20c1196bb0
Make timeline cursor in the Bezier editor just as thick as the Animation editor
2020-07-01 23:52:21 -03:00
willnationsdev
644de52ca9
Add script class categories to EditorInspector.
2020-07-01 14:51:21 -05:00
Juan Linietsky
f0e320decf
Fix some popups menu missing screen transform.
...
Closes #38591
2020-07-01 14:44:19 -03:00
Rémi Verschelde
8a484756de
Merge pull request #39076 from rileylyman/editor_tab_names
...
Implement filename disambiguation for scene tabs and script names
2020-07-01 16:46:32 +02:00
Rémi Verschelde
01559ca84e
Merge pull request #39927 from hinlopen/quick-open-ranking
...
Quick Open search ranking: favor filenames over extensions.
2020-07-01 16:45:06 +02:00
Rémi Verschelde
117e0106ea
Merge pull request #39928 from hinlopen/qo-open-scene
...
Open scene selected from Quick Open dialog
2020-07-01 16:44:54 +02:00
Rémi Verschelde
9000e59650
Merge pull request #40016 from akien-mga/environment-code-cleanup
...
Environment: Refactor code for readability + more
2020-07-01 16:28:48 +02:00
Rémi Verschelde
a8a2769bb6
Merge pull request #38713 from aaronfranke/string-64bit
...
Make all String integer conversion methods be 64-bit
2020-07-01 16:01:05 +02:00
Rémi Verschelde
2abe858e1c
Merge pull request #40008 from DanielZTing/master
...
Make "Close and save changes?" actually save
2020-07-01 15:46:34 +02:00
Rémi Verschelde
435a4c117e
Merge pull request #39954 from hinlopen/delete-nodes-msg
...
Delete Nodes message
2020-07-01 15:17:38 +02:00
Rémi Verschelde
372136fe75
Environment: Refactor code for readability + more
...
- Makes all boolean setters/getters consistent.
- Fixes bug where `glow_hdr_bleed_scale` was not used.
- Split CameraEffects to their own source file.
- Reorder all Environment method and properties declarations,
definitions and bindings to be consistent with each other
and with the order of property bindings.
- Bind missing enum values added with SDFGI.
- Remove unused SDFGI enhance_ssr boolean.
- Sync doc changes after SDFGI merge and other misc changes.
2020-07-01 14:44:45 +02:00
Stijn Hinlopen
8b046ed477
Deleting multiple nodes displays correct message.
2020-07-01 12:59:55 +02:00
Daniel Ting
d2a5b92e9b
Make "Close and save changes?" actually save
...
This fixes issue #39844 , where the confirmation dialog when a user
attempts to close an unsaved script did not actually save it even after
clicking "Save."
2020-06-30 21:39:12 -05:00
Rémi Verschelde
84e9e58084
Merge pull request #39990 from follower/revert-fuzzy-help-search
...
Revert "Adds fuzzy search for help search dialog"
2020-06-30 18:40:43 +02:00
follower
55d706c352
Revert "Adds fuzzy search for help search dialog"
...
This reverts commit 481dbceed0
.
Current fuzzy search implementation results in too many
non-useful results.
Could be re-added after result sort/filter/score functionality
is added. See #30072 for example existing implementation.
Fixes : #39128
Reverts: #32043
Fixed format style conflicts:
editor/editor_help_search.cpp
2020-07-01 03:19:24 +12:00
Juan Linietsky
438c380458
Add a separate application focus/in notification out from Window focus notification.
2020-06-30 10:40:06 -03:00
Rémi Verschelde
dffb8824db
Merge pull request #39982 from hinlopen/create-dialog-preferred
...
Add Control to preferred types in Create Dialog
2020-06-30 12:50:36 +02:00
Stijn Hinlopen
ec86d32684
Add Control to preferred types
2020-06-30 12:00:55 +02:00
Stijn Hinlopen
1ce3a77a42
Open scene selected from Quick Open dialog.
2020-06-29 16:36:12 +02:00
simpu
bfadb882b1
Added Custom Performance Monitor and feature to read intermediate values of Monitor
...
Custom monitors can be added/removed/checked using `Performance.add_custom_monitor`/`Performance.remove_custom_monitor`/`Performance.has_custom_monitor`
The value can be viewed in the `Monitor` tab of Debugger.
Text before `/` is used to categorize the custom monitor.
`EditorPerformanceProfiler` class is created to separate logic from `ScriptEditorDebugger`
User can click on the graph of monitors to read the value at that point.
Graph includes intermediate base lines.
2020-06-29 17:20:29 +05:30
Rémi Verschelde
9fc65fd1f1
Merge pull request #39938 from MCrafterzz/interpolatedcamera
...
Remove unused interpolate camera icon
2020-06-29 10:59:58 +02:00
Rémi Verschelde
dffd805055
Merge pull request #39824 from mrushyendra/snap_point_polygon
...
Fix possible accidental duplication of Polygon2D start point
2020-06-29 10:39:00 +02:00
Stijn Hinlopen
7f6e8d25d4
Search ranking: favor filenames over extensions.
2020-06-29 00:45:30 +02:00
Rémi Verschelde
27378524f2
Merge pull request #39896 from KoBeWi/image_gallery
...
Generate inspector preview for Image resources
2020-06-27 23:25:43 +02:00
Tomasz Chabora
eb6a367cb7
Generate inspector preview for Image resources
2020-06-27 22:03:20 +02:00
Stijn Hinlopen
c33707e9b4
Remove directory search results
2020-06-27 17:45:06 +02:00
Rémi Verschelde
db168abe7d
Merge pull request #39637 from MCrafterzz/tilemapinprovements
...
Make tilemap lines/rectangles their own tools
2020-06-27 11:38:32 +02:00
rileylyman
4285211f40
implement generic filename disambiguation
...
A static function is added to EditorNode which allows for filename
disambiguation given a list of filenames and the corresponding list of
absolute paths for those files. This function is then used to
disambiguate scene and script tabs in the editor.
2020-06-26 16:12:08 -07:00
Hugo Locurcio
e6352d1daa
Keep the bottom panel visible when enabling the distraction-free mode
...
- Document the `EditorInterface.distraction_free_mode` property.
This closes https://github.com/godotengine/godot-proposals/issues/951 .
2020-06-26 22:09:08 +02:00
Rémi Verschelde
b740f645f7
Merge pull request #39754 from akien-mga/canvasitemeditor-fix-dropped-scenes-position
...
CanvasItemEditor: Fix losing position for drag'n'dropped scenes
2020-06-26 20:54:00 +02:00
Juan Linietsky
201d606b3d
Addition of SDFGI for open world global illumination
...
Move GI to a deferred pass
2020-06-26 11:06:48 -03:00
Marcus Elg
8e2608b2d6
Make tilemap lines/rectangles their own tools
2020-06-26 15:52:09 +02:00
Rémi Verschelde
b92477d77e
Merge pull request #39814 from Xrayez/specific-weird-icons
...
Don't use arbitrary theme editor icons for scripts with the same name
2020-06-26 08:05:52 +02:00
Maganty Rushyendra
6e60aa3876
Fix undo/redo for bone painting in Polygon2D UV Editor
...
Fix to ensure that undo/redo works when painting bones in the Polygon2D
UV editor. Previously, bone painting would continue silently in the
background, because a mouse click signalling the end of an edit would
not be appropriately dealt with.
2020-06-26 13:38:05 +08:00
Maganty Rushyendra
b8d55b244a
Fix accidental duplication of Polygon2D start point
...
Ensures that closure of Polygon2D in the editor takes into account
Grid Snap if enabled. Does this by comparing the polygon start with
grid snap applied to mouse click location. Note: transformation is
applied in order to deal with different editor zoom levels.
2020-06-25 18:42:18 +08:00
Rémi Verschelde
75c91707a4
Merge pull request #39482 from asmaloney/fix-scrollwheel-zoom-macos
...
[macOS] Control key + scroll wheel should zoom not pan
2020-06-25 11:22:08 +02:00
Rémi Verschelde
e8706848e6
i18n: Sync translations with Weblate
...
(cherry picked from commit a84f081160
)
2020-06-25 11:00:38 +02:00
Rémi Verschelde
7c837cf6d1
Merge pull request #39799 from YeldhamDev/3d_buttons_regress_fix
...
Fix regressions in the 3D lock buttons
2020-06-25 10:53:39 +02:00
Andrii Doroshenko (Xrayez)
c177308f80
Don't use arbitrary theme editor icons for scripts with the same name
...
The existing theme editor icon could be unintentionally set for any
global class with matching name (`Group` icon, `Group` class_name etc),
which would only show up in the "Create Dialog" context, but not the
scene tree dock.
This change prevents this behavior, and ensures that the icon can be
actually overidden by explicit icon path in `class_name`, if there's any
custom icon to begin with.
The correct built-in type's icon is fetched for child classes if there
are no custom icons detected throughout base classes as well, so it
isn't left empty for those cases.
2020-06-25 02:23:39 +03:00
Rémi Verschelde
527ab830c6
Merge pull request #39793 from Xrayez/class-icon-opt
...
Optimize class icon loading
2020-06-24 19:01:36 +02:00
Hugo Locurcio
9bd2d7a617
Fix default editor/project Button styles after ToolButton removal
...
Before this fix, all Buttons made with the default project theme
looked flat until hovered.
2020-06-24 17:21:47 +02:00
Michael Alexsander
f167a2b993
Fix regressions in the 3D lock buttons
2020-06-24 12:09:53 -03:00
Andrii Doroshenko (Xrayez)
4a86e2bb76
Optimize class icon loading
...
`get_global_class_name` for `GDScriptLanguage` is slow because
it forces to parse an entire script each time. This patch ensures
that the icon is actually fetched from the EditorData where they
are loaded beforehand.
This change also makes the behavior consistent with the existing
`get_object_icon` method in EditorNode.
2020-06-24 13:08:27 +03:00
Bill
acdcda9033
Fix overlapping hotkey designations for save all scenes and save all scripts
2020-06-24 05:02:54 -04:00
Rémi Verschelde
6ad814bf7b
Merge pull request #39775 from Chaosus/fix_error_label
...
Fix error label clicking in status bar for shader editor
2020-06-24 08:24:40 +02:00
Yuri Roubinsky
25cb5a42e0
Fix error label clicking in status bar for shader editor
2020-06-23 11:10:33 +03:00
Marcus Elg
9e24fa469a
Remove unused interpolate camera icon
2020-06-23 09:29:20 +02:00
Maganty Rushyendra
69d0d89214
Enable finer grained control when creating polygon with UV Editor
...
Modifies polygon auto-completion based on UV editor scale, in order
to enable finer grained control for the user. Enables selection of
points closer than the current threshold of 8 pixels.
2020-06-23 15:22:08 +08:00
Rémi Verschelde
3f4e39e606
Merge pull request #39719 from Calinou/editor-monitors-horizontal-lines
...
Draw horizontal lines and labels in the editor performance monitors
2020-06-22 23:32:29 +02:00
Rémi Verschelde
a403131a25
CanvasItemEditor: Fix losing position for drag'n'dropped scenes
...
Fixes #26549 .
Supersedes #36309 .
2020-06-22 14:18:45 +02:00
Aaron Franke
ed2bbdbbef
Avoid errors when the editor camera is inside the focused object
...
Prevent the gizmo distance from being zero by MAX-ing it with CMP_EPSILON
2020-06-22 04:53:29 -04:00
Rémi Verschelde
492625db28
i18n: Sync translations with Weblate
...
(cherry picked from commit 000db65d40
)
2020-06-22 08:44:07 +02:00
Rémi Verschelde
091e500a88
Merge pull request #39592 from vorblen/master
...
Fix "Fully Axis-Locked" Freelook Navigation Scheme
2020-06-21 21:47:01 +02:00
Hugo Locurcio
a593786d09
Draw horizontal lines and labels in the editor performance monitors
...
This partially addresses
https://github.com/godotengine/godot-proposals/issues/1014 .
2020-06-21 20:02:04 +02:00
Rémi Verschelde
277d2f1f50
Merge pull request #39661 from dreamsComeTrue/restart-project-settings-msg
...
Project Settings 'restart' message put focus on editor rather than project itself
2020-06-21 12:21:15 +02:00
Hugo Locurcio
b14b7e763d
Remove unused ToolButton editor icon
...
Left-over from 31b7f02a29
.
2020-06-20 19:53:22 +02:00
Maganty Rushyendra
4a7c19e719
Fix overwrite of manual changes in export_presets.cfg when export dialog is opened
...
Ensures that behavior when export_presets.cfg file is edited manually
while editor is running remains identical to before commit 44094b0
.
2020-06-20 19:45:05 +08:00
Rémi Verschelde
e773664f26
Merge pull request #39687 from Calinou/2d-editor-shift-horizontal-scroll
...
Scroll horizontally when holding Shift with Scroll to Pan enabled
2020-06-20 11:55:59 +02:00
Rémi Verschelde
056ef55720
Merge pull request #39689 from Calinou/new-assetlib-icon
...
Replace the AssetLib tab icon with a less confusing design
2020-06-20 11:18:29 +02:00
Vorblen
29e901c342
Fix "Fully Axis-Locked" Freelook Navigation Scheme
...
Co-authored-by: Aaron Franke <arnfranke@yahoo.com>
2020-06-20 10:05:43 +01:00
Hugo Locurcio
ebabedc615
Replace the AssetLib tab icon with a less confusing design
...
This closes https://github.com/godotengine/godot-proposals/issues/818 .
2020-06-20 00:50:41 +02:00
Rémi Verschelde
8f5fbaefd1
Merge pull request #39657 from Sl3dge78/20467
...
The "Anim imported" warning gets displayed properly when working on imported anims.
2020-06-19 23:45:05 +02:00
Rémi Verschelde
5e13c3435d
Merge pull request #39663 from dreamsComeTrue/connect-dialog-method-name
...
Prevent having spaces in signal's method in Connect Dialog
2020-06-19 23:12:46 +02:00
Dominik 'dreamsComeTrue' Jasiński
79f46da1a3
Prevent having spaces in signal's method in Connect Dialog
...
Fixes : #39647
2020-06-19 21:24:06 +02:00
Dominik 'dreamsComeTrue' Jasiński
251f43d79e
Project Settings 'restart' message put focus on editor rather than project itself
...
Fixes : #39613
2020-06-19 21:16:51 +02:00
Hugo Locurcio
31b7f02a29
Remove ToolButton in favor of Button
...
ToolButton has no redeeming differences with Button;
it's just a Button with the Flat property enabled by default.
Removing it avoids some confusion when creating GUIs.
Existing ToolButtons will be converted to Buttons, but the Flat
property won't be enabled automatically.
This closes https://github.com/godotengine/godot-proposals/issues/1081 .
2020-06-19 20:49:49 +02:00
Hugo Locurcio
84e1c5e4c3
Scroll horizontally when holding Shift with Scroll to Pan enabled
...
This closes https://github.com/godotengine/godot-proposals/issues/1077 .
2020-06-19 19:27:33 +02:00
Yuri Roubinsky
cb9cbf840d
Added Texture2DArray support to visual shaders
2020-06-19 18:02:05 +03:00
Sl3dge78
d731f43794
Autofilled path gets set properly on animation subresources
2020-06-19 01:22:36 +02:00
Sl3dge78
95cd74fc4b
Fix #20467 . The "Anim imported" warning gets displayed properly when working on imported anims.
2020-06-18 23:12:22 +02:00
Andy Maloney
031165b345
[macOS] Control key + scroll wheel should zoom not pan
...
Together with godotengine/godot#39395 for 3.2.x, this fixes godotengine/godot#32520
2020-06-18 10:20:20 -04:00
Rémi Verschelde
4e0f31a67c
Merge pull request #39638 from mrushyendra/editor_preview
...
Fix editor texture preview for certain specific dimensions
2020-06-18 11:59:45 +02:00
Maganty Rushyendra
c7a8dc7bb9
Fix editor texture preview for certain specific dimensions
...
Ensures no error is issued when attempting to preview a resource that
may be scaled down to <1 pixel when resizing to fit the thumbnail.
2020-06-18 17:21:42 +08:00
Rémi Verschelde
e54031cf1a
Merge pull request #39614 from hinlopen/fix-search-highlight
...
Search result highlights follow font size
2020-06-18 10:02:05 +02:00
Rémi Verschelde
a8fce16b2f
Merge pull request #39626 from bojidar-bg/x-tileset-editor-crash
...
Fix a random crash in the TileSet editor
2020-06-18 09:55:03 +02:00
Bojidar Marinov
7850d0316f
Fix a random crash in the TileSet editor
...
Occurred when selecting polygon collision mode, then drawing a single point, then selecting rectangle mode, and finally trying to select a rectangle.
2020-06-17 22:08:51 +03:00
Hugo Locurcio
4a542e0007
Restore previous mouse position when leaving the editor freelook mode
...
- Remove the crosshair as it no longer serves a purpose (the cursor will
now appear where the user "expects" it to).
This closes https://github.com/godotengine/godot-proposals/issues/1076 .
2020-06-17 20:02:46 +02:00
Rémi Verschelde
ba0db95909
DocData: Skip language-specific ClassDoc without methods/constants
...
Removes the useless `@C#`, `@NativeScript` and `@VisualScript` entries.
2020-06-17 15:09:07 +02:00
Stijn Hinlopen
a86521d0bd
Search result highlights follow font size
2020-06-17 00:53:23 +02:00
Maganty Rushyendra
2be3a33cc3
Fix code editor Replace tool to work with 'Selection Only' option
...
Ensures that when the `Selection Only` option is selected, the Replace
tool replaces occurrences of the search phrase only within the selected
region, and in order of occurrence.
2020-06-16 22:09:46 +08:00
Rémi Verschelde
b29a3e7e23
Merge pull request #39307 from KoBeWi/move_n_dup
...
Allow duplicating files when holding Control
2020-06-16 12:54:06 +02:00
Rémi Verschelde
9d23391072
Merge pull request #39517 from Calinou/editor-display-freelook-speed-zoom
...
Display freelook speed and zoom in units in the 3D editor viewport
2020-06-16 12:44:25 +02:00
Hugo Locurcio
eaae50fe4a
Display freelook speed and zoom in units in the 3D editor viewport
...
Now that the 3D editor grid is infinite and adjusts its step automatically,
this helps people get a better sense of scale when moving around in the
3D viewport.
This also fixes the indicator bar drawing on hiDPI displays.
2020-06-16 10:46:01 +02:00
Rémi Verschelde
8db8577f10
Merge pull request #39126 from TwistedTwigleg/GSOC_2020_Working_Branch
...
Skeleton and Skeleton inspector low-level changes
2020-06-16 09:30:22 +02:00
Rémi Verschelde
3fa863dbb8
Merge pull request #38934 from KoBeWi/where_to_setget
...
Link exposed setters/getters in property descriptions
2020-06-16 09:25:27 +02:00
bruvzg
1e3c02d590
Change in-editor documentation style to be closer to online docs.
2020-06-16 08:03:24 +03:00
TwistedTwigleg
24905becb2
Made low level changes to the Skeleton3D class and Skeleton3D inspector. Changes listed below:
...
* Added helper functions to Skeleton3D for converting transforms from bone space to global space, and vice versa.
* Updated the Skeleton3D class reference.
* Changed the icon used for bones in the Skeleton3D inspector to use BoneAttachement3D's icon.
* Changed the Skeleton3D inspector to use EditorPropertyTransform and EditorPropertyVector3 when possible.
* Placed the Transform/Matrix for each bone in a sub-section, so it is visually similar to the Node3D inspector.
2020-06-15 17:18:06 -04:00
Tomasz Chabora
ea07acb877
Link exposed set/getters in property descriptions
2020-06-15 20:54:10 +02:00
Rémi Verschelde
77990b87c2
i18n: Sync translations with Weblate
...
Remove 'de_CH' translation (4% complete) to default to the 100%
complete 'de' one.
Fixes #32625 .
(cherry picked from commit 35a5ebb44d
)
2020-06-15 14:35:07 +02:00
Rémi Verschelde
152bb86141
Merge pull request #39479 from akien-mga/classdb-default-property-unique
...
Object: Add usage hint to instantiate Object properties in editor
2020-06-15 09:30:04 +02:00
Rémi Verschelde
fdc8b96975
Merge pull request #39503 from hilfazer/fav-proj-godot4
...
Fixed "Favourite Project" button in Project Manager
2020-06-15 09:28:17 +02:00
Rémi Verschelde
b95611bb86
Merge pull request #39543 from Sawrr/master
...
Unhide Skeleton3D menu button
2020-06-15 09:24:34 +02:00
Rémi Verschelde
8de945d7ba
Merge pull request #39534 from Calinou/remove-2d-pixel-import-preset
...
Remove the obsolete "2D Pixel" import preset
2020-06-15 09:22:06 +02:00
Rémi Verschelde
3d1b8ee56a
Merge pull request #39549 from KoBeWi/deletebuseffectinator
...
Delete bus effect with Delete key
2020-06-15 07:57:16 +02:00
Maganty Rushyendra
91bdc77d47
Fix match count for whole word search in editor
...
Check if a match borders a new line char when incrementing match counts.
2020-06-15 11:39:36 +08:00
Tomasz Chabora
05656f2b29
Delete bus effect with Delete key
2020-06-15 00:32:50 +02:00
Sawrr
d7a3395332
Unhide Skeleton3D menu button
2020-06-14 16:58:10 -04:00
Hugo Locurcio
26161de739
Remove the obsolete "2D Pixel" import preset
...
Texture filtering is now defined on a per-node basis, thanks to
bindless textures provided by Vulkan.
This closes #37057 .
2020-06-14 15:08:09 +02:00
hilfazer
512aaf018c
Fixed "Favourite Project" button in Project Manager
2020-06-13 12:43:54 +02:00
Rémi Verschelde
b3bc5aafc5
Object: Add usage hint to instantiate Object properties in editor
...
Fixes #36372 as Path2D/Path3D's `curve` property no longer uses a Curve
instance as default value, but instead it gets a (unique) default Curve
instance when created through the editor (CreateDialog).
ClassDB gets a sanity check to ensure that we don't do the same mistake
for other properties in the future, but instead use the dedicated
property usage hint.
Fixes #36372 .
Fixes #36650 .
Supersedes #36644 and #36656 .
Co-authored-by: Thakee Nathees <thakeenathees@gmail.com>
Co-authored-by: simpuid <utkarsh.email@yahoo.com>
2020-06-12 14:30:18 +02:00
Maganty Rushyendra
2433287871
Fix whole word search slowdown in editor
...
Reduce repeated iteration through the full text
when counting the number of occurrences of whole
words while searching a file in the editor.
2020-06-12 17:43:50 +08:00
Rémi Verschelde
42bc9ba92f
Merge pull request #39468 from KoBeWi/cpp_type_the_sequel
...
Fix custom types in node list search
2020-06-12 10:46:21 +02:00
Tomasz Chabora
22f0de8a83
Fix custom types in node list search
2020-06-11 22:06:32 +02:00
Aaron Franke
ff93bc6370
Add GLTF light import
...
Co-authored-by: K.S. Ernest (iFire) Lee <ernest.lee@chibifire.com>
2020-06-11 10:56:56 -04:00
Rémi Verschelde
bcac39551d
i18n: Sync translations with Weblate
...
(cherry picked from commit d68e631566
)
2020-06-11 10:01:23 +02:00
Rémi Verschelde
2dae762e53
Merge pull request #39355 from SaviHex/better-docs-links
...
Added a "title" attribute for the link tag in the docs xml
2020-06-11 09:32:40 +02:00
Rémi Verschelde
4af5dfb12f
Merge pull request #39434 from mrushyendra/export_update_files_master
...
Account for file deletion and renaming in Export Presets
2020-06-11 09:30:16 +02:00
SaviHex
18c08f65d6
Added a "title" attribute for the link tag in the docs xml
2020-06-10 23:25:29 -03:00
Maganty Rushyendra
44094b082d
Account for file deletion and renaming in Export Presets
...
Ensure that presets are updated with the latest files when
starting up or opening the Project Export dialog. Fixes the
error where Godot would attempt to export deleted files that
were previously selected.
2020-06-11 08:25:24 +08:00
Yuri Roubinsky
f6ed465613
Fix custom property editor layout
2020-06-10 18:03:32 +03:00
Rémi Verschelde
7c48155bbb
Merge pull request #39423 from Phischermen/fix-new-text-file-crash
...
Fix crash when creating new text file with no name
2020-06-10 10:43:23 +02:00
Michael Alexsander
f30e4dbf54
Fix scene tree showing up when the root selection is present
2020-06-09 19:06:15 -03:00
Phischermen
cdb29447b4
Fix crash when creating new text file with no name
2020-06-09 12:59:59 -07:00
Rémi Verschelde
ae21b5ddad
Merge pull request #39372 from aaronfranke/editor-cam-rot
...
Change the default editor camera rotation to position it in +X +Y +Z
2020-06-09 14:11:30 +02:00
Hugo Locurcio
a7b2f3d41a
Tweak the invalid preset error message to mention export_presets.cfg
2020-06-09 10:24:55 +02:00
Rémi Verschelde
201d5a7fc5
Merge pull request #39389 from akien-mga/packedscene-root-aint-got-parents
...
PackedScene: Prevent crash when root node has `parent` attribute
2020-06-08 14:23:30 +02:00
Rémi Verschelde
f6430eec2c
Merge pull request #39152 from abustin/fbx_mesh_compression_fix_master
...
Respect 'mesh compression' editor import option in Assimp and glTF importers [master]
2020-06-08 13:16:31 +02:00
Rémi Verschelde
c080ec5da2
PackedScene: Prevent crash when root node has parent
attribute
...
The crash happens further down when setting an invalid owner in
`Node::_set_owner_nocheck` but I couldn't figure out how to fix it.
But here the proper fix is to catch the invalid scene file early on
and fail loading it.
Part of #17372 .
2020-06-08 13:07:07 +02:00
Rémi Verschelde
67f56ff73a
Merge pull request #39365 from Calinou/editor-gizmos-visibility-tooltip
...
Add an editor tooltip to document gizmo visibility options
2020-06-08 08:24:55 +02:00
Marcus Brummer
41af859c68
Re-apply basis of newly added node (via drag-n-drop) in editor viewport
2020-06-07 22:09:41 +02:00
Tomasz Chabora
b426d11d86
Allow duplicating files when holding Control
2020-06-07 21:36:48 +02:00
Aaron Franke
6c2df6792b
Change the default editor camera rotation to position it in +X +Y +Z
2020-06-07 13:36:04 -04:00
Hugo Locurcio
138a4eecb3
Add an editor tooltip to document gizmo visibility options
...
See discussion in
https://github.com/godotengine/godot-proposals/issues/716 .
2020-06-07 18:31:17 +02:00
Rémi Verschelde
8da68fe910
Merge pull request #33858 from Calinou/inspector-layers-add-hover
...
Add visual feedback when hovering layer checkboxes in the Inspector
2020-06-06 23:20:01 +02:00
Rémi Verschelde
17af010478
Merge pull request #38967 from nekomatata/remote-inspector-builtin-res
...
Fix dialog spam when inspecting MeshInstance from model file
2020-06-06 16:11:11 +02:00
johan
fea6ca20c9
2D Editor: modified zoom increment to the twelveth root of two
...
- properly visit power of 2 factors (50%, 100%, 200%...)
- index based zoom values to prevent floating point issues
- Fix 2d editor not able to reach min and max zoom values
2020-06-04 21:48:55 -04:00
Marcus Brummer
85175c67b8
Enable text selection in execute output of EditorNode
2020-06-04 14:38:55 +02:00
Rémi Verschelde
f05b4fea33
Merge pull request #39099 from YeldhamDev/create_dialog_icon_fallback
...
Add fallback icons and make custom ones appear in the recent/favorites list in the "Create New" dialog
2020-06-04 11:58:55 +02:00
Rémi Verschelde
f66eed7d58
Merge pull request #38924 from Calinou/tweak-import-compression-hint
...
Tweak the import compression property hint for clarity
2020-06-04 11:48:40 +02:00
Rémi Verschelde
f1d9d50da1
Merge pull request #39154 from dreamsComeTrue/sync-script-change-remember
...
Preserving "Sync Scene Changes" & "Sync Script Changes" with Project Settings
2020-06-04 11:11:35 +02:00
Rémi Verschelde
d642cc1d70
Merge pull request #39271 from RandomShaper/fix_atlas_crop
...
Fix excessive bottom cropping in atlas generation
2020-06-04 11:09:59 +02:00
Hugo Locurcio
bbc435624f
Add visual feedback when hovering layer checkboxes in the Inspector
...
This also changes how checkboxes are selected, which makes it possible
to click in the small area between two checkboxes and
still toggle a value successfully (which is arguably less frustrating).
2020-06-03 23:15:59 +02:00
Rémi Verschelde
243cb503e1
Merge pull request #39204 from Calinou/distraction-free-property-getter
...
Add a getter and property for the editor distraction-free mode
2020-06-03 23:08:43 +02:00
Rémi Verschelde
19dc5c42d8
Merge pull request #37839 from MrRevington/3.2-_input_focus_check
...
FIX CodeTextEditor not respecting focus in _input
2020-06-03 22:49:45 +02:00
Rémi Verschelde
9a44dd6e1e
Merge pull request #39167 from Calinou/tileset-editor-zoom-mouse-wheel-anywhere
...
Allow mouse zooming without hovering the texture in the TileSet editor
2020-06-03 22:48:39 +02:00
Rémi Verschelde
8fc6766d72
Merge pull request #39165 from Calinou/tilemap-editor-zoom-mouse-wheel
...
Implement zooming using Ctrl + Mouse wheel in the TileMap editor
2020-06-03 22:48:22 +02:00
Rémi Verschelde
176e6a0be3
Merge pull request #39262 from aaronfranke/ok
...
Change OK text in snap dialog to OK
2020-06-03 22:47:18 +02:00
Rémi Verschelde
b1b49d966d
Merge pull request #39009 from Calinou/improve-script-editor-warnings-text
...
Improve the text appearance in the script editor warnings panel
2020-06-03 22:44:37 +02:00
Pedro J. Estébanez
fb7ae73045
Fix excessive bottom cropping in atlas generation
2020-06-03 22:24:49 +02:00
Hugo Locurcio
cc1859efed
Add a getter and property for the editor distraction-free mode
2020-06-03 22:18:49 +02:00
Hugo Locurcio
def2059d67
Implement zooming using Ctrl + Mouse wheel in the TileMap editor
...
This was previously implemented in the GridMap editor. This makes
the same feature available in the TileMap editor.
2020-06-03 22:17:13 +02:00
Hugo Locurcio
d10a5b2928
Allow mouse zooming without hovering the texture in the TileSet editor
...
This partially addresses
https://github.com/godotengine/godot-proposals/issues/968 .
2020-06-03 22:16:36 +02:00
Aaron Franke
8f85858224
Change OK text in snap dialog to OK
2020-06-03 10:55:03 -04:00
Dominik 'dreamsComeTrue' Jasiński
72501ae104
Preserving "Sync Scene Changes' and "Sync Script Changes" with Project Settings
...
Fixes : #38739
2020-06-03 12:28:00 +02:00
Rémi Verschelde
3a59c24b51
Merge pull request #39150 from dreamsComeTrue/project-manager-grab-focus-on-enter
...
Grabbing focus on ProjectList after clicking an item.
2020-06-03 11:31:54 +02:00
Rémi Verschelde
cec49bd194
Merge pull request #39203 from Xrayez/fix-no-lang-crash
...
Prevent crash attaching a script with no languages registered
2020-06-03 11:08:35 +02:00
Rémi Verschelde
4749437b23
Merge pull request #39209 from Xrayez/ray-shape-indie
...
Move `RayShape2D` implementation into its own translation unit
2020-06-03 11:07:32 +02:00
Aaron Franke
bb8aa107fd
Remove 32-bit String to_int method
2020-06-03 00:03:34 -04:00
Eric M
58caa2c453
Improved warning shown when autoload cannot be added.
2020-06-01 21:09:30 +10:00
Andrii Doroshenko (Xrayez)
9bb070b030
Move RayShape2D
implementation into its own translation unit
2020-06-01 01:52:07 +03:00
Andrii Doroshenko (Xrayez)
52f3cfca6f
Prevent crash attaching a script with no languages registered
2020-05-31 21:01:42 +03:00
Dominik 'dreamsComeTrue' Jasiński
1ec8f59397
Grabbing focus on ProjectList after clicking an item.
...
Fixes : #39012
2020-05-30 21:19:50 +02:00
Alex Bustin
9175af6f13
Respect 'mesh compression' editor import option in Assimp (ie. FBX) and glTF importers
2020-05-29 13:06:39 -07:00
Rémi Verschelde
1620669f4e
Merge pull request #39051 from Xrayez/geometry-split
...
Split `Geometry` singleton into `Geometry2D` and `Geometry3D`
2020-05-29 12:10:37 +02:00
Rémi Verschelde
a16031beb6
Use translated docs in PropertySelector
...
And do the dedent and stripping for both translated and
non-translated strings for consistency, and so that we
don't need to do it at the call site.
2020-05-28 12:02:12 +02:00
Michael Alexsander
84d7492b2d
Add fallback icons and make custom ones appear in the recent/favorites list in the "Create New" dialog
2020-05-27 16:05:19 -03:00
Andrii Doroshenko (Xrayez)
69d5de632e
Split Geometry
singleton into Geometry2D
and Geometry3D
...
Extra `_2d` suffixes are removed from 2D methods accoringly.
2020-05-27 14:28:34 +03:00
Rémi Verschelde
9dc96c0dd8
Merge pull request #39062 from akien-mga/du-pain-et-des-jeux
...
Add shortcut for Pan Mode (G)
2020-05-27 12:55:34 +02:00
Rémi Verschelde
84d9e10f88
Merge pull request #36409 from fire/skeleton-custom-inspector
...
Custom Skeleton3DEditorPlugin
2020-05-27 11:04:37 +02:00
Rémi Verschelde
28b33718b0
Add shortcut for Pan Mode (G)
...
And change TileMap Bucket Fill shortcut to (B).
Fixes #8582 .
2020-05-26 15:31:32 +02:00
Rémi Verschelde
f8005cb699
Merge pull request #28289 from aaronfranke/grid
...
Dynamic infinite 3D grid
2020-05-26 13:39:53 +02:00
Andrii Doroshenko (Xrayez)
a96f0e98d7
Add custom_modules
build option to compile external user modules
...
This patch adds ability to include external, user-defined C++ modules
to be compiled as part of Godot via `custom_modules` build option
which can be passed to `scons`.
```
scons platform=x11 tools=yes custom_modules="../project/modules"
```
Features:
- detects all available modules under `custom_modules` directory the
same way as it does for built-in modules (not recursive);
- works with both relative and absolute paths on the filesystem;
- multiple search paths can be specified as a comma-separated list.
Module custom documentation and editor icons collection and generation
process is adapted to work with absolute paths needed by such modules.
Also fixed doctool bug mixing absolute and relative paths respectively.
Implementation details:
- `env.module_list` is a dictionary now, which holds both module name as
key and either a relative or absolute path to a module as a value.
- `methods.detect_modules` is run twice: once for built-in modules, and
second for external modules, all combined later.
- `methods.detect_modules` was not doing what it says on the tin. It is
split into `detect_modules` which collects a list of available modules
and `write_modules` which generates `register_types` sources for each.
- whether a module is built-in or external is distinguished by relative
or absolute paths respectively. `custom_modules` scons converter
ensures that the path is absolute even if relative path is supplied,
including expanding user paths and symbolic links.
- treats the parent directory as if it was Godot's base directory, so
that there's no need to change include paths in cases where custom
modules are included as dependencies in other modules.
2020-05-25 15:33:32 +03:00
Rémi Verschelde
fee9742b59
Fix build after merge of #37235
...
It used APIs that were changed after the PR was last rebased.
2020-05-25 13:10:34 +02:00
Rémi Verschelde
aea1a0e983
Merge pull request #37235 from Calinou/improve-editor-feature-profiles
...
Improve the editor feature profiles UX
2020-05-25 12:56:33 +02:00
Tomasz Chabora
f4c6bb568e
Reverse mouse wheel in animation track editor
2020-05-25 01:30:05 +02:00
Hugo Locurcio
0c0ee427d2
Improve the text appearance in the script editor warnings panel
...
- Make the Ignore button's position identical across all warnings
by moving it to the left.
- Change the Ignore button's text and color to make it more obvious
that it can be clicked.
- Use the editor font instead of the default project font to match
the rest of the editor.
2020-05-24 14:30:44 +02:00
Aaron Franke
8879625879
Dynamic infinite 3D grid
...
Well, infinite for all intents and purposes.
2020-05-22 19:43:59 -04:00
PouleyKetchoupp
01802074a0
Fix dialog spam when inspecting MeshInstance from model file
...
Avoid load_scene for built-in resources to make sure we don't
open a scene tab and prompt for model file editing.
Load scene as regular resource instead and store the reference to keep
the dependency until the remote inspector cache is cleared.
2020-05-22 21:50:16 +02:00
K. S. Ernest (iFire) Lee
f7fdc87789
Custom Skeleton3DEditorPlugin
...
Co-authored-by: Marios Staikopoulos <marios@staik.net>
2020-05-22 09:54:34 -07:00
MrRevington
4641fb9ec4
FIX CodeTextEditor not respecting focus in _input
2020-05-22 17:32:15 +02:00
Hugo Locurcio
1439447071
Tweak the import compression property hint for clarity
2020-05-21 17:06:44 +02:00
Dominik 'dreamsComeTrue' Jasiński
03b54f8a35
Fix moving 2D node with mouse after using arrow keys
...
Fixes : #38894
2020-05-21 14:50:35 +02:00
Rémi Verschelde
2ddbaeaf8c
DocData: Fix sorting of arguments and constants
...
The missing `operator<` definitions caused `Vector::sort()` to fail
sorting those alphabetically by name on Windows (not sure why Linux
isn't affected, I guess GCC/Clang are cleverer and use the operator
from the first struct member).
2020-05-20 14:36:34 +02:00
Rémi Verschelde
55377aa559
Merge pull request #38876 from paulloz/fix-import-params-error
...
Fix error with 'params' when import dock doesn't define any parameter
2020-05-20 14:00:01 +02:00
Paul Joannon
b7a6946790
check the params section exist before erasing it in import_dock
...
related #38864
2020-05-20 01:04:21 +02:00
Michael Alexsander
d015e4d6fc
Keep "lock" metadata when changing a Node's type, if applicable
2020-05-19 10:42:15 -03:00
Rémi Verschelde
0187cdae9a
Merge pull request #38800 from YeldhamDev/icons_complete
...
Add more missing node icons
2020-05-18 10:02:02 +02:00
Rémi Verschelde
d4599fff68
Merge pull request #38804 from m4gr3d/android_plugin_config_master
...
Implementation of the Godot Android Plugin configuration file
2020-05-17 22:38:47 +02:00
Fredia Huya-Kouadio
14e6696c8e
Implementation of the Godot Android Plugin configuration file
2020-05-17 11:11:26 -07:00
Michael Alexsander
50585e2cfa
Add more missing node icons
2020-05-17 12:51:49 -03:00
Rémi Verschelde
4c8832701b
Merge pull request #38695 from dreamsComeTrue/node-swap-order-arguments
...
Replace 'add_child_below_node' with 'add_sibling' in Node
2020-05-17 11:36:05 +02:00
Rémi Verschelde
1a43d3b396
Merge pull request #38451 from eduardonunesp/feature/command-comma-preferences
...
Using command + comma on macOS as default shortcut for editor settings
2020-05-16 13:24:15 +02:00
Rémi Verschelde
20ffb4b452
Merge pull request #38764 from YeldhamDev/icons_missing
...
Add more missing icons
2020-05-15 22:04:23 +02:00
Dominik 'dreamsComeTrue' Jasiński
7f5c81c32f
Replace 'add_child_below_node' with 'add_sibling' in Node
...
Fixes : #19642
2020-05-15 22:02:00 +02:00
Michael Alexsander
54ed1f63bf
Add more missing icons
2020-05-15 16:20:35 -03:00
Dominik 'dreamsComeTrue' Jasiński
095167dcc3
Hide editor_spin_slider grabber when closing Editor's windows
...
Fixes : #38740
2020-05-15 15:39:32 +02:00
Rémi Verschelde
0ee0fa42e6
Style: Enforce braces around if blocks and loops
...
Using clang-tidy's `readability-braces-around-statements`.
https://clang.llvm.org/extra/clang-tidy/checks/readability-braces-around-statements.html
2020-05-14 21:57:34 +02:00
Rémi Verschelde
07bc4e2f96
Style: Enforce separation line between function definitions
...
I couldn't find a tool that enforces it, so I went the manual route:
```
find -name "thirdparty" -prune \
-o -name "*.cpp" -o -name "*.h" -o -name "*.m" -o -name "*.mm" \
-o -name "*.glsl" > files
perl -0777 -pi -e 's/\n}\n([^#])/\n}\n\n\1/g' $(cat files)
misc/scripts/fix_style.sh -c
```
This adds a newline after all `}` on the first column, unless they
are followed by `#` (typically `#endif`). This leads to having lots
of places with two lines between function/class definitions, but
clang-format then fixes it as we enforce max one line of separation.
This doesn't fix potential occurrences of function definitions which
are indented (e.g. for a helper class defined in a .cpp), but it's
better than nothing. Also can't be made to run easily on CI/hooks so
we'll have to be careful with new code.
Part of #33027 .
2020-05-14 16:54:55 +02:00
Rémi Verschelde
0be6d925dc
Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocks
...
Which means that reduz' beloved style which we all became used to
will now be changed automatically to remove the first empty line.
This makes us lean closer to 1TBS (the one true brace style) instead
of hybridating it with some Allman-inspired spacing.
There's still the case of braces around single-statement blocks that
needs to be addressed (but clang-format can't help with that, but
clang-tidy may if we agree about it).
Part of #33027 .
2020-05-14 16:54:55 +02:00
Rémi Verschelde
710b34b702
Style: Fix missing/invalid copyright headers
2020-05-14 16:54:54 +02:00
Rémi Verschelde
dcd1151d77
Enforce use of bool literals instead of integers
...
Using clang-tidy's `modernize-use-bool-literals`.
https://clang.llvm.org/extra/clang-tidy/checks/modernize-use-bool-literals.html
2020-05-14 13:45:01 +02:00
Rémi Verschelde
1a8167867b
Modernize remaining uses of 0/NULL instead of nullptr (C++11)
...
Using clang-tidy's `modernize-use-nullptr`.
https://clang.llvm.org/extra/clang-tidy/checks/modernize-use-nullptr.html
2020-05-14 13:45:01 +02:00
Rémi Verschelde
1f6f364a56
Port member initialization from constructor to declaration (C++11)
...
Using `clang-tidy`'s `modernize-use-default-member-init` check and
manual review of the changes, and some extra manual changes that
`clang-tidy` failed to do.
Also went manually through all of `core` to find occurrences that
`clang-tidy` couldn't handle, especially all initializations done
in a constructor without using initializer lists.
2020-05-14 10:01:56 +02:00