Commit graph

8825 commits

Author SHA1 Message Date
K. S. Ernest (iFire) Lee
66a743b2c4 Resolve problem with missing meshes.
1. Keep color data.
2. Don't lod blend shapes.
2021-10-02 07:56:30 -07:00
Rémi Verschelde
43e571427e
Merge pull request #53317 from nekomatata/joint-files-rename 2021-10-01 22:47:27 +02:00
PouleyKetchoupp
39f6ca96a3 Rename Joint2D and Joint3D files for consistency
Now matches the class names to be consistent between 2D and 3D and with
other node types.
2021-10-01 12:00:32 -07:00
Rémi Verschelde
a30de5cedd
Merge pull request #53310 from YeldhamDev/docs_match_fix
Fix match counter in help pages not updating
2021-10-01 19:42:46 +02:00
Camille Mohr-Daurat
c7ee029acd
Merge pull request #53302 from nekomatata/physics-bone-remove-editor-code
Remove editor code in PhysicalBone3D
2021-10-01 08:45:20 -07:00
Michael Alexsander
4a8b5b92c3 Fix match counter in help pages not updating 2021-10-01 12:36:37 -03:00
PouleyKetchoupp
ca30b70943 Remove editor code in PhysicalBone3D
_set_gizmo_move_joint is only used in PhysicalBone3DEditor, so the
editor plugin call can be done directly there.
2021-10-01 08:02:38 -07:00
Rémi Verschelde
93cb71cca9
Merge pull request #50805 from EricEzaM/fix-exported-arrays-drag-and-drop-types 2021-10-01 16:17:57 +02:00
bruvzg
0c0b5c84b0 Implement TextServer GDExtension interface, remove TextServer GDNative interface. 2021-10-01 15:13:29 +03:00
EricEzaM
e519ef31f2 Fixed drag and drop not respecting type on exported arrays. 2021-10-01 18:16:38 +10:00
Eric M
ad30b0a8dd Allow shortcuts to have any number of bindings. Updated UI as required. 2021-10-01 18:04:28 +10:00
Rémi Verschelde
df57aa670a
Merge pull request #53278 from Geometror/fix-editor-property-array-color 2021-10-01 07:53:35 +02:00
Rémi Verschelde
a28f44fa53
Merge pull request #53277 from YeldhamDev/tabs_renaming 2021-10-01 07:52:29 +02:00
Hendrik Brucker
8dd8630c25 Fix property not shown in inspector when type is PACKED_COLOR_ARRAY 2021-10-01 02:52:44 +02:00
Michael Alexsander
663e480f24 Rename some elements of Tabs 2021-09-30 20:18:23 -03:00
Lightning_A
c63b18507d Use range iterators for Map 2021-09-30 15:09:12 -06:00
Lightning_A
e4dfa69bcf Fix non-const iterators in const methods 2021-09-30 15:07:30 -06:00
Rémi Verschelde
3e1b630461
Merge pull request #53025 from Paulb23/textfile-ux 2021-09-30 23:00:07 +02:00
Juan Linietsky
c370b4c4d0
Merge pull request #52544 from JFonS/lod_fixes
Auto LOD fixes and improvements
2021-09-30 14:49:11 -03:00
Rémi Verschelde
5b7ec95de7
Merge pull request #53254 from Calinou/node-rename-filename
Rename Node's `filename` property to `scene_file_path` for clarity
2021-09-30 17:59:56 +02:00
Hugo Locurcio
570cdc128f
Rename Node's filename property to scene_file_path for clarity 2021-09-30 16:50:25 +02:00
Rémi Verschelde
a662ca66aa
Merge pull request #53112 from EricEzaM/better-breakpoint-gutter 2021-09-30 14:57:23 +02:00
Paulb23
6596c7bdc2 Add TextFile support across the editor 2021-09-30 13:29:29 +01:00
Eric M
e0f8410d16 Improved breakpoint gutter for CodeEdit.
Added preview of breakpoint placement on hover. Added override of icon for the Editor to use an SVG so it is no longer blurry.
2021-09-30 22:15:47 +10:00
Rémi Verschelde
1ab8f3f559
Merge pull request #52724 from groud/improve_tilemap_physics 2021-09-29 23:01:16 +02:00
Gilles Roudière
f2caab4691 Improve TileMap physics for moving platforms and conveyor belts like movements 2021-09-29 17:56:30 +02:00
Rémi Verschelde
1979266a17
Merge pull request #53062 from stebulba/4.0_undo_CloseCurve 2021-09-29 10:18:24 +02:00
Rémi Verschelde
f410852f9c
Merge pull request #52172 from kleonc/scene-tree-dock-ensure-single-select 2021-09-29 09:15:43 +02:00
Rémi Verschelde
4fc246e99e
Merge pull request #52573 from e8newallm/Save_Scene-52078 2021-09-29 09:15:14 +02:00
Rémi Verschelde
ad635567b1
Merge pull request #53189 from AnilBK/use-class-specific-funcs 2021-09-29 07:40:52 +02:00
Rémi Verschelde
50c0cee44e
Merge pull request #53186 from groud/tiles_fixes 2021-09-29 07:05:19 +02:00
Anilforextra
fc9767abb1 Use functions defined in the their classes. 2021-09-29 09:36:34 +05:45
Gilles Roudière
27b9b3ef3c Various tiles-related fixes 2021-09-28 19:25:49 +02:00
Rémi Verschelde
06b9ea1921
Merge pull request #41855 from Razoric480/key_up_down_spin_slider 2021-09-28 17:33:49 +02:00
Francois Belair
3e18cc24a4 Add up/down keys to inc/dec val in spin slider
Fixes #godotengine/godot-proposals#29
2021-09-28 10:21:19 -04:00
Rémi Verschelde
46607ec08e
Merge pull request #53064 from YeldhamDev/template_manager_mirror_icon 2021-09-28 12:14:13 +02:00
naeu
e2b58ef4dc Set dialog folder icon color 2021-09-27 19:33:15 +01:00
jfons
9e1810695c Auto LOD fixes and improvements
* Fixed LODs for shadow meshes.
* Added a merging step before simplification. This helps with tesselated
  meshes that were previously left untouched. The angle difference at
  wich edges ar considered "hard" can be tweaked as an import setting.
* LODs will now start with the highest decimation possible and keep
  doubling (approximately) the number of triangles from there. This
  makes sure that very low triangle counts are included when possible.
* Given more weight to normal preservation.
* Modified MeshOptimizer to report distance-based error instead of
  including attributes in the reported metrics.
* Added attribute transference between the original mesh and the
  various LODs. Right now only normals are taken into account,
  but it could be expanded to other attributes in the future.
2021-09-27 17:04:56 +02:00
kobewi
a402bf0ea4 Fix tile size property 2021-09-26 19:32:30 +02:00
Michael Alexsander
1363fe3892 Fix error when opening multiple debugger sessions 2021-09-26 02:41:11 -03:00
Michael Alexsander
e84861d596 Make some buttons in editor use the lighter version of the TabMenu icon 2021-09-25 15:30:11 -03:00
Hugo Locurcio
3143e7df69
Add history navigation in the script editor using extra mouse buttons
This feature is enabled by default, but it can be disabled in the editor
settings in case it interferes with other uses of the extra buttons
(such as push-to-talk in a VoIP program).
2021-09-25 13:33:07 +02:00
Rémi Verschelde
9293c76636
Merge pull request #53049 from AnilBK/dont-construct-2 2021-09-25 12:26:08 +02:00
Anilforextra
cdd912c48e Construct values only when necessary. 2021-09-25 14:46:45 +05:45
kleonc
1a3d53c008 TexturePreview Update text when texture is being changed 2021-09-25 00:10:12 +02:00
John Wigg
ed5f6cc351
Fix GPUParticle3D emission point generation
`emission_point_texture` is now correctly created from an image containing the emission points.
2021-09-24 23:11:10 +02:00
Rémi Verschelde
8b279541b2
Merge pull request #52987 from Calinou/editor-debugger-color-error-warning-lines 2021-09-24 21:41:51 +02:00
Rémi Verschelde
89c718c58b
Merge pull request #44352 from KoBeWi/ItemList🔥🔥🔥🔥🔥
Add Delete All button to ItemList editor
2021-09-24 20:46:42 +02:00
kobewi
f7e152b001 Add Delete All button to ItemList editor 2021-09-24 14:56:46 +02:00
Rémi Verschelde
32ab77ef8f
Merge pull request #52430 from AnilBK/vector2-replacements 2021-09-24 13:04:42 +02:00
Rémi Verschelde
10801b90f9
Merge pull request #52994 from YeldhamDev/dock_popup_arrow_fix 2021-09-24 08:49:45 +02:00
Michael Alexsander
f289b13b6b Fix arrow pointing in the wrong direction in the Dock Position popup 2021-09-23 21:32:48 -03:00
Hugo Locurcio
cae492562b
Color error and warning lines in the editor debugger's Errors panel
This improves readability when some errors/warnings are unfolded,
as their stack traces will keep their original colors.
2021-09-24 01:15:36 +02:00
Rémi Verschelde
e92064fbef
Merge pull request #52924 from David1Socha/expose_import_keep_when_multiple_selected 2021-09-24 01:14:59 +02:00
David Socha
ec9f9f72e2 export "Keep" import option when multiple files are selected
Co-Authored-By: Rémi Verschelde <rverschelde@gmail.com>
2021-09-23 16:48:32 -05:00
Anilforextra
cc51b045da Construct values only when necessary. 2021-09-23 22:26:07 +05:45
Gilles Roudière
f9e6329496 Implement animated tiles 2021-09-23 17:24:37 +02:00
Rémi Verschelde
88b347dc27
Merge pull request #51920 from jmb462/missing-sname-macro-optimization-in-some-functions 2021-09-23 13:14:20 +02:00
mujpao
f25a698f80 Fix right clicking sub nodes after renaming parent 2021-09-23 00:19:21 -07:00
bruvzg
545db3c8af Update Font advanced import dialog character ranges to Unicode 14. Fix character range selector column number. 2021-09-22 16:55:39 +03:00
Rémi Verschelde
0f48599ada
Merge pull request #52808 from AnilBK/simplify-logic 2021-09-22 14:08:19 +02:00
Anilforextra
c63d51408f Use Rect2's get_end(). 2021-09-22 14:09:45 +05:45
Rémi Verschelde
c63d1c3e4a
Merge pull request #52923 from SirQuartz/paint-tool 2021-09-22 10:06:17 +02:00
Nicholas Huelin
d625901032
Fix paint tool duplicate shortcut
This pull request fixes an issue where the pain tool in tile_map_editor.cpp had two different shortcuts for the same tool.
2021-09-21 23:04:46 -04:00
Haoyu Qiu
1032c8535b Fix 3D view name typo 2021-09-22 10:30:48 +08:00
Rémi Verschelde
ba57252bd8
Merge pull request #52878 from AnilBK/add-get-center 2021-09-21 21:30:30 +02:00
Rémi Verschelde
726b826b31
Merge pull request #52901 from nonunknown/master 2021-09-21 21:04:52 +02:00
nonunknown
5489f43844 Fix alpha typo in code completion color 2021-09-21 12:59:01 -03:00
Anilforextra
90908cd67d Add Get Center Method for Rect2/Rect2i and AABB. 2021-09-21 21:14:17 +05:45
Rémi Verschelde
b1853d8672
i18n: Sync translations with Weblate
(cherry picked from commit 323c3ee9db5414dbd79748a98e21446dddecb057)
2021-09-21 17:28:21 +02:00
Eric M
6b65092c57 Added ability to override shortcut definitions for OSX (remove preprocessor defines) 2021-09-22 00:09:57 +10:00
Rémi Verschelde
b458feba24
Merge pull request #51655 from RevoluPowered/improve-gdscript-code-editor-performance
Improve GDScript Editor performance
2021-09-21 15:18:17 +02:00
Eric M
28b7c1be80 Improve implementation of builtin action overrides 2021-09-21 22:25:31 +10:00
Gordon MacPherson
1881b3adc5
Improve GDScript Editor and Improve latency
Improvements:
- GDScript Highlighter is faster by 25% as keys are smaller (hashes instead of strings)
- Removes message queue from _apply_settings_change to allow resize to work correctly
- Some performance fixes are pending still

Note: this resolves the code editor behaving badly when resizing in debug builds
2021-09-21 13:56:47 +02:00
Rémi Verschelde
2785ad32df
Merge pull request #52884 from aaronfranke/doc-no-empty
Don't generate empty methods/constants doc sections and reduce code duplication
2021-09-21 11:12:19 +02:00
Rémi Verschelde
40eabbb120
Merge pull request #52601 from KoBeWi/scene_renaissance
Make restore_scenes_on_load true by default
2021-09-21 10:45:18 +02:00
Rémi Verschelde
e3ebe8b976
Merge pull request #52886 from bruvzg/rtl_fixes
Fix RTL layout Label text, VBox child, 3D node editor controls, and popup menu alignment.
2021-09-21 10:16:56 +02:00
bruvzg
99dc2ec9e1 Fix RTL layout Label text, VBox child, 3D node editor controls, and popup menu alignment. 2021-09-21 10:35:23 +03:00
Rémi Verschelde
b323660fe8
Merge pull request #52868 from jmb462/mouse_input
Allow mouse button event detection in Action Map Editor
2021-09-21 09:33:53 +02:00
Aaron Franke
d54f2ad7ca
Don't generate empty doc sections and reduce code duplication 2021-09-20 20:59:33 -05:00
jmb462
15b2846eae Allow mouse button event detection in Action Map Editor 2021-09-20 18:16:30 +02:00
Hugo Locurcio
e2718b7717
Tweak the 3D editor inertia defaults for better responsiveness
The default orbit sensitivity was decreased to account for this change.
Rotational inertia (orbit + freelook) was disabled by default due to
known issues.

This also removes the need for separate manipulation inertia settings,
as the default settings are more responsive.
2021-09-20 16:32:37 +02:00
Rémi Verschelde
2d1699ef82
Merge pull request #42103 from dankan1890/import_atlas_fix 2021-09-20 16:09:36 +02:00
Rémi Verschelde
b5380f9f59
Merge pull request #52867 from JFonS/upd_giz_fix
Fix error spam on quit
2021-09-20 13:53:13 +02:00
Rémi Verschelde
80e2c084cd
Merge pull request #52479 from KoBeWi/the_close_of_all_tabs
Don't stop closing on unsaved script
2021-09-20 13:16:05 +02:00
jfons
6747126c14 Fix error spam on quit 2021-09-20 13:10:19 +02:00
Rémi Verschelde
327ab9d9f5
Merge pull request #52865 from akien-mga/obj-import-no-threads
Import: Disable thread import for OBJ meshes
2021-09-20 12:33:46 +02:00
Rémi Verschelde
aa463ffb56
Merge pull request #52827 from Chaosus/blend_tree_connection_improvement
Draggin in/out from ports to create nodes in Animation Blend Tree editor
2021-09-20 12:30:21 +02:00
Rémi Verschelde
4d9b5852f4
Merge pull request #37228 from rcorre/rcorre/better-load-dialog
Use QuickOpen to load resources in the inspector.
2021-09-20 12:04:47 +02:00
Rémi Verschelde
7da6fcb89e
Import: Disable thread import for OBJ meshes
This can currently lead to deadlocks, possibly due to some race condition
in the Vulkan renderer.

Works around #48265.
2021-09-20 11:57:16 +02:00
Yuri Roubinsky
8e6fdd5227 Draggin in/out from ports to create nodes in Animation Blend Tree editor 2021-09-20 10:39:29 +03:00
Rémi Verschelde
0e5b0c025c
Merge pull request #52474 from KoBeWi/script_remover_3000 2021-09-19 11:30:11 +02:00
Ryan Roden-Corrent
470b94fe22
Add QuickLoad option to resource picker.
When clicking on a resource field in the inspector dock, you now have
the "Quick Load" option in addition to "Load". This opens a QuickOpen
dialog allowing the user to type in a phrase to quickly locate the
desired resource (similar to "Quick Open Scene").

In my experience, this is much faster than clicking through the File
Dialog.

Relates to godotengine/godot-proposals#346.
2021-09-18 21:59:32 -04:00
Fabio Alessandrelli
bac757df21
Merge pull request #52743 from Ev1lbl0w/fix_debug_errors_not_clearing
Fix error list not being cleared
2021-09-18 15:26:55 +02:00
Rémi Verschelde
87de2e7c4a
Merge pull request #52461 from kleonc/sprite-frames-dialog-fix-drawing 2021-09-17 23:17:08 +02:00
Rémi Verschelde
23f4e7990f
Merge pull request #52458 from jmb462/fix-node-pivot-shortcut-always-active 2021-09-17 23:14:58 +02:00
Rémi Verschelde
d67e2f3e0f
Merge pull request #51590 from aaronfranke/texture-region 2021-09-17 15:08:14 +02:00
Rémi Verschelde
949c268a68
Merge pull request #52655 from Chaosus/toggle_scripts_panel 2021-09-17 13:54:54 +02:00
Rémi Verschelde
5ebc5a7714
Merge pull request #52751 from Rubonnek/rename-listener-nodes 2021-09-17 12:23:41 +02:00
Hugo Locurcio
e5406ba952
Print a warning if a 3D editor gizmo has no name defined
Unnamed gizmos should be avoided, so this should help editor plugin
authors resolve issues with gizmo naming if they forgot to override
the function.
2021-09-17 00:26:51 +02:00
Wilson E. Alvarez
f3a564f9a5
Rename Listener2D/Listener3D to AudioListener2D/AudioListener3D 2021-09-16 17:51:51 -04:00
HaSa1002
053b3b946c
Remove bbcode_text from RichTextLabel
Also renames:
 - append_bbcode -> append_text
 - get_bbcode -> get_text
 - set_bbcode -> set_text
 - get_text -> get_parsed_text

Property text is:
set_text
get_text
2021-09-16 22:27:08 +02:00
Camille Mohr-Daurat
3581b893ed
Merge pull request #52681 from nekomatata/rename-rigid-body
Rename RigidBody to RigidDynamicBody and SoftBody to SoftDynamicBody
2021-09-16 11:20:21 -07:00
PouleyKetchoupp
85819b199a Rename RigidBody to RigidDynamicBody and SoftBody to SoftDynamicBody 2021-09-16 09:55:20 -07:00
Ricardo Subtil
9e85c95ca2 Fix error list not being cleared 2021-09-16 13:46:21 +01:00
Rémi Verschelde
eca594d25e
Merge pull request #52376 from rcorre/prop_path_copy_fix
Don't handle property_editor shortcuts on release.
2021-09-16 13:25:44 +02:00
Rémi Verschelde
879ce4c6e1
Merge pull request #49266 from Calinou/remove-unused-editor-icons
Remove unused editor icons
2021-09-16 12:08:38 +02:00
Rémi Verschelde
3a41a91b7a
Merge pull request #49284 from Calinou/add-listener3d-gizmo-icon
Display a editor gizmo icon for Listener3D
2021-09-16 12:08:02 +02:00
Rémi Verschelde
9e0f8110ad
Merge pull request #52732 from manueldun/materialConversionM
Materials Conversion now includes "Local to scene" flag and name
2021-09-16 11:16:05 +02:00
Rémi Verschelde
a124087a88
Merge pull request #41949 from EricEzaM/PR/inspector-sub-resources-unique-confirm
Added confirmation dialog for making sub-resources unique.
2021-09-16 11:01:46 +02:00
Hugo Locurcio
05697ee848
Display a editor gizmo icon for Listener3D
The icon was present in `editor/icons/`, but it was never implemented
in the editor gizmos code.

This also removes some unused gizmo drawing code (overridden methods
that are no longer called anywhere).
2021-09-16 10:56:45 +02:00
Rémi Verschelde
3d31afa627
Merge pull request #52683 from Calinou/script-editor-tweak-line-column-indicator
Tweak the script editor's line/column indicator for readability
2021-09-16 10:29:48 +02:00
Rémi Verschelde
73ec378c64
Merge pull request #51715 from aaronfranke/editor-setting-macro
Add and use macros for defining editor settings with hint information
2021-09-16 08:06:11 +02:00
Eric M
7249d2555b Added confirmation dialog for making subresources unique. 2021-09-16 10:39:31 +10:00
Manuel Dun
3e8b54bfc3 Conversion now includes "Local to scene" flag and name 2021-09-15 19:45:07 -04:00
Camille Mohr-Daurat
1852afb6b0
Merge pull request #52679 from nekomatata/world-boundary-shape
Rename WorldMarginShape to WorldBoundaryShape
2021-09-15 16:02:40 -07:00
ne0fhyk
69f890ff11 Provide a getter for the project data directory. 2021-09-15 12:52:03 -07:00
Aaron Franke
ca801f833f
Add and use macros for defining editor settings with hint information 2021-09-15 14:19:58 -05:00
Rémi Verschelde
a2b727ed38
Merge pull request #52344 from TechnoPorg/import-assets-first 2021-09-15 20:10:57 +02:00
Aaron Franke
4fc639916c
Allow disabling the RegEx module in the editor 2021-09-15 12:08:53 -05:00
Rémi Verschelde
520462e98c
Merge pull request #52709 from Chaosus/vs_fix_add_node 2021-09-15 18:37:59 +02:00
Yuri Roubinsky
c6d5c98c71 Fix pressing Add Node button in visual shader editor 2021-09-15 19:01:02 +03:00
Rémi Verschelde
f77b1f4002
Merge pull request #52352 from williamd67/open-help-editor-at-correct-position 2021-09-15 17:56:29 +02:00
Rémi Verschelde
d169087b67
Merge pull request #52317 from Calinou/2d-skeleton-editor-tweak-terms 2021-09-15 13:27:31 +02:00
Rémi Verschelde
a3d1bc757d
Merge pull request #32068 from aaronfranke/transform-editor
Reformat Transform(2D) matrix display in the inspector
2021-09-15 13:06:25 +02:00
Rémi Verschelde
17a7ac08ad
Merge pull request #42099 from jak6jak/test-fix
Single window mode is not lost after starting a project from the project manager
2021-09-15 11:35:18 +02:00
Rémi Verschelde
aff0521d3f
Merge pull request #51800 from KoBeWi/command_museum
Sort palette commands by last use
2021-09-15 10:51:44 +02:00
Rémi Verschelde
c2083160b1
Merge pull request #41036 from nathanfranke/default-2d-editor
Make default main screen plugin work even if 2D and 3D are disabled in editor features
2021-09-15 10:50:43 +02:00
Yuri Roubinsky
1dda47c280 Added status bar and toggle scripts panel button to EditorHelp/VScripts 2021-09-15 11:35:03 +03:00
Jacob Edie
2b292a1a2a
--single-window is passed through project manager.
This means you can start godot with --single-window
2021-09-15 10:20:50 +02:00
Rémi Verschelde
5139f18be4
Merge pull request #52685 from lentsius-bark/node3d-scaling-fix
Fix scale sensitivity for 3D objects
2021-09-15 08:01:20 +02:00
Stéphane Fortin
367cab90f0 add missing undo on CloseCurve path3d 2021-09-14 21:24:55 -04:00
PouleyKetchoupp
2ca94e51e4 Clean convex hull decomposition code
Remove unnecessary conversion between triangle data and vertex data
whenever possible.
2021-09-14 17:14:06 -07:00
Krystof Klestil
44aa26ad66 Fix issues with scaling Node3Ds 2021-09-15 00:10:20 +02:00
Rémi Verschelde
cd5a8f8dd4
Merge pull request #52667 from butkeim/master
Fix 3D Onion skinning missing
2021-09-14 22:27:19 +02:00
Hugo Locurcio
1e8976fcb5
Tweak the script editor's line/column indicator for readability
- Use a colon instead of parentheses and a comma to reduce visual
  clutter.
- Pad the line number with 4 spaces to account for scripts longer
  than 999 lines.
2021-09-14 22:23:59 +02:00
Rémi Verschelde
0c11fe0008
Merge pull request #52202 from jmb462/fix-wrong-behavior-action-editor-with-non-qwerty-layouts
Fix wrong behavior of Action Map Editor with non QWERTY layouts (Fix #52169)
2021-09-14 20:57:10 +02:00
PouleyKetchoupp
bb75aec8bc Rename WorldMarginShape to WorldBoundaryShape 2021-09-14 11:16:31 -07:00
Rémi Verschelde
0232a03177
Merge pull request #52671 from Chaosus/fix_delete_line
Fix error which generates if `Delete Line` used on the last line in `CodeEditor`
2021-09-14 18:23:46 +02:00
Gilles Roudière
ed0a3b29dd
Merge pull request #52636 from Jummit/highlight_categories
Highlight hovered inspector categories
2021-09-14 18:19:11 +02:00
jmb462
41e593552b Fix wrong behavior of Action Map Editor with non QWERTY layouts 2021-09-14 18:10:03 +02:00
Rémi Verschelde
3cc01b2824
Merge pull request #52226 from Faless/debugger/4.x_start_options 2021-09-14 16:20:02 +02:00
Yuri Roubinsky
7ccbf49bda Prevent error generates if Delete Line used on last line in CodeEditor 2021-09-14 17:18:20 +03:00
Kerrad Yanis
4f9784ca9c Fix 3D Onion skinning missing 2021-09-14 14:51:50 +02:00
Rémi Verschelde
e13d8eda1b
Merge pull request #52266 from AndreaCatania/coll 2021-09-14 14:34:22 +02:00
Rémi Verschelde
ce8dbef6a0
Merge pull request #52662 from Chaosus/fix_bookmarks
Fix editor crash on pressing `Go to Previous Bookmark` menu button
2021-09-14 14:13:00 +02:00
Rémi Verschelde
c110b294e9
Merge pull request #52644 from jmb462/error-message-on-invalid-autoload-name
Display an error message in autoload settings when autoload name is invalid
2021-09-14 13:45:32 +02:00
Rémi Verschelde
6ad7b334a1
Merge pull request #52260 from ThreeRhinosInAnElephantCostume/fixfindonfocus
Fix Find Next shortcut not working when search bar is focused
2021-09-14 13:35:10 +02:00
Yuri Roubinsky
6a9e855af9 Fix editor crash on pressing Go to Previous Bookmark menu button 2021-09-14 14:21:51 +03:00
Rémi Verschelde
bec06b01f8
Merge pull request #52213 from Ev1lbl0w/fix_output_message_split
Fix messages with embedded newlines not being properly presented
2021-09-14 13:09:18 +02:00
Rémi Verschelde
de3bc8d294
Merge pull request #52259 from jmb462/fix-ctrl-V-wrong-behavior-in-inspector-textedit
Fix Ctrl+V wrong behavior in inspector textedit (Fix #52208)
2021-09-14 13:04:57 +02:00
jmb462
645cc71be4 Display an error message in settings when autoload name is invalid 2021-09-14 13:04:00 +02:00
Gilles Roudière
8c8b634d23
Merge pull request #52658 from groud/some_tilemap_fixes
Fix transform of TileMap nodes and tilemap selection
2021-09-14 13:02:45 +02:00
Gilles Roudière
73cc6f94bf Fix transform of TileMap nodes and tilemap selection 2021-09-14 12:18:36 +02:00
Aaron Franke
3a902c66c4
Revert some URLs from the "Replace HTTP URLs with HTTPS" PR 2021-09-13 15:18:35 -05:00
Jummit
38b312404b Highlight hovered inspector categories 2021-09-13 21:35:09 +02:00
Rémi Verschelde
45d9df2e63
Merge pull request #52632 from vnen/autoload-global-script-class-conflict
Disallow class names to be the same as global names
2021-09-13 21:10:50 +02:00
Rémi Verschelde
feba85a569
Merge pull request #52554 from Calinou/2d-editor-enable-pixel-snap
Enable Pixel Snap by default in the 2D editor
2021-09-13 21:07:08 +02:00
George Marques
2e5fa124f4
Disallow class names to be the same as global names
Also forbid autoloads to have the same name as global script class.
2021-09-13 10:51:29 -03:00
Hugo Locurcio
f85426e8ad
Merge pull request #51805 from skysphr/scrollbar-icons-pressed
Added increment_pressed and decrement_pressed icons to scrollbars
2021-09-13 14:57:21 +02:00
Rémi Verschelde
1994525fc2
Merge pull request #51981 from kleonc/multi-node-edit-node_path-fix
MultiNodeEdit Fix setting NodePath
2021-09-13 14:05:14 +02:00
Rémi Verschelde
dde48ebed6
Merge pull request #52298 from DeleteSystem32/meshlib-transform
implement individual mesh transform for meshlibrary items
2021-09-13 12:19:30 +02:00
kobewi
7c325aa842 Make restore_scenes_on_load true by default 2021-09-12 16:11:56 +02:00
Juan Linietsky
8aedcfced7
Merge pull request #52504 from V-Sekai/gltf_8_uv
8 uvs for glTF2, URI decode and Vertex Custom api
2021-09-11 16:42:35 -03:00
Matthew Newall
ed2280528f Corrected Save Scene and Save All Scenes not working when the scene's dir no longer exists 2021-09-11 14:39:46 +00:00
Hugo Locurcio
c03e7c2dde
Enable Pixel Snap by default in the 2D editor
Since this avoids accidentally placing 2D nodes at subpixel positions,
this results in more crisp visuals by default, even when pixel snapping
is disabled in the project settings.
2021-09-10 22:13:06 +02:00
Juan Linietsky
6679790fac
Merge pull request #52406 from ellenhp/libvorbis
Replace stb_vorbis with libvorbis
2021-09-10 16:24:59 -03:00
Lyuma
aca4b737f1 8 uvs for glTF2, URI decode and Vertex Custom api.
Add glTF2 uri decode for paths.

Add vertex custom apis.

Add scene importer api.

Change Color to float; add support for float-based custom channels in SurfaceTool and EditorSceneImporterMesh

Co-authored-by: darth negative hunter
 <thenegativehunter2@users.noreply.github.com>
2021-09-10 09:16:48 -07:00
Max Hilbrunner
cf08fadbad
Merge pull request #52503 from KoBeWi/DROPNODESTOFOLDERRRR
Save branch as scene by dropping to filesystem
2021-09-10 12:58:03 +02:00
Ellen Poe
f5d9c7b487 Replace stb_vorbis with libogg+libvorbis 2021-09-09 19:39:04 -07:00
Juan Linietsky
729461b2a4
Merge pull request #51158 from YeldhamDev/potgen_enhancements
Make some enhancements to the POT generation
2021-09-09 20:21:29 -03:00
Juan Linietsky
d0a7eeaaff
Merge pull request #44844 from KoBeWi/hey_listen!_but_2d
Add Listener2D
2021-09-09 19:19:10 -03:00
Vincent
70108fd850 implement individual mesh transform for meshlibrary items 2021-09-09 16:40:16 +02:00
kobewi
d4f4cfbb40 Save branch as scene by dropping to filesystem 2021-09-09 00:59:10 +02:00
Juan Linietsky
25291a5b03
Merge pull request #52462 from TokageItLab/fixed-regression-of-skinning
Fixed regression of skinning with skeleton
2021-09-08 10:07:46 -03:00
Gilles Roudière
321ee7bda1
Merge pull request #52106 from Paulb23/text-edit-optimisation
Optimise TextEdit get line height and width
2021-09-08 14:04:41 +02:00
Gilles Roudière
d308a0a148
Merge pull request #52307 from Calinou/scene-tree-tooltip-display-node-name
Display the node name in scene tree dock tooltips
2021-09-08 09:20:34 +02:00
Gilles Roudière
b0fd7ae642
Merge pull request #52459 from groud/fix_terrain_editor_reset
Fix TileSet terrain painting reset to no terrain
2021-09-08 09:19:39 +02:00
AndreaCatania
e3a06c3a9e Improve collision generation usability in the new 3D scene import workflow.
With this PR it's possible to add a collision during the Mesh import, directly in editor.
To generate the shape is possible to chose between the following options:
- Decompose Convex: The Mesh is decomposed in one or many Convex Shapes (Using the VHACD library).
- Simple Convex: Is generated a convex shape that enclose the entire mesh.
- Trimesh: Generate a trimesh shape using the Mesh faces.
- Box: Add a primitive box shape, where you can tweak the `size`, `position`, `rotation`.
- Sphere: Add a primitive sphere shape, where you can tweak the `radius`, `position`, `rotation`.
- Cylinder: Add a primitive cylinder shape, where you can tweak the `height`, `radius`, `position`, `rotation`.
- Capsule: Add a primitive capsule shape, where you can tweak the `height`, `radius`, `position`, `rotation`.

It's also possible to chose the generated body, so you can create:
- Rigid Body
- Static Body
- Area
2021-09-08 08:12:51 +02:00
kobewi
8fe664fb4b Don't stop closing on unsaved script 2021-09-07 23:38:19 +02:00
PouleyKetchoupp
37de1df2ab Fix undo/redo for properties set as PROPERTY_USAGE_UPDATE_ALL_IF_MODIFIED
Full inspector update was triggered only on property changed, but not on
undo/redo actions, which can cause inspector discrepancies when some
properties are supposed to be shown or hidden.

Now update all flag is passed into _edit_set() method which already has
logic to handle this case properly (it still triggers update_tree() down
the line).
2021-09-07 13:58:41 -07:00
kobewi
1a60509699 Close built-in script from any scene 2021-09-07 22:19:45 +02:00
Juan Linietsky
58388f8cec
Merge pull request #47391 from Calinou/platform-feature-tags-lowercase
Make platform feature tag names lowercase
2021-09-07 16:30:50 -03:00
Max Hilbrunner
1eee73c26f
Merge pull request #52440 from kdiduk/issue-41297-fix-type-casting-to-uint32_t
Cosmetic: explicitly convert signed to unsigned value
2021-09-07 21:08:26 +02:00
Max Hilbrunner
886ad727f8
Merge pull request #52267 from williamd67/lookup-symbol-builtin-functions
Show help for built-in functions (@GlobalScope)
2021-09-07 21:05:09 +02:00
Juan Linietsky
93aa158b5e
Merge pull request #52277 from groud/implement_array_property_hint
Implement properties arrays in the Inspector.
2021-09-07 11:59:46 -03:00
Silc 'Tokage' Renew
48aa2d5494 Fixed regression of skinning with skeleton 2021-09-07 23:59:29 +09:00
kleonc
ad7a6102ae SpriteFramesEditor Fix preview grid in "Select Frames" dialog 2021-09-07 15:27:19 +02:00
Gilles Roudière
f361796771 Fix TileSet terrain painting reset to no terrain 2021-09-07 14:59:58 +02:00
jmb462
e7fd9adb4c Fix node pivot shortcut is always active 2021-09-07 14:02:27 +02:00
Gilles Roudière
4bd7700e89 Implement properties arrays in the Inspector. 2021-09-07 09:51:28 +02:00
Anilforextra
a1f616dcfc Use builtin Vector2 functions for calculation of angles.
.
2021-09-07 08:30:26 +05:45
Camille Mohr-Daurat
a93fb2655a
Merge pull request #52286 from nekomatata/restore-kinematic-body
Add AnimatableBody inherited from StaticBody for moving platforms
2021-09-06 09:32:46 -07:00
Kirill Diduk
92fa2bac23 Explicitly convert signed to unsigned value 2021-09-06 15:40:41 +02:00
Silc 'Tokage' Renew
facf8f1883 Apply set_read_only() to child classes of EditorProperty elements 2021-09-05 18:22:17 +09:00
Ryan Roden-Corrent
b296ad23b4
Don't handle property_editor shortcuts on release.
Fixes #52336.

EditorProperty::unhandled_key_input was handling both press and release.
This means that if you press `ctrl+v` on an EditorProperty line input,
it will paste as expected on pressing `ctrl+v`, and accept the event so
EditorProperty will not see it. However, on release, LineEdit ignores
the event and EditorProperty still catches and handles it, using its own
paste implementation.
2021-09-03 08:33:02 -04:00
William Deurwaarder
d927d4203c Symbol lookup jumps to the correct position in help editor
Commit `e4651a4` introduced `scroll_to_paragraph` and changed the implementation
of `scroll_to_line`, which also counts lines within paragraphs.

The help editor still used the `scroll_to_line` method
while it should use the newly implemented `scroll_to_paragraph' as that is
stored in its tables.
2021-09-02 21:51:27 +02:00
Hugo Locurcio
b73e7623c8
Merge pull request #33123 from Calinou/remote-inspector-capitalize-properties
Capitalize properties in the remote inspector
2021-09-02 19:44:53 +02:00
TechnoPorg
1963c63b91 Load assets before enabling editor plugins
Moves the code for enabling plugins from NOTIFICATION_READY to after the first scan has been completed.
2021-09-02 09:41:12 -06:00
Michael Alexsander
ee4b0108e0 Make some enhancements to the POT generation 2021-09-02 11:12:54 -03:00
ThreeRhinosInAnElephantCostume
a442b06313 Fix Find Next shortcut not working when search bar is focused 2021-09-02 09:54:26 +02:00
Hendrik Brucker
43faebdf48 Tweak tooltip style 2021-09-02 02:41:09 +02:00
Hugo Locurcio
16cfb97ca2
Tweak skeleton editor texts "Make Rest Pose" and "Set Bones to Rest Pose"
The new terms are more descriptive of each button's actual function.
2021-09-01 17:51:18 +02:00
Fabio Alessandrelli
58c30b2626
Merge pull request #51639 from Ev1lbl0w/gsoc21-dap
Implement more advanced features for DAP
2021-09-01 16:17:32 +02:00
Hugo Locurcio
c673aea124
Display the node name in scene tree dock tooltips
This makes long node names previewable without having to rename them.
2021-09-01 15:02:42 +02:00
PouleyKetchoupp
83baecdff0 Add AnimatableBody inherited from StaticBody for moving platforms
Instead of having a physics node named Static that can be either Static
or Kinematic, AnimatableBody is added again as a separate node:
-Inherited from StaticBody to make its usage clearer
-Still separated from CharacterBody to make its usage more focused

Properly implemented constant velocity for kinematic bodies in godot
physics servers (induced velocity without actually moving).

Also updated description for the different physics nodes to make their
usage clearer.
2021-08-31 18:14:32 -07:00
Hugo Locurcio
2daaf0fdc3
Make platform feature tag names lowercase
Feature tag names are still case-sensitive, but this makes built-in
feature tags more consistent.

- `Windows` -> `windows`
- `OSX` -> `osx`
- `LinuxBSD` -> `linuxbsd`
- `Android` -> `android`
- `iOS` -> `ios`
- `HTML5` -> `html5`
- `JavaScript` -> `javascript`
- `UWP` -> `uwp`
2021-08-31 20:34:44 +02:00
Aaron Franke
288f0b6555
Reformat Transform(2D) inspector menus
Move, rename, recolor, and fix the inspector for these in the inspector. Coloring is now done by a helper method in "editor_inspector.cpp".
2021-08-31 11:24:40 -05:00
kobewi
f2cb0a8d4b Add Listener2D 2021-08-31 16:53:14 +02:00
Hugo Locurcio
854f328517
Capitalize properties in the remote inspector
This makes property casing consistent with the editor.

If property capitalization is disabled in the Editor Settings,
the remote inspector will also disable capitalization.
2021-08-31 16:39:37 +02:00
Ev1lbl0w
292ed61c18 Implemented advanced features of DAP
Respect client "supportsVariableType" capability

Implement "breakpointLocations" request

Implement "restart" request

Implement "evaluate" request

Fix error messages not being shown, and improved wrong path message

Removed thread option and behavior

Implemented detailed inspection of complex variables

Fix "const"ness of functions

Added a configurable timeout for requests

Implement Godot custom data request/event

Implement syncing of breakpoints

Added support for debugging native platforms
2021-08-31 15:17:58 +01:00
Nathan Franke
9954544be8
Make default main screen plugin work even if 2D and 3D are disabled 2021-08-31 00:17:22 -05:00
kobewi
baf2f374f4 Sort palette commands by last use 2021-08-31 02:07:52 +02:00
Juan Linietsky
bcd73fc00a
Merge pull request #52240 from Rubonnek/rename-rel-path
Rename `String::is_rel_path` to `String::is_relative_path`
2021-08-30 20:45:45 -03:00
Juan Linietsky
d085b2d04d
Merge pull request #43838 from lupoDharkael/cancel-member
Clear connection data from/to empty after used
2021-08-30 19:38:51 -03:00
William Deurwaarder
b2f858870d Show help for built-in functions (@GlobalScope) 2021-08-30 21:51:56 +02:00
jmb462
91974057a5 Fix CTRL+V doesn't work properly in inspector textedit 2021-08-30 17:33:01 +02:00
Juan Linietsky
6dab6e4136
Revert " Improve collision generation usability in the new 3D scene import workflow." 2021-08-30 11:30:36 -03:00
Camille Mohr-Daurat
b60a51f023
Merge pull request #51985 from AndreaCatania/coll
Improve collision generation usability in the new 3D scene import workflow.
2021-08-30 07:25:51 -07:00
Juan Linietsky
503244d452
Merge pull request #52245 from AndreaCatania/AndreaCatania-patch-4
EditorPropertyText, pass changing variable false.
2021-08-30 08:51:11 -03:00
Andrea Catania
847d9c29c7
Update editor_properties.cpp 2021-08-30 11:35:17 +02:00
Andrea Catania
d332a546c6
EditorPropertyText, pass changing variable false.
When the `EditorPropertyText`  change is triggered, it pass the `changing` as true, while there is an early return that blocks such event to be emitted when the Editor is updating.
This commit aligns the early return with the passes parameter.
2021-08-30 11:34:01 +02:00
Wilson E. Alvarez
d11c1afc04
Rename String::is_rel_path to String::is_relative_path 2021-08-29 20:41:29 -04:00
Juan Linietsky
07707a3627
Revert "Display a matrix for Node2D and don't display a duplicate origin" 2021-08-29 17:01:07 -03:00
Fabio Alessandrelli
ecb2e8297c [Editor] Editor debugger binds according to editor settings. 2021-08-29 18:03:12 +02:00
Aaron Franke
ee7bb9bbb9
Display a matrix for Node2D and don't display a duplicate origin 2021-08-29 10:34:50 -05:00
Ricardo Subtil
a08dbf3888 Fix messages with embedded newlines not being properly presented 2021-08-29 10:35:13 +01:00
Paulb23
de009cb5ae Optimise TextEdit get height and width 2021-08-28 11:27:23 +01:00
AndreaCatania
2d2d24a538 Improve collision generation usability in the new 3D scene import workflow.
With this PR it's possible to add a collision during the Mesh import, directly in editor.
To generate the shape is possible to chose between the following options:
- Decompose Convex: The Mesh is decomposed in one or many Convex Shapes (Using the VHACD library).
- Simple Convex: Is generated a convex shape that enclose the entire mesh.
- Trimesh: Generate a trimesh shape using the Mesh faces.
- Box: Add a primitive box shape, where you can tweak the `size`, `position`, `rotation`.
- Sphere: Add a primitive sphere shape, where you can tweak the `radius`, `position`, `rotation`.
- Cylinder: Add a primitive cylinder shape, where you can tweak the `height`, `radius`, `position`, `rotation`.
- Capsule: Add a primitive capsule shape, where you can tweak the `height`, `radius`, `position`, `rotation`.

It's also possible to chose the generated body, so you can create:
- Rigid Body.
- Static Body.
- Area.
2021-08-28 08:34:15 +02:00
kleonc
5d25115e80 SceneTreeDock Ensure to deactivate multi edit when selection changes to a single node 2021-08-28 01:55:06 +02:00
K. S. Ernest (iFire) Lee
d04aa9a114
Merge pull request #52122 from V-Sekai/autoload_list
Use sorted map for autoloads in ProjectSettings to preserve order.
2021-08-27 14:41:40 -07:00
Max Hilbrunner
8e3e9d121d
Merge pull request #51962 from LoipesMas/zoom_fix
Clamp EditorZoomWidget zoom
2021-08-27 21:31:46 +02:00
K. S. Ernest (iFire) Lee
90a35dac48
Merge pull request #51908 from bruvzg/msdf_fonts2
Make FontData importable resource. Add multi-channel SDF font rendering.
2021-08-27 08:51:37 -07:00
Camille Mohr-Daurat
ca4f20529c
Merge pull request #51896 from nekomatata/restore-ray-shape
Refactor RayShape and rename to SeparationRayShape
2021-08-27 08:49:49 -07:00
SaracenOne
1fbbe25cea Fix crash on scenes with tool scripts and mismatched node types 2021-08-27 14:32:28 +01:00
bruvzg
4c3f7d1290 Makes FontData importable resource.
Adds multi-channel SDF font texture generation and rendering support.
Adds per-font oversampling support.
Adds FontData import plugins (for dynamic fonts, BMFonts and monospaced image fonts), font texture cache pre-generation and loading.
Adds BMFont binary format and outline support.
2021-08-27 15:43:18 +03:00
K. S. Ernest (iFire) Lee
00268e37a0
Merge pull request #52142 from NathanLovato/GDQuest/animation-bezier-editor-improvements
Replace close icon with button in the Bezier editor
2021-08-27 01:58:00 -07:00
Lyuma
31f790299c Use OrderedHashMap for autoloads to preserve order 2021-08-26 21:55:26 -07:00
Nathan Lovato
4e7ac43cfe Replace close icon with button in the Bezier editor 2021-08-26 19:21:49 -06:00
Tomek
f6f5e0f934
Merge pull request #39404 from rcorre/proposal-106-copy-prop-path
Allow copying property path from inspector.
2021-08-27 00:39:42 +02:00
Juan Linietsky
eb940ca2a0
Merge pull request #51928 from reduz/extension-loader
Implement Extension Loader
2021-08-26 10:24:25 -03:00
Juan Linietsky
34e286d6a3
Merge pull request #52077 from reduz/error-ret-doc
Implement error return documentation
2021-08-26 08:42:06 -03:00
LoipesMas
f3883ea59e Fix zoom label not being updated 2021-08-25 18:53:40 +02:00
JFonS
c334989e00
Merge pull request #51821 from Calinou/builtin-shaders-add-comments
Add comments at the top of each built-in shader to ease debugging
2021-08-25 11:37:57 +02:00
PouleyKetchoupp
3d5dc80348 Rename RayShape to SeparationRayShape
Makes it clearer that it's used for special cases when picking a
collision shape.
2021-08-24 17:34:55 -07:00
PouleyKetchoupp
45c7af9862 Restore RayShape as a regular shape type
Partial revert from previously removing ray shapes completely, added
back as a shape type but without the specific character controller code.
2021-08-24 16:03:05 -07:00
reduz
96f8254b24 Implement error return documetation
Adds ability to add error return documetation to the binder and class reference.
Usage example:

```C++
void MyClass::_bind_method() {
	[..]
	BIND_METHOD_ERR_RETURN_DOC("load", ERR_FILE_CANT_OPEN, ERR_FILE_UNRECOGNIZED);
}
```

One function of ConfigFile was changed as example.
2021-08-24 15:28:29 -03:00
Juan Linietsky
61141793ca
Merge pull request #51999 from lyuma/set_surface_material
Implement methods in EditorSceneImporterMesh, and add documentation.
2021-08-24 11:17:48 -03:00
Juan Linietsky
aa3c3a9ebb
Merge pull request #52036 from reduz/native-extension-argument-pointers
Implement NativeExtension pointer arguments
2021-08-23 20:36:48 -03:00
reduz
44d62a9f4b Implement NativeExtension pointer arguments
* Allows calling into native extensions directly with a pointer
* Makes it easier to implement some APIs more efficiently
* Appears with a "*" in the documentation for the argument.
* Implementing the pointer handling is entirely up to the implementation, although the extension API provides some hint.
* AudioStream has been implemented as an example, allowing to create NativeExtension based AudioStreams.
2021-08-23 19:58:40 -03:00
Ryan Roden-Corrent
0205fffbf3
Copy/Paste property paths/values in inspector.
Resolves godotengine/godot-proposals#106.

Adds the following property menu options with default bindings:

- Copy Property (ctrl+c)
- Paste Property (ctrl+v)
- Copy Property Path (ctrl+shift+c)

If you hover over a property label in the inspector dock, you can copy
either the property value or the property path to the system clipboard
using the shortcuts above This is especially useful for the
`AnimationTree`, where code might reference properties like
"parameters/state/aim/move/blend_position".

One issue is that if you click a property, then click on the node you
currently have selected in the node tree, then press ctrl+shift+c, it
will still copy the selected property path rather than the node path. If
you click on a different node in the nodetree, however, ctrl+shift+c
will return to copying the nodepath.

The property value copy/paste was implemented by @KoBeWi at #39398 and
merged into this PR due to their similarity.
2021-08-23 18:15:05 -04:00
Max Hilbrunner
b86a1cc248
Merge pull request #37253 from KoBeWi/animass
Allow to load multiple animations at once
2021-08-23 20:03:23 +02:00
Hugo Locurcio
679b9be9d3
Merge pull request #52021 from Calinou/rename-polygon-editor-settings
Rename polygon editor settings for better display in the Editor Settings
2021-08-23 19:25:24 +02:00
Hugo Locurcio
19a735913e
Merge pull request #51998 from SirQuartz/Schrödinger's-search-box
Fix quick open script results
2021-08-23 18:51:57 +02:00
Hugo Locurcio
cbe6c25c6b
Rename polygon editor settings for better display in the Editor Settings 2021-08-23 17:59:19 +02:00
Tomasz Chabora
b1db36e65d Allow to load multiple animations at once 2021-08-23 17:24:02 +02:00
Max Hilbrunner
583b6a594a
Merge pull request #51971 from aaronfranke/https
Replace HTTP URLs with HTTPS for sites with HTTPS versions
2021-08-23 15:58:54 +02:00
reduz
5cecdfa8af Entirely removes BIND_VMETHOD in favor of GDVIRTUAL
* `_gui_input`, `_input`, `_unhandled_input` and `_unhandled_key_input` are now regular C++ virutal functions.
* Everything else converted to GDVIRTUAL
* BIND_VMETHOD is gone, always use the new syntax from now on.

Creating `_gui_input` method and using the binder to register events will no longer work, simply override the virtual function now.
2021-08-23 08:10:13 -03:00
Lyuma
e6962729d5 Implement set_surface_material and set_surface_name methods in EditorSceneImporterMesh, and add documentation. 2021-08-22 19:42:35 -07:00
Aaron Franke
ae1702bee5
Replace HTTP links with HTTPS for sites with HTTPS versions 2021-08-22 20:13:11 -05:00
Nicholas Huelin
c08407ed60
Fix quick open script top result
This pull request fixes an issue where the top search result of the quick open script wouldn't be the most relevant when the first letter is typed.
2021-08-22 19:28:49 -04:00
Michael Alexsander
2f8a58ad46
Merge pull request #51886 from Geometror/fix-layout-editor-file-dialog
Fix ItemList layout (+EditorFileDialog)
2021-08-22 16:47:11 +00:00
Ryan Roden-Corrent
cb15ec20bb
Implement camera orbiting shortcuts.
Fixes godotengine/godot-proposals#2051.
Relates to godotengine/godot-proposals#1215.

Implements shortucts for adjusting the camera rotation in 15-degree
increments, similar to Blender.

I did not add corresponding menu entries for these, as I didn't feel
like they would be too useful from a menu, and didn't want to make the
menu too long.
2021-08-22 12:34:32 -04:00
Juan Linietsky
e42628cd99
Merge pull request #51982 from reduz/fix-doctool-merging-when-signatures-change
Fix doctool merges when method signatures don't match
2021-08-22 12:37:38 -03:00
K. S. Ernest (iFire) Lee
7cbf5a547f
Merge pull request #51700 from Geometror/fix-color-picker
Reimplement ColorPicker presets
2021-08-22 08:23:09 -07:00
kleonc
5260fd8f3e MultiNodeEdit Fix setting NodePath 2021-08-22 17:17:30 +02:00
reduz
431ba0ebb1 Fix doctool merges when method signatures don't match
If methods signature did not match, documentation is not merged. This is
a considerable source of annoyance for contributors and it happened as
a result of #4533, otherwise the documentation for constructors would
not be properly merged.

This PR modifies the logic introduced to only do the signature test on
constructors and operators (which are the only types of members that can repeat).
2021-08-22 09:43:05 -03:00
reduz
3682978aee Replace BIND_VMETHOD by new GDVIRTUAL syntax
* New syntax is type safe.
* New syntax allows for type safe virtuals in native extensions.
* New syntax permits extremely fast calling.

Note: Everything was replaced where possible except for `_gui_input` `_input` and `_unhandled_input`.
These will require API rework on a separate PR as they work different than the rest of the functions.

Added a new method flag METHOD_FLAG_OBJECT_CORE, used internally. Allows to not dump the core virtuals like `_notification` to the json API, since each language will implement those as it is best fits.
2021-08-22 08:23:58 -03:00
Hugo Locurcio
57e3a1a951
Merge pull request #47673 from Calinou/improve-editor-window-title
Improve the editor window title for better usability
2021-08-22 08:42:43 +02:00
requizm
3d3f64f949 Fix camera override not working 2021-08-21 21:24:09 +03:00
Hendrik Brucker
72e49eadec Fix ItemList layout (+EditorFileDialog) 2021-08-21 00:22:09 +02:00
reduz
542e6e8ca6 Implement Extension Loader
* Extensions are now scanned and loaded on demand.
* Extensions found are cached into a file that is used to load them (which is also exported).
* Editor will ask to restart when an extension requires core functionality.
* Editor will attempt to load extensions always before importing or loading scenes. This ensures extensions can register the relevant types.
2021-08-20 16:02:24 -03:00
jmb462
54de7114c5 Add missing SNAME macro optimization for StringName in some functions 2021-08-20 14:50:24 +02:00
Rémi Verschelde
5b30685976
Merge pull request #51583 from nekomatata/capsule-height-radius-setters
Fix capsule height/radius setters with linked properties
2021-08-19 20:48:54 +02:00
PouleyKetchoupp
645bc94bfc Fix capsule height/radius setters with linked properties
Capsule height and radius setters can modify each other, rather than
using clamping, to avoid cases where values are not set correctly when
loading a scene (depending on the order of properties).

Inspector undo/redo:
Added the possibility to link properties together in the editor, so
they can be undone together, for cases where a property can modify
another one.

Gizmo undo/redo:
Capsule handles pass both radius and height values so they can be undone
together.
2021-08-19 10:31:19 -07:00
fabriceci
f871f13340 Avoid a crash when an node of the AnimationTree is invalid 2021-08-19 16:05:35 +02:00
Rémi Verschelde
8b6c168b3a
Merge pull request #48560 from SaracenOne/collada_semantic_fix_4_0 2021-08-19 09:02:16 +02:00
Rémi Verschelde
5ccf797c9c
Merge pull request #51703 from YeldhamDev/compal_tweaks
Minor tweaks/fixes for the Command Palette
2021-08-19 07:12:38 +02:00
Rémi Verschelde
e1e01427cc
Merge pull request #50411 from Chaosus/vs_filter
Added port type content filter on port dragging in visual shader
2021-08-18 20:43:03 +02:00
Rémi Verschelde
de7b6d13eb
Merge pull request #51627 from mhilbrunner/todo-for-neikeq 2021-08-18 20:13:50 +02:00
Yuri Roubinsky
f653cc13b9 Added port type content filter on port dragging in visual shader 2021-08-18 21:13:04 +03:00
Paulb23
ac39022dbc Fix visual shader keyword colour 2021-08-18 17:56:04 +01:00
Michael Alexsander
9819be7562 Minor tweaks/fixes for the Command Palette 2021-08-18 13:12:14 -03:00
Rémi Verschelde
a031579286
Merge pull request #50752 from Phischermen/indeterminate_checkmark_api
Added icons and API for indeterminate checkmarks for the Tree class.
2021-08-18 10:31:06 +02:00
Hugo Locurcio
5be4ea27d1
Fix missing and incorrectly named visual shader texture uniform icons 2021-08-18 05:41:02 +02:00
Hugo Locurcio
a139e58f8c
Add comments at the top of each built-in shader to ease debugging
When a shader error is printed about a built-in shader, the origin
of the shader will now be recognizable immediately by looking at
the top of the printed shader code.
2021-08-18 03:09:22 +02:00
Hendrik Brucker
ff9901f51e Reimplement ColorPicker presets 2021-08-18 02:09:48 +02:00
Aaron Franke
e5d85ac751
Fixes to tests for Variant and Geometry3D 2021-08-17 16:46:08 -05:00
skysphr
e27ab2708f Added increment_pressed and decrement_pressed icons to scrollbars 2021-08-17 22:09:29 +03:00
Rémi Verschelde
aa3909cf54
Merge pull request #51729 from yjh0502/ext-reload-master
Auto-reload scripts with external editor
2021-08-17 19:42:44 +02:00
Max Hilbrunner
5161c97c9c Remove underscore hacks
Way less cruft. :)

Co-authored-by: Ignacio Roldán Etcheverry <neikeq@users.noreply.github.com>
2021-08-17 16:10:28 +02:00
Haoyu Qiu
16c2d4ef22 Improve Undo/Redo menu items
* Make Undo/Redo menu items disabled when clicking it does nothing.
    * Context menu of `TextEdit`
    * Context menu of `LineEdit`
    * Editor's Scene menu
    * Script editor's Edit menu and context menu (for Script and Text)
* Make editor undo/redo log messages translatable.
* Mark `UndoRedo`'s `has_{un,re}do()` methods as `const`.
* Expose `TextEdit`'s `has_{un,re}do()` to scripts since `{un,re}do()` are already available.
2021-08-17 21:11:10 +08:00
Jihyun Yu
1c61245990 Auto-reload scripts with external editor 2021-08-17 21:43:45 +09:00
Rémi Verschelde
ca6c5cf7e6
Merge pull request #51758 from ThreeRhinosInAnElephantCostume/fix51725
Fixed node not renaming when clicking elsewhere on the scene tree
2021-08-17 14:07:42 +02:00
Rémi Verschelde
1c737fe7b5
Merge pull request #51761 from RevoluPowered/fix-undefined-behaviour-editor-grid
Fix editor grid perspective undefined behaviour
2021-08-17 14:04:47 +02:00
Rémi Verschelde
3621ec9b57
Merge pull request #51755 from jmb462/fix-carret-not-following-debugger
Fix caret not following while debugging (Fix #51754)
2021-08-17 14:02:47 +02:00
Rémi Verschelde
45344c6a02
Merge pull request #51651 from pycbouh/editor-merge-custom-theme
Add support for partial custom editor themes
2021-08-17 13:13:08 +02:00
Rémi Verschelde
e1754c0a13
Merge pull request #51647 from pycbouh/editor-dont-use-invalid-styleboxes
Make sure stylebox is valid in `EditorSpinSlider` before using it
2021-08-17 13:11:58 +02:00
developer
fd9267fd8d fixed the node not renaming when clicking elsewhere on the scene tree. 2021-08-17 09:07:12 +02:00
Gordon MacPherson
5f96e607fb Fix editor grid perspective undefined behaviour
Initialise the enum value
2021-08-17 00:37:27 +01:00