Commit graph

560 commits

Author SHA1 Message Date
Rémi Verschelde
5881c6505b
Merge pull request #27414 from KoBeWi/drop_the_dir
Allow to drop folders onto editor
2019-04-22 12:01:32 +02:00
Rémi Verschelde
71bbe6eb01
Merge pull request #27979 from Paulb23/remember_script_state
Restore script editor state between sessions
2019-04-21 13:01:43 +02:00
Paulb23
6ea253aa77 Restore script editor state between sessions 2019-04-13 13:07:12 +01:00
Rémi Verschelde
694ec9b3d0
Merge pull request #26551 from ZahFox/editor-shortcuts
New shortcuts for the editor menu items
2019-04-07 13:49:12 +02:00
Rémi Verschelde
03581e49b7
Merge pull request #27151 from vorabrijesh/updated
Changed default shortcut for opening help menu to (Shift + F1)
2019-04-07 11:53:08 +02:00
vorabrijesh
f1e4fd3e39 Change Help menu shortcut to Shift+F1: Fixes #3786 2019-04-07 01:45:26 +05:30
Rémi Verschelde
fc370b3feb Fix -Wimplicit-fallthrough warnings from GCC 8
Adds `FALLTHROUGH` macro to specify when a fallthrough is intentional.
Can be replaced by `[[fallthrough]]` if/when we switch to C++17.

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

Fixes #26135.
2019-04-05 15:14:53 +02:00
Rémi Verschelde
de54ee975d
Merge pull request #27238 from ShyRed/cpu2dmask
Add Emission Mask to CPUParticle2D
2019-04-03 09:13:14 +02:00
Tomasz Chabora
c0da243f04 Allow to drop folders onto editor 2019-03-26 13:33:38 +01:00
Pedro J. Estébanez
9c3ddf05cb Revert accidental commits
This reverts commit fb37284c02.
This reverts commit 4db0f51b9a.
2019-03-20 21:43:55 +01:00
Pedro J. Estébanez
4db0f51b9a Create live view dock [wip] 2019-03-20 20:44:43 +01:00
ShyRed
dcd268e183 Add Emission Mask to CPUParticle2D
Add ability to load emission masks to CPUParticle2D.
2019-03-19 17:28:57 +01:00
Will Nations
2d106eb715 Fix inherited icons for script classes 2019-03-17 00:04:15 -05:00
Rémi Verschelde
ffd115dd6f
Merge pull request #26935 from qarmin/show_class_name_icon_in_tabs
Show in tabs custom class icons
2019-03-16 11:04:03 -07:00
Michael Alexsander Silva Dias
ebabb0ea65 Make bottom panel only try to hide editors when they're visible 2019-03-16 03:39:49 -03:00
qarmin
825a870f06 Show in tabs non default class icons 2019-03-11 22:54:23 +01:00
George Marques
25f9aee005
Allow class_name scripts to have nested inheritance 2019-03-09 00:47:27 -03:00
Juan Linietsky
6eac688952 Don't hide/show top editor if they did not change, fixes #26644 2019-03-06 12:42:01 -03:00
Juan Linietsky
5f079e2ef9 -Make tileset and meshlibrary edit in a separate inspector, fixes #26671
-Made relationship lines appear based on theme settings, not previous hack
-Fix drawing of relationship lines (was broken)
-Fix double initialization of theme settings
2019-03-06 12:12:42 -03:00
Juan Linietsky
472c94ce3e Remove the "Open Editor" button, it will open automatically. 2019-03-04 16:50:21 -03:00
Juan Linietsky
53bec9deeb Fix and restore text, material and mesh previewers. 2019-03-04 15:53:18 -03:00
Juan Linietsky
e653c79ef7 Better warnings when resources can't be saved. Fixes #26531 2019-03-04 11:06:49 -03:00
Juan Linietsky
a1e73dcc94 Add support for event accumlation (off by default, on for editor), fixes #26536 2019-03-03 19:53:13 -03:00
will
7a88002992 New shortcuts for the editor menu items 2019-03-03 15:24:58 -06:00
Bruno Lourenço
ed7534a6aa Fix grid view button icon not showing on filesystem dock. 2019-03-03 15:02:51 +00:00
Paul Trojahn
f3d94cc752 Fix misleading modified status of scenes
If a scene is instanced in another scene, any changes to the first
triggers _clear_undo_history in EditorNode::set_current_scene, which
increments the version in UndoRedo::clear_history. This results in a
modified status. Passing false to clear_history fixes this issue.
Fixes #25942
2019-03-01 18:27:37 +01:00
Juan Linietsky
9ca6ffa341 Save resources even if no scene is present, closes #26273 2019-02-27 20:00:40 -03:00
Rémi Verschelde
028303f167
Merge pull request #26373 from groud/fix_layout_loading
Fixes layout loading
2019-02-27 22:39:31 +01:00
Juan Linietsky
d8f12c4343 Avoid docks to be overriden while scanning, fixes #26359 2019-02-27 18:14:59 -03:00
Gilles Roudiere
04fb1069cd Fixes layout loading 2019-02-27 21:36:12 +01:00
Juan Linietsky
a5370b1b1b -Fix problem of order of import plugins, closes #26340
-Ensure resource previewer does not start until first import is done
2019-02-27 14:11:17 -03:00
Juan Linietsky
eb2b9b88a9 Make sure restoring opened scenes happens after scanning is done. 2019-02-27 11:00:32 -03:00
Juan Linietsky
caa42667e8 If resources on disk have subresources and they are edited, also save the resource on ctrl-s 2019-02-26 23:48:30 -03:00
Rémi Verschelde
68f675fba2
Merge pull request #26290 from groud/move_setting_to_layout
Move the FileSystem dock layout properties to the per-project layout file
2019-02-26 09:14:41 +01:00
Gilles Roudiere
de95493de2 Move the FileSystem dock layout properties to the per-project layout file 2019-02-25 23:39:49 +01:00
Eric Rybicki
747b9ac870 Fix editor crash after disabling plugin that used forward_spatial_gui_input
Fixes #26124.
2019-02-25 17:11:04 +01:00
Juan Linietsky
7f63b0e8cd Added a workaround to avoid crashes due to how TileSet editor works, fixes #23672
Also fixed a few uninitialized memory variables.
2019-02-22 17:42:29 -03:00
Juan Linietsky
8b231b96e3 Implement a cleaner (and better) way to save imagedata from ImageTexture, fixes #18801 2019-02-21 20:49:42 -03:00
marxin
8d51618949 Add -Wshadow=local to warnings and fix reported issues.
Fixes #25316.
2019-02-20 19:44:12 +01:00
Rémi Verschelde
74ef11d404
Merge pull request #26061 from qarmin/fix_res_error
Fix res:// error when dragging file from outside of editor
2019-02-20 17:28:05 +01:00
Michael Alexsander Silva Dias
0de15955ad Add small spacing between top bars in main editor and project manager 2019-02-20 12:08:52 -03:00
qarmin
2f0c4de1f0 Fix res:// error when dragging file to other file 2019-02-19 17:21:05 +01:00
Rémi Verschelde
f5f2b5d4af
Merge pull request #25962 from willnationsdev/fix-missing-addon
Auto-cleanup missing addons
2019-02-18 10:09:58 +01:00
Will Nations
2d0fcd5c4a Auto-cleanup missing addons 2019-02-17 22:57:45 -06:00
Michael Alexsander Silva Dias
da45f1bf85 Minor cleanup in the Project Manager 2019-02-12 08:25:09 -02:00
Michael Alexsander Silva Dias
3a70020c98 Cleanup editor's top bar of old nodes 2019-02-11 02:18:54 -02:00
QbieShay
fe046de216 Root node of a scene is now selected when the scene is opened. 2019-02-08 22:50:39 +01:00
Rémi Verschelde
4cfce99955
Merge pull request #25355 from YeldhamDev/color_picker_changes
Make some small enhancements to the ColorPicker
2019-01-27 18:37:48 +01:00
Juan Linietsky
a089061120 Fix pixelized previews, but also instances of breaking ImageTexture cache. Closes #25378. 2019-01-27 13:41:47 -03:00
Michael Alexsander Silva Dias
182f26fe5e Make some small enhancements to the ColorPicker 2019-01-27 12:44:39 -02:00
Juan Linietsky
5bd3f72878 Properly warn about the effects of changing an import type, as well as force editor restart. Fixes #23874 2019-01-25 17:23:56 -03:00
Juan Linietsky
32fa136cc7 Ability to keep images in ImageTexture cached while using editor, fixes #25243 2019-01-25 13:40:23 -03:00
Juan Linietsky
e8d31cc765 Perform a cleaner exit for resource preview, fixes #24206 2019-01-17 09:09:39 -03:00
Rémi Verschelde
b16c309f82 Update copyright statements to 2019
Happy new year to the wonderful Godot community!
2019-01-01 12:58:10 +01:00
Chaosus
b26d2ac190 Fix "method not found" error when script is removed from object 2018-12-31 12:09:08 +03:00
Rémi Verschelde
ac46862097
Merge pull request #24506 from JFonS/expose_gizmos
Expose the new gizmo plugin system to scripting
2018-12-30 15:42:30 +01:00
JFonS
6b15b4f904 Expose the new gizmo plugin system to scripting 2018-12-21 23:56:39 +01:00
Alexandre LittleWhite Laurent
ca90dd302b Change global timestamp behaviour earlier 2018-12-16 23:39:17 +01:00
Rémi Verschelde
9df7ed59fb
Merge pull request #19501 from Zylann/custom_loaders
Added basic support for custom resource savers and loaders
2018-12-16 14:26:56 +01:00
Marc Gilleron
065e2670af Added basic support for custom resource savers and loaders 2018-12-15 05:34:53 +00:00
Rémi Verschelde
bf59b73250
Merge pull request #20609 from YeldhamDev/menu_hover_explicit
Make opening menus with the same parent on mouse focus explicit
2018-12-09 23:15:33 +01:00
Michael Alexsander Silva Dias
bc9cb0e6cd Cleanup some unused controls in the editor's top bar 2018-12-09 17:51:30 -02:00
Rémi Verschelde
e4a2003b98
Merge pull request #22323 from williamd1k0/ignore-main-scene
Editor: Skip loading main scene if restore_scenes_on_load is used
2018-12-07 15:08:34 +01:00
Juan Linietsky
ab9bbce311 Disable progress dialog on export from command line, stab at fixing #24031 2018-11-28 08:46:26 -03:00
Juan Linietsky
616b91b498 Added test to avoid saving cyclic scene instancing, fixes #9686 2018-11-27 18:56:31 -03:00
Juan Linietsky
e6bc152de8 NORMALMAP was not working (no normal being used detected), fixes #9263 2018-11-27 18:05:20 -03:00
Juan Linietsky
0d69da8c0e Rewrite code for unfolding and make it automatic on scene load, which works better. 2018-11-25 10:47:33 -03:00
Rémi Verschelde
da31d63f76
Merge pull request #23680 from YeldhamDev/unified_help_search_revived
Unified Class and Reference Search 2: Resurrection
2018-11-22 16:16:52 +01:00
Max Hilbrunner
998d3a30a5
Merge pull request #22983 from Ashafix/master
Better error message for malformed plugins
2018-11-21 12:18:15 +01:00
Juan Linietsky
da0ec37aa9 Reworked how non-imported resources are reloaded on change, fixes #19852 2018-11-20 21:48:48 -03:00
Ray Koopa
fddffa9eb8 Unify editor class and reference search
Co-authored-by: Michael Alexsander Silva Dias <michaelalexsander@protonmail.com>
2018-11-20 20:52:27 -02:00
Michael Alexsander Silva Dias
da7d3c5a58 Make opening menus with the same parent on mouse focus explicit 2018-11-20 20:37:45 -02:00
Rémi Verschelde
90dd3774a3
Merge pull request #23802 from JFonS/add_save_option
Add Save option to resource property menu
2018-11-20 14:15:31 +01:00
Michael Alexsander Silva Dias
6ba94d5ca0 Add argument to UndoRedo's "clear_history()" to not increase the version 2018-11-18 19:46:35 -02:00
JFonS
dbca3b81ba Add Save option to resource property menu 2018-11-18 15:17:04 +01:00
Rémi Verschelde
8dfe786406
Merge pull request #23649 from willnationsdev/fix-scene-icons
Fix scene dock not showing custom icons
2018-11-12 08:19:40 +01:00
Juan Linietsky
d16ce4a8ed Many fixes to script editor remote debugger, closes #13346 2018-11-11 09:16:27 -03:00
Will Nations
33e18ab2b5 Fix scene dock not showing custom icons 2018-11-10 22:46:20 -06:00
Juan Linietsky
f2e54057ae -Moved EditorDefaultValue to ClassDB, made it core
-Removed one and zero hints for properties, replaced by default value
2018-11-08 11:30:59 -03:00
Rémi Verschelde
5f8af252e8 doc: Use HTTPS for docs.godotengine.org and point to latest branch
Fixes #23509.
2018-11-05 08:46:27 +01:00
Pedro J. Estébanez
d2b0f69a64 Let user fix dependencies in resources 2018-11-02 04:44:40 +01:00
Rémi Verschelde
91e5782795
Merge pull request #23311 from YeldhamDev/editor_capitalization_fix
Small capitalization fixes across the editor
2018-11-01 21:37:33 +01:00
Juan Linietsky
4761c6bb7b Automatically unfold sections of properties that someone else edited (no local info exists). 2018-10-29 17:39:17 -03:00
Juan Linietsky
e647342140 Moved folding outside the resource files, now saved outside the project. 2018-10-29 16:37:09 -03:00
Juan Linietsky
6cc116d415 Ability to revert any property, not just from inherited scenes or scripts. 2018-10-29 12:25:56 -03:00
Michael Alexsander Silva Dias
f3835282c4 Small capitalization fixes across the editor 2018-10-26 16:11:36 -03:00
groud
5536e7a8d4 Fixes the editor layout 2018-10-26 12:44:49 +02:00
Ashafix
9e36f5f6f8 Better error message for malformed plugins 2018-10-25 22:46:01 +02:00
Michael Alexsander Silva Dias
9765a8dc21 Fix default layout dock sizes 2018-10-25 17:21:23 -03:00
Rémi Verschelde
ece9a0f400
Merge pull request #23114 from groud/allow_smaller_dock_width
Allow the editor dock to have a lower width
2018-10-25 15:06:41 +02:00
Paulb23
642ba881ea Don't create scene thumbnail before its saved, issue 22890 2018-10-21 15:55:58 +01:00
groud
6cf13e881c Allow the editor dock to have a lower width 2018-10-18 15:23:04 +02:00
Rémi Verschelde
32ee3bf092 Revert "Make KEY_ESCAPE close all output/debugger docks on bottom"
This reverts commit 2ae2735a7a.

It also closes panels like the shader text editor when trying to
discard code completion tooltips. It could be readded with extra
care that modals like tooltips will take precedence and mark the
event as handled.

Fixes #17159, fixes #20738, closes #22727.
2018-10-07 11:10:13 +02:00
Aaron Franke
4f7b33cdcf Remove redundant "== false" code
Some of this code has been re-organized.
f
2018-10-06 16:20:41 -04:00
William Tumeo
62218ea41b Editor: Skip loading main scene if restore_scenes_on_load is used 2018-10-02 15:41:16 -03:00
Rémi Verschelde
c026e3957a Fix warnings on virtual methods [-Woverloaded-virtual] [-Wdelete-non-virtual-dtor]
Fixes the following Clang 7 warnings:
```
editor/editor_help.h:123:7: warning: 'EditorHelpIndex::popup' hides overloaded virtual function [-Woverloaded-virtual]
editor/editor_help.h:95:7: warning: 'EditorHelpSearch::popup' hides overloaded virtual function [-Woverloaded-virtual]
editor/editor_help.h:96:7: warning: 'EditorHelpSearch::popup' hides overloaded virtual function [-Woverloaded-virtual]
editor/plugins/curve_editor_plugin.h:141:15: warning: 'CurvePreviewGenerator::generate' hides overloaded virtual function [-Woverloaded-virtual]
editor/plugins/script_editor_plugin.h:70:7: warning: 'ScriptEditorQuickOpen::popup' hides overloaded virtual function [-Woverloaded-virtual]
editor/quick_open.h:69:7: warning: 'EditorQuickOpen::popup' hides overloaded virtual function [-Woverloaded-virtual]
main/tests/test_io.cpp:53:15: warning: 'TestIO::TestMainLoop::input_event' hides overloaded virtual function [-Woverloaded-virtual]
servers/audio/effects/audio_effect_record.h:69:15: warning: 'AudioEffectRecordInstance::process_silence' hides overloaded virtual function [-Woverloaded-virtual]

core/os/memory.h:119:2: warning: destructor called on non-final 'ContextGL_X11' that has virtual functions but non-virtual destructor [-Wdelete-non-virtual-dtor]
core/os/memory.h:119:2: warning: destructor called on non-final 'EditorScriptCodeCompletionCache' that has virtual functions but non-virtual destructor [-Wdelete-non-virtual-dtor]
core/os/memory.h:119:2: warning: destructor called on non-final 'Engine' that has virtual functions but non-virtual destructor [-Wdelete-non-virtual-dtor]
core/os/memory.h:119:2: warning: destructor called on non-final 'PhysicalBone::JointData' that has virtual functions but non-virtual destructor [-Wdelete-non-virtual-dtor]
core/os/memory.h:119:2: warning: destructor called on non-final 'VisualServerScene' that has virtual functions but non-virtual destructor [-Wdelete-non-virtual-dtor]
core/os/memory.h:119:2: warning: destructor called on non-final 'VisualServerViewport' that has virtual functions but non-virtual destructor [-Wdelete-non-virtual-dtor]
```
2018-10-02 13:40:17 +02:00
Rémi Verschelde
7aca38e218
Merge pull request #22354 from evandropoa/resources_list_icon_issue
Fix icon issue for the resource list popup #22320.
2018-10-02 09:30:21 +02:00
Rémi Verschelde
879e4d8312
Merge pull request #22364 from YeldhamDev/rect2_inspector_singleline
Make Rect2 EditorProperty obey the horizontal setting
2018-10-02 09:27:40 +02:00
Rémi Verschelde
62ecb44035 Fix warning about functions defined but not used [-Wunused-function]
Fixes the following GCC 5 warnings:
```
core/io/zip_io.h:128:26: warning: 'zlib_filefunc_def zipio_create_io_from_file(FileAccess**)' defined but not used [-Wunused-function]
core/script_debugger_remote.cpp:110:17: warning: 'ObjectID safe_get_instance_id(const Variant&)' defined but not used [-Wunused-function]
drivers/unix/socket_helpers.h:103:12: warning: 'int _socket_create(IP::Type&, int, int)' defined but not used [-Wunused-function]
drivers/unix/socket_helpers.h:45:15: warning: 'size_t _set_sockaddr(sockaddr_storage*, const IP_Address&, int, IP::Type)' defined but not used [-Wunused-function]
drivers/unix/socket_helpers.h:76:15: warning: 'size_t _set_listen_sockaddr(sockaddr_storage*, int, IP::Type, IP_Address)' defined but not used [-Wunused-function]
editor/editor_fonts.cpp:40:24: warning: 'Ref<BitmapFont> make_font(int, int, int, int, const int*, const Ref<Texture>&)' defined but not used [-Wunused-function]
editor/editor_themes.cpp:85:26: warning: 'Ref<StyleBoxFlat> change_border_color(Ref<StyleBoxFlat>, Color)' defined but not used [-Wunused-function]
editor/import/editor_import_collada.cpp:493:13: warning: 'void _generate_normals(const PoolVector<int>&, const PoolVector<Vector3>&, PoolVector<Vector3>&)' defined but not used [-Wunused-function]
editor/import/editor_import_collada.cpp:524:13: warning: 'void _generate_tangents_and_binormals(const PoolVector<int>&, const PoolVector<Vector3>&, const PoolVector<Vector3>&, const PoolVector<Vector3>&, PoolVector<float>&)' defined but not used [-Wunused-function]
editor/pvrtc_compress.cpp:118:13: warning: 'void _compress_etc(Image*)' defined but not used [-Wunused-function]
modules/etc/image_etc.cpp:89:13: warning: 'void _decompress_etc1(Image*)' defined but not used [-Wunused-function]
modules/etc/image_etc.cpp:93:13: warning: 'void _decompress_etc2(Image*)' defined but not used [-Wunused-function]
modules/gdscript/editor/gdscript_highlighter.cpp:46:13: warning: 'bool _is_whitespace(CharType)' defined but not used [-Wunused-function]
scene/2d/cpu_particles_2d.cpp:510:14: warning: 'float rand_from_seed_m1_p1(uint32_t&)' defined but not used [-Wunused-function]
scene/3d/cpu_particles.cpp:474:14: warning: 'float rand_from_seed_m1_p1(uint32_t&)' defined but not used [-Wunused-function]
scene/resources/default_theme/default_theme.cpp:123:20: warning: 'Ref<Shader> make_shader(const char*, const char*, const char*)' defined but not used [-Wunused-function]
scene/resources/default_theme/default_theme.cpp:130:24: warning: 'Ref<BitmapFont> make_font(int, int, int, int, const int*, const Ref<Texture>&)' defined but not used [-Wunused-function]
```

Had to split `core/io/zip_io.h` into header and .cpp file without 'static' keyword.

Not fixed yet (static definition in header used in some files but not all):
```
modules/websocket/lws_helper.h:111:13: warning: 'void _lws_make_protocols(void*, int (*)(lws*, lws_callback_reasons, void*, void*, size_t), PoolVector<String>, _LWSRef**)' defined but not used [-Wunused-function]
```

Also fixed a couple other warnings missed in previous commits.
2018-09-29 22:26:12 +02:00
Juan Linietsky
f2ed26d71e Reflection probe support in GLES2 back-end. 2018-09-28 16:42:47 -03:00