Commit graph

453 commits

Author SHA1 Message Date
Poommetee Ketson
ed3b080ca6 Fix converting to tileset crashes Godot if existing file is not tileset
also make TileSetEditorPlgn tile list updates the preview modulate
2018-03-23 21:27:30 +07:00
Rémi Verschelde
fd79de01c2
Merge pull request #17706 from Calinou/overhaul-hidpi-settings
Overhaul the display scaling editor settings
2018-03-23 14:12:20 +01:00
Hugo Locurcio
61bf0d10d5
Overhaul the display scaling editor settings
This adds more scaling options, in addition to a custom scaling option
which allows any scale between 0.75 and 3.0 to be used.
2018-03-23 14:04:39 +01:00
Rémi Verschelde
f16652d1a2
Merge pull request #17496 from robfram/fix-f3-change-editor-and-find
Fix pressing `F3` do both changing to script editor AND find next text
2018-03-23 11:28:48 +01:00
Rémi Verschelde
74382dbfbb
Merge pull request #17576 from Mr-Slurpy/master
Allow users to add items to Tool menu
2018-03-23 11:08:03 +01:00
Ivan Vodopiviz
f5147befb6 Prevented external editor from running multiple times
Fixes #16923. I'm not a fan of the special case for scripts in editor_node.cpp, but in any case,
I made it so it wouldn't make the external editor to re-open just because we switched scenes.
2018-03-21 22:23:15 +01:00
robfram
28ab60422d Fix saving unmodified scenes and resources
When `_save_all_scenes` or `save_resource_in_path` was called, they
always saved all the scenes and the resource no matter if they were
modified or not. For example, when `saving before run` option was
checked, it always overwrote the current scene and the default
environment simply by opening and runing the project.

This PR adds checks for unsaved scenes (using the same `unsave` check
others method used) and modified resources (comparing last modified
time and last import time).

Fix #6025.
2018-03-18 11:58:40 +01:00
Mr-Slurpy
9da18f3974 Added tool menu functions in EditorPlugin 2018-03-17 14:41:50 -04:00
robfram
8939f44f6a Fix pressing F3 do both changing to script editor AND find next text
As `KEY_F3` was used both for changing to script editor window and, in
the script editor, for finding the next result in the last search, and
the key event is **not** consumed, the resulting behaviour was similar
to press `F3` twice, first to change to script editor and second to
find the next result of a previous search.

This PR sets the `key_pressed` status of `InputEvent` to `false` if
this event is responsible of an editor change, simulating the
consumption of the event.

Fix #17334
2018-03-16 20:17:42 +01:00
Rémi Verschelde
535205196f
Merge pull request #17013 from Noshyaar/theme
Update icons when theme changed
2018-03-13 13:48:37 +01:00
Rémi Verschelde
401a39f57e
Merge pull request #17116 from poke1024/fix16734
Fix round preview getting square on "run scene" (issue 16734)
2018-03-13 13:33:51 +01:00
Rémi Verschelde
ed1fb87429
Merge pull request #17435 from poke1024/output-error-icon
Show error icon at "Output" in case of errors
2018-03-13 11:22:28 +01:00
Poommetee Ketson
e12e6cacdb EditorNode: fix clicking ok keeps trying to save 2018-03-11 21:33:21 +07:00
Bernhard Liebl
5120690013 Show error icon at "Output" in case of errors 2018-03-11 14:20:32 +01:00
poke1024
899f7b125e Fix round preview getting square on "run scene" (issue 16734) 2018-02-28 20:23:40 +01:00
Poommetee Ketson
2de1dfa42f Update icons when theme changed 2018-02-25 23:04:16 +07:00
Juan Linietsky
7cd867c3fe 2D Skeletons WORK IN PROGRESS 2018-02-21 17:24:00 -03:00
luz.paz
612ab4bbc6 Fix typos with codespell
Found via `codespell -q 3 --skip="./thirdparty,./editor/translations" -I ../godot-word-whitelist.txt`
Whitelist consists of:
```
ang
doubleclick
lod
nd
que
te
unselect
```
2018-02-21 19:46:06 +01:00
Juan Linietsky
9e3a1e5401 Add base support for 2D meshes in Godot, including Sprite -> Mesh2D conversion. 2018-02-21 09:39:09 -03:00
Nathan Warden
4bfb504c2f Added an auto quit and auto build flag to the command line options. 2018-02-19 16:22:55 -05:00
Rémi Verschelde
d71d78b7e7
Merge pull request #15862 from poke1024/esc-close-dock
Make KEY_ESCAPE close all output/debugger docks on bottom
2018-02-14 16:12:38 +01:00
Michael Alexsander Silva Dias
08559a68d2 Small changes to the "Recent Scenes" menu. 2018-02-02 17:18:55 -02:00
Will Nations
80595ba92b Added EditorPlugin 'resource_saved' signal 2018-01-31 09:06:09 -06:00
Juan Linietsky
1322ca6fb2 Ability to import .escn files, which is just a .tscn but with forced import.
This works together with the new Blender to Godot exporter.
2018-01-30 11:04:22 -03:00
Bernhard Liebl
2ae2735a7a Make KEY_ESCAPE close all output/debugger docks on bottom 2018-01-19 09:04:55 +01:00
Rémi Verschelde
9f479f096c Fix typos in code and docs with codespell
Using v1.11.0 from https://github.com/lucasdemarchi/codespell
2018-01-18 22:01:42 +01:00
Juan Linietsky
702e28f265 Properly save the new save safe setting, avoid crash. 2018-01-12 17:18:40 -03:00
Juan Linietsky
e56b3439a5 Attempt renaming multiple times on safe file save, and make the behavior optional. Fixes #14339. 2018-01-12 17:03:52 -03:00
Will Nations
732a877b21 Add EditorPlugin.build() build callbacks 2018-01-08 13:02:47 -06:00
Blazej Floch
9d3eb3d2b0 Fixes #15416 - "The deleted nodes are hanging in the inspector." 2018-01-08 03:12:41 -05:00
Rémi Verschelde
25e942d64f
Merge pull request #15438 from endragor/export-after-import
Perform export after import is fully complete
2018-01-07 14:27:03 +01:00
Juan Linietsky
50b975548d Removed PBM bitmap loader, added abiliy to importi mages as bitmap. Fixes #14828 2018-01-06 16:38:36 -03:00
Juan Linietsky
061db1ca95 Avoid crashing when dependencies on inherited/instanced scenes cant be satisfied, fixes #15298 2018-01-05 19:02:54 -03:00
Rémi Verschelde
e4213e66b2 Add missing copyright headers and fix formatting
Using `misc/scripts/fix_headers.py` on all Godot files.
Some missing header guards were added, and the header inclusion order
was fixed in the Bullet module.
2018-01-05 01:22:23 +01:00
Rémi Verschelde
d65ac7378c Fix crash in OS::execute on FreeBSD
As spotted by @robfram, closes #15288.
Also reviewed other uses of `if (String.find(.*))` for potential similar mistakes, found a wrong (and useless) one in ScriptEditorDialog.
2018-01-04 01:20:20 +01:00
Rémi Verschelde
5cbbf87e60
Merge pull request #15226 from volzhs/copy-resource
Copy resource with specific extension
2018-01-03 11:56:08 +01:00
Rémi Verschelde
b50a9114b1 Update copyright statements to 2018
Happy new year to the wonderful Godot community!
2018-01-01 14:40:47 +01:00
volzhs
4d0097e8ae Copy resource with specific extension
Fix #15169
2018-01-01 02:35:46 +09:00
Ruslan Mustakov
ab12a5cf8e Perform export after import is fully complete
Previously command line export would go simultaneously with reimport,
which caused final package to either miss something or contain
outdated assets or perhaps even broken ones.
2017-12-30 16:39:09 +07:00
Michael Alexsander Silva Dias
68a6edfd1b Fixed right dock dragger not disappearing when there is no docks there. 2017-12-22 17:12:13 -02:00
Rémi Verschelde
03823f12c5 EditorSettings: Move scene tab options to their dedicated category
Fixes #14870.
2017-12-20 19:41:02 +01:00
Juan Linietsky
bf47b15e2c Good while it lasted, restored full 3D for 2D viewport, as required for Canvas BG mode. Fixes #14540 2017-12-19 15:59:32 -03:00
Rémi Verschelde
8f25a2dc11 Cleanup some #if 0'd code 2017-12-17 15:40:24 +01:00
Juan Linietsky
251433847f -Added new scene conversion to binary on export (disabled by default, please test)
-This method works by directly converting text to binary, so the scene does not need to be loaded and saved
2017-12-15 08:39:26 -03:00
Juan Linietsky
93a63a5e1a GDScript files are converted to binary on export now. 2017-12-14 15:34:47 -03:00
Juan Linietsky
f3ad14224e -Add lightmapper
-Fixes to unwrapper (remove degenerates), makes Thekla not crash
-Added optional cancel button in EditorProgress
-Added function to force processing of events (needed for cancel button)
2017-12-14 09:01:27 -03:00
Paulb23
bdde82169d Fixed close current scene closing the wrong scene, issue 13844 2017-12-10 12:48:03 +00:00
Rémi Verschelde
a845411454 Style: Re-apply clang-format over recent invalid additions 2017-12-10 01:27:02 +01:00
Juan Linietsky
209cb3830c Exposed EditorSceneImporter to script. Added APIs to use intermediate converters more easily. 2017-12-07 15:44:20 -03:00
George Marques
cac5aa498f
Merge pull request #14348 from waldson/feature-set-main-screen-plugin-icon
Add method on EditorPlugin to set main screen plugins icons
2017-12-07 13:16:47 -02:00
Juan Linietsky
b38378dd6c Reduce some graphics memory usage by disabling unnecesary modes, closes #12831 2017-12-06 20:49:54 -03:00
Waldson Patrício
c6f28925e2 Add method to set main screen plugin icon 2017-12-06 19:31:25 -03:00
Juan Linietsky
86fcc39fa9 Fix and rewrite folding logic, closes #14005, closes #13421 2017-12-06 19:07:17 -03:00
Juan Linietsky
1587f45c25 Make sure the scene warning of changes may be lost is only for scenes, fixes #13970 2017-12-05 13:26:45 -03:00
Andreas Haas
74969b4535
Merge pull request #13977 from waldson/fix-stop-scene-always-active
Fix stop button always enabled
2017-12-05 07:59:52 +00:00
Waldson Patrício
606401331a Fix stop button always enabled (issue #13933) 2017-12-04 16:48:46 -03:00
Dmitry Koteroff
45c5a865c2 Small fixes to #13233 2017-11-28 16:53:40 +03:00
Rémi Verschelde
f041d2e8ec
Merge pull request #13233 from Krakean/add_eidtorinspector_collapseexpand_v2
Inspector: Implemented a collapse/expand all (v2)
2017-11-26 20:57:59 +01:00
Rémi Verschelde
dc3509b2aa
Merge pull request #13259 from Paulb23/restore_scenes_on_startup_issue_2385
Restore scenes on startup, issue 2385
2017-11-26 20:16:06 +01:00
Rémi Verschelde
ade39f5771
Merge pull request #13298 from YeldhamDev/translation_layout
Fix not being able to select an editor layout created in another language
2017-11-26 19:47:17 +01:00
Michael Alexsander Silva Dias
8987f932d6 Fix not being able to select an editor layout created in another language. 2017-11-26 13:27:48 -02:00
Paulb23
76a53aa328 Restore scenes on startup, issue 2385 2017-11-24 23:32:54 +00:00
Pedro J. Estébanez
3f31925b18 Universalize draw-over API for EditorPlugins
- Now it is usable from both `CanvasItem` and `Spatial` editors.
- `EditorPlugin` API changes:
 - `forward_draw_over_canvas()` becomes `forward_draw_over_viewport()`.
 - `update_canvas()` becomes `update_overlays()`, which now triggers the update of every overlay on top of any 2D or 3D viewports present. Also now it returns the number of such viewports, which is useful whenever you need to know the number of draw-over calls you'll get.
 - New: `[set/is]_force_draw_over_forwarding_enabled()` to force overlaying regardless it handles the current object type, in a similar fashion as `[set/is]_input_event_forwarding_always_enabled`. This kind of overlay is also on top of those for regular handled node types.
 - New: `forward_force_draw_over_canvas()`, which is the callback that gets called for plugins that enable forced overlaying.
2017-11-24 21:24:15 +01:00
Dmitry Koteroff
aa20a84aa9 Implemented a collapse/expand all feature request for Inspector (issue #9427) via popup of "Object properties" button.
Editor Settings->Interface->Editor: added "Expand All Properties" option. Off by default.

Cosmetics fixes due to @Reduz notes.
2017-11-24 14:08:44 +03:00
Rémi Verschelde
c846e49a7d Fix loop of scene tabs updates
It was a regression of f8e8b7d1a2,
thanks to @dragmz for finding it.
2017-11-21 08:46:39 +01:00
Rémi Verschelde
6065b2d177
Merge pull request #11940 from GodotExplorer/debugger
Enhanced debugger for godot 3.0
2017-11-20 22:55:49 +01:00
Poommetee Ketson
82ad05a20e
Merge pull request #13097 from ianb96/scene_tab_crash_fix
Fixes a crash on linux regarding scene tabs
2017-11-20 22:35:24 +07:00
Ian
9f308a5bf3 fix linux crash in _update_scene_tabs 2017-11-20 10:27:56 -05:00
Rémi Verschelde
4784e9506b
Merge pull request #12555 from kosz78/export-pck
Add command line support to export pck or zip
2017-11-20 15:19:06 +01:00
Rémi Verschelde
6d105aba9a
Merge pull request #12983 from ianb96/scene_add_tab
Add Scene button and tab scrolling
2017-11-20 09:11:31 +01:00
Rémi Verschelde
6947bed015 Pass engine name and version parts as proper strings
Removes the need for _MKSTR all over the place which has the drawback of
converting _MKSTR(UNKNOWN_DEFINE) to "UKNOWN_DEFINE" instead of throwing
a compilation error.
2017-11-20 00:51:14 +01:00
Rémi Verschelde
ecf80fbbba
Merge pull request #12988 from akien-mga/xdg-home-paths
Add support for XDG Base Directory spec
2017-11-20 00:42:51 +01:00
Rémi Verschelde
9143df1597
Merge pull request #13059 from dragmz/13009
Fix Regression: running current scene (unsaved) will ask for main scene
2017-11-19 23:50:28 +01:00
Marcin Zawiejski
a14bd70995 Fix Regression: running current scene (unsaved) will ask for main scene 2017-11-19 22:59:05 +01:00
Rémi Verschelde
d2bc961388
Merge pull request #13000 from djrm/pr_import_fixes
import fixes
2017-11-19 21:59:11 +01:00
Rémi Verschelde
6e3f2f44af Use new XDG folders to dehardcode paths 2017-11-19 20:54:26 +01:00
Rémi Verschelde
39a4a67776
Merge pull request #13043 from volzhs/post-import
Restore post_import function
2017-11-19 20:15:46 +01:00
Rémi Verschelde
3c5ce7cd85
Merge pull request #13031 from YeldhamDev/dock_label
Added a label to the Dock Positioner
2017-11-19 18:07:59 +01:00
volzhs
30af5e81db Restore post_import function 2017-11-19 23:45:16 +09:00
Michael Alexsander Silva Dias
fd52555bbe Added a label to the Dock Positioner. 2017-11-19 03:24:55 -02:00
Ian
f8e8b7d1a2 add scene button and tab scrolling 2017-11-18 20:31:51 -05:00
Daniel J. Ramirez
59c2e8906a Improved packed scene previews. 2017-11-17 21:42:14 -06:00
Andreas Haas
3495190497
Editor: Drop files to copy to project. 2017-11-17 21:52:55 +01:00
Rémi Verschelde
ad199c3964 EditorSettings: Rename settings_path to settings_dir
Also to prepare for upcoming refactoring for XDG support.
2017-11-17 20:55:09 +01:00
geequlim
c655fc7cd8 Better supported for remote object editing with the inspector with a simple dictionary editor implement 2017-11-17 09:20:33 +08:00
George Marques
b96ee28acd
Add a print handler for the editor output panel 2017-11-16 21:57:02 -02:00
Chaosus
acc45ccf41 Fix current scene run when scene saved 2017-11-16 21:47:10 +03:00
Juan Linietsky
04edfc090b Finalized ability to convert from CanvasItem/Spatial/Particles materials to ShaderMaterial, closes #10242 2017-11-14 15:45:30 -03:00
Daniel J. Ramirez
2932cc79ee Update meshes when reimporting,
Save scene preview even when not doing save and play.
2017-11-12 13:41:44 -06:00
Daniel J. Ramirez
592ee82010 Fixed theme update and some widgets. 2017-11-11 11:58:30 -06:00
Daniel J. Ramirez
8cf0d6ceb4 Some fixes and improvements.
Changed FileDialogs for EditorFileDialogs in EditorNode.
Updated CheckButton.
2017-11-10 16:45:08 -06:00
Rémi Verschelde
9a4a59ce13
Merge pull request #12796 from djrm/pr_some_virtual_classes
Expose some editor singletons as virtual
2017-11-10 10:07:02 +01:00
Rémi Verschelde
346b4b5a1c
Merge pull request #12390 from MillionOstrich/filesystem-folder-drag
Improved file/folder drag preview for filesystem dock
2017-11-10 09:57:23 +01:00
Daniel J. Ramirez
31147ea3ed Expose some editor singletons as virtual 2017-11-09 22:25:10 -06:00
Caleb Richardson
a607e6125e Fix crash when converting empty scene to TileSet
Closes #12708.
Cherry-picked from #12732.
2017-11-09 18:39:29 +01:00
MillionOstrich
f6ca9d34a2 Improve file/folder drag preview on filesystem dock
Added icons for files/folders in drag preview
Fixed folders getting an empty string label
Don't show "1 more file(s)" label instead of the file
Added "more folders" case if moving folders exclusively
Merged drag_files and drag_files_and_dirs to reduce code duplication
Simplified get_drag_data_fw and removed commented out code
2017-11-03 21:39:53 +00:00
Konstantin Zaitsev
56b25b5fc8 Add command line support to export pck or zip 2017-11-01 14:39:20 +07:00
volzhs
59cc6f2ff5 Fix warning message format for addon plugin 2017-10-24 05:31:26 +09:00
Rémi Verschelde
b7bebb0f92 Merge pull request #12254 from seixasfelipe/fix_recent_scenes_resizing_font
Fix recent scenes layout when resizing font
2017-10-21 23:41:33 +02:00
Rémi Verschelde
6361e24f29 Cleanup unnecessary debug prints 2017-10-21 20:41:07 +02:00
Felipe Seixas
651246cbff Fix drop-down size when resizing font #12207
Fixes Scene > Open Recent
Fixes ScriptEditor > File > Open Recent
2017-10-21 11:53:53 -04:00
Rémi Verschelde
7969565de7 Merge pull request #12052 from hi-ogawa/particle-material-conversion-plugin
Create ParticlesMaterialConversionPlugin
2017-10-20 23:54:56 +02:00
Rémi Verschelde
84251d7aec Merge pull request #12195 from groud/fix_snapping
Fix snapping with 2D nodes

[ci skip]
2017-10-20 12:42:35 +02:00
Indah Sylvia
cf8537ad37 Adjusted editable_warning for "This resource was imported...." alert:
- fixed a typo from it's to its
- added 'then' to make it clearer
2017-10-20 09:47:29 +07:00
Gilles Roudiere
fc02605b49 Fixes snapping and replaces the _draw_canvas by forward_canvas_draw 2017-10-18 00:01:59 +02:00
vonzimr
b7b13d010b Add an option to clear recent scenes in the 'Open Recent' submenu 2017-10-12 10:59:57 -07:00
Hiroshi Ogawa
d777681882 Create ParticlesMaterialConversionPlugin and format generated shader code 2017-10-12 21:30:19 +09:00
Rémi Verschelde
490722c34f Merge pull request #11875 from endragor/fix-export-loop
Fix command-line export looping infinitely
2017-10-11 22:21:52 +02:00
Rémi Verschelde
2e0c7bb22a Merge pull request #11718 from poke1024/retina
Fixes some retina problems on multi monitor setups
2017-10-09 11:04:46 +02:00
Ruslan Mustakov
0cd9993ed5 Fix command-line export looping infinitely
EditorProgress calls Main::iteration which calls MessageQueue::flush
which may result in _fs_changed being called again. This fixes the loop
Godot enters in such case.

Fixes #11189
2017-10-06 12:30:54 +07:00
Juan Linietsky
3d87b70f7a Added the set/get_setting function in Editor/Project settings. Renamed has() to has_setting. Fixes #11844 2017-10-05 15:34:34 -03:00
Bernhard Liebl
a7f18798aa fixes several scaling problems on multi monitor retina/non-retina setups on OS X 2017-10-05 08:12:17 +02:00
Gilles Roudiere
6af38d119e Merge pull request #11399 from toger5/bottom_panel_debugger
Bottom panel debugger
2017-10-01 21:30:43 +02:00
Gilles Roudiere
e6dfce6b52 Merge pull request #11704 from Hinsbart/move_interface_properties
EditorSettings: Move interface/ properties to interface/editor
2017-09-30 12:38:59 +02:00
Juan Linietsky
f494470005 Restored ability to import OBJ files as meshes directly. Finally closes #9445. 2017-09-29 20:38:27 -03:00
Andreas Haas
20eb17a685
EditorSettings: Move interface/ properties to interface/editor
Fixes inconsistent behaviour where clicking on the "Interface"
in the Editor Settings wouldn't collapse the category as is the
case for all the other categories.
2017-09-29 18:52:56 +02:00
toger5
e8c620abac fixed bottom panel debugger exception
- make it work in combination with the border for tabs
 - fixed updating when changing theme
2017-09-28 16:52:34 +02:00
Gilles Roudiere
6f185cc9f7 Remove unecessary anchors&margins set causing bad display (sons of containers) 2017-09-27 00:38:28 +02:00
Daniel J. Ramirez
b622c92fad Removed most of the custom colors from the interface. 2017-09-25 21:43:20 -05:00
Rémi Verschelde
f577efd47e Merge pull request #11424 from groud/control_node_presets
Implements set_margins_preset(...)
2017-09-26 00:11:46 +02:00
Juan Linietsky
3237e05c36 Ability to convert from SpatialMaterial to ShaderMaterial 2017-09-22 09:20:52 -03:00
Gilles Roudiere
05bb8e0c10 Remove set_area_as_parent_rect and replace it by set_anchors_and_margins_preset(PRESET_WIDE) 2017-09-22 11:39:44 +02:00
volzhs
cd81ef4d38 Show button name always in main toolbar 2017-09-20 16:03:52 +09:00
Daniel J. Ramirez
4d14097439 Fixed metrics. 2017-09-17 18:58:36 -05:00
Rémi Verschelde
bc005a57d3 Merge pull request #11220 from toger5/bottom_panel_debugger_tabs_fix
made tabs visible in debugger fixes: #11212
2017-09-17 23:06:38 +02:00
Rémi Verschelde
c74bab66aa Merge pull request #11274 from Rubonnek/keep-argument-names-consistent
Renamed function arguments to keep them consistent between declaration and implementation
2017-09-17 12:53:48 +02:00
Rémi Verschelde
a29559bc0e Merge pull request #11075 from ISylvox/fix-main-scene-state
Fixes Tab Switching of Main Scene State. Closes #11045
2017-09-17 12:43:01 +02:00
Rémi Verschelde
c24ca2c7a8 Merge pull request #10900 from toger5/theme_tab_border
Added border for tabs + container.
2017-09-17 12:41:36 +02:00
toger5
10c400c456 Added border for tabs + container.
- moved tabConetent position to be more reasonable.
 - fixed drawing order to allow those kind of styles.
2017-09-15 00:50:34 +02:00
Juan Linietsky
d3c1f2a7f6 Re-Added export plugins with a more interesting API, as well as the ability to do path remapping.
Also added ability to tell the exporter that a shared object needs to be bundled in the build.
2017-09-14 19:41:14 -03:00
toger5
b37e869c89 fixed double border for debugger tab panel 2017-09-15 00:29:31 +02:00
Wilson E. Alvarez
072e379ffe Renamed function arguments to keep them consistent between declaration and implementation 2017-09-14 13:49:15 -04:00
Indah Sylvia
3aa7ea3bfc Fixed typo in editor_node.cpp: 'my' to 'may' 2017-09-14 21:30:16 +07:00
Juan Linietsky
7e3c5043c1 Warn the user that changes to resources will be lost when editing imported or instanced resources from scenes. 2017-09-14 10:39:47 -03:00
Indah Sylvia
9e204658ff Fixed Tab Switching of Main Scene State. Closes #11045 2017-09-14 12:53:57 +07:00
Rémi Verschelde
27ae3c839d Merge pull request #7908 from SaracenOne/recast
In-editor navmesh generation.
2017-09-13 19:22:29 +02:00
toger5
4ccf3bb2ed made tabs visible in debugger fixes: #11212
- the stylebox is changed so the top part is transparent when the
   debugger is selected
2017-09-13 02:37:33 +02:00
Daniel J. Ramirez
15904d66b4 Fixed file system dialog icons 2017-09-12 14:32:04 -05:00
Daniel J. Ramirez
1e8048dd45 Improved theme generation, and other fixes 2017-09-12 13:16:38 -05:00
Hein-Pieter van Braam
b2a38854fd Fix unused variable warnings
The forth in my quest to make Godot 3.x compile with -Werror on GCC7
2017-09-08 15:03:53 +02:00
Rémi Verschelde
431de234e4 Merge pull request #10899 from toger5/theme_fixes_from_light
Theme fixes from light
2017-09-04 23:14:18 +02:00
Juan Linietsky
334a81844e Improve guessing of what editor to switch to, fixes #10405 2017-09-04 18:00:52 -03:00
Saracen
92e77d5ff2 Recast integration. 2017-09-04 21:41:57 +01:00
toger5
45d57ccf28 fixed hover line for menu button 2017-09-04 18:06:13 +02:00
Ignacio Etcheverry
52a7be4eef Fixes language overridden external editors 2017-09-03 21:23:36 +02:00
Wilson E. Alvarez
2a2c4230c6 Removed empty segment 2017-09-02 10:19:43 -04:00
Poommetee Ketson
69ccae3d99 Fix typo 'begining' to 'beginning' 2017-09-01 22:54:57 +07:00
Juan Linietsky
d39e79e7ec Fix issues regarding reload of resources in imported scenes. Closes #10017 2017-08-31 18:57:44 -03:00
Rémi Verschelde
f00760b22c Merge pull request #10382 from toger5/dark_icons
Light Theme
2017-08-31 11:47:18 +02:00
toger5
7793bfc544 added icon updating to most ui elements 2017-08-30 21:47:09 +02:00
Hein-Pieter van Braam
89fbc5482d Fix a crash when an early dialog tries to appear
This changes the order of creating some of the dialogs that may appear
during project import/startup. It is possible for the 'accept' dialog to
be required before it is initialized.

This moves all of these dialogs to earlier in the constructor so this
can't happen.
2017-08-30 13:59:48 +02:00
Juan Linietsky
6d41ceea99 Merge pull request #10771 from neikeq/pr-improve-build-callbacks
Improve build callbacks
2017-08-29 20:12:04 -03:00
Ignacio Etcheverry
c18b7046c6 Improve build callbacks
- Build callbacks now return bool to determine if the build was successful. If the build fails, the editor won't run the game.
- Makes sure build callbacks are called after saving the scene ("Save Before Running" option).
2017-08-29 23:59:26 +02:00
Rémi Verschelde
28c85922b1 Merge pull request #10716 from Noshyaar/pr-update
Change editor update_mode to boolean (update_always)
2017-08-29 07:47:34 +02:00
Rémi Verschelde
61acc0762c Merge pull request #10704 from Noshyaar/pr-scene
EditorNode: enhance open scene error dialog
2017-08-29 07:47:04 +02:00
Poommetee Ketson
f620e19be7 Change editor update_mode to boolean
Fix potential issues when MenuOptions enum or the entry in
project metadata file is altered.
2017-08-29 07:50:41 +07:00
Poommetee Ketson
d25ea73822 EditorNode: fix scene save over others 2017-08-29 07:27:18 +07:00
Poommetee Ketson
6bb290f6a7 EditorNode: enhance open scene error dialog 2017-08-29 07:09:47 +07:00
Juan Linietsky
d23f323cde -Moved script run to editor, removed from project
-fixed to code completion
-fix shader crash bug reported by tagcup
2017-08-27 19:04:19 -03:00
Rémi Verschelde
7ad14e7a3e Dead code tells no tales 2017-08-27 22:13:45 +02:00
Rémi Verschelde
bd282ff43f Use HTTPS URL for Godot's website in the headers 2017-08-27 14:16:55 +02:00
Rémi Verschelde
5976e8d7de Merge pull request #10625 from Rubonnek/fixed-leaks
Fixed several memory leaks
2017-08-27 02:10:32 +02:00
Andreas Haas
b2ec9e108d
Save update mode in project metadata. 2017-08-26 20:43:28 +02:00
Rémi Verschelde
565600e844 Cleanup tons of obsolete commented out code
Mostly in EditorNode, dropping some obsolete editor plugins and also a
cleanup of ProjectSettings/EditorSettings.
2017-08-26 17:47:57 +02:00
Juan Linietsky
dd7145b778 -Split EditorPlugin into EditorPlugin and EditorInterface
-Added EditorInterface to EditorScript
-Added functions to save the scene to EditorInterface
2017-08-26 10:33:07 -03:00
Andreas Haas
6134d8741d Editor: Add some more translatable strings. 2017-08-25 18:49:45 +02:00
Wilson E. Alvarez
1577f41653 Fixed several memory leaks 2017-08-25 08:47:05 -04:00
Hein-Pieter van Braam
cacced7e50 Convert Object::cast_to() to the static version
Currently we rely on some undefined behavior when Object->cast_to() gets
called with a Null pointer. This used to work fine with GCC < 6 but
newer versions of GCC remove all codepaths in which the this pointer is
Null. However, the non-static cast_to() was supposed to be null safe.

This patch makes cast_to() Null safe and removes the now redundant Null
checks where they existed.

It is explained in this article: https://www.viva64.com/en/b/0226/
2017-08-24 23:08:24 +02:00
Rémi Verschelde
e9c43cecbf Merge pull request #10433 from djrm/pr_svg_support
SVG support
2017-08-21 23:49:07 +02:00
Rémi Verschelde
93f1fb1c2f Fixes for new two-dash long command line arguments
- Fixes some single-dash leftovers that were missed in the previous commit
- Reorder the help output for clarity, and document missing options
- Drop obsolete options: --noop, --pack, --editor-scene, --level, --import, --import-script, --no-quit
- Improve error message on malformed arguments and do not display help on error
- Always use long form of arguments when starting a new Godot process from C++, for clarity and easy grepping
- Cleanup obsolete code here and there
2017-08-21 08:09:22 +02:00
Hugo Locurcio
1d757c43d7 Tweak command-line arguments to make them more UNIX-like
Also improves the command-line help text readability.
2017-08-21 08:08:35 +02:00
Daniel J. Ramirez
0c18009665 Added missing icon and svgs upscaling 2017-08-20 13:53:09 -05:00
Daniel J. Ramirez
c873661c30 Added pure vector theme, with dark icons variation 2017-08-20 13:53:09 -05:00
Juan Linietsky
541fdffc0a Merge pull request #10319 from neikeq/pr-engine-editor-hint
Adds Engine::is_editor_hint() method
2017-08-20 12:55:46 -03:00
Juan Linietsky
b9dcebb37c Revert "Second take at making command-line arguments more UNIX-like + main.cpp and help cleanup" 2017-08-19 17:47:27 -03:00
Rémi Verschelde
70b0857f6c Fixes for new two-dash long command line arguments
- Fixes some single-dash leftovers that were missed in the previous commit
- Reorder the help output for clarity, and document missing options
- Drop obsolete options: --noop, --pack, --editor-scene, --level, --import, --import-script, --no-quit
- Improve error message on malformed arguments and do not display help on error
- Cleanup obsolete code here and there
2017-08-19 16:48:11 +02:00
Hugo Locurcio
27fc96f3c8 Tweak command-line arguments to make them more UNIX-like
Also improves the command-line help text readability.
2017-08-19 16:48:11 +02:00
Rémi Verschelde
c57671f0b3 Merge pull request #10435 from endragor/export-quit
Quit after command-line export
2017-08-19 10:36:03 +02:00
Ruslan Mustakov
02670a3806 Quit after command-line export 2017-08-19 11:59:00 +07:00
Ignacio Etcheverry
90b8a5b71e Removes editor_hint from SceneTree 2017-08-19 01:29:45 +02:00
Ignacio Etcheverry
fd69604bd9 Adds editor_hint to Engine class 2017-08-19 01:03:12 +02:00
Juan Linietsky
fc89cf90b2 Inspector re-edits edited object when dock moves, closes #9287 2017-08-18 19:51:17 -03:00
Rémi Verschelde
b1ecaaa22b Merge pull request #10307 from Rubonnek/update-argument-names
Updated function argument names
2017-08-16 17:17:56 +02:00
Pedro J. Estébanez
8faf04928e Rename layouts file to editor_layouts-3.cfg
To avoid conflicts with 2.x, in the same fashion as editor_settings-3.tres.
2017-08-16 03:42:09 +02:00
kubecz3k
aa24ddc59f Merge pull request #10337 from endragor/command-line-export
Enable command-line export
2017-08-15 22:46:20 +02:00
Juan Linietsky
a4f9c95169 Small fix for problem of nodes losing type, this is not good enough to solve a core reimport problem, but so far fixes #8116 2017-08-15 16:28:34 -03:00
Andreas Haas
aaedde4122
Fix Editor dimming.
Fixes #10353
2017-08-15 20:57:30 +02:00
Juan Linietsky
cb0e357d0b Converting to MeshLibrary works again, fixes #8092 2017-08-15 11:41:17 -03:00
Ruslan Mustakov
ad457976fc Enable command-line export
The syntax is identical to what it was in 2.1, but now you specify
preset name instead of platform name.
2017-08-14 20:15:06 +07:00
Wilson E. Alvarez
428f03cf06 Updated function argument names 2017-08-12 15:12:49 -04:00
Indah Sylvia
5ae78fdf6a Makes all Godot API's methods Lower Case 2017-08-07 18:24:35 +07:00
Juan Linietsky
5c361485db -Added GLTF scene support (still missing animations and .glb extension)
-Fixed bugs regarding tangent generation in SurfaceTool
2017-08-02 15:43:49 -03:00
Juan Linietsky
6760783b94 Revert "Tweak command-line arguments to make them more UNIX-like" 2017-08-02 15:39:04 -03:00
Hugo Locurcio
b9a7997945 Tweak command-line arguments to make them more UNIX-like
Also improves the command-line help text readability.
2017-08-02 09:33:40 +02:00
Poommetee Ketson
dd6cb0b404 Fix !save_each_scene saving scenes with no filename
When save_each_scene is false, only scenes that have been saved at
least once are saved. But EditorNode tries to save scenes with no
filename too (they're never saved), so it crashes.
2017-07-26 18:57:34 +07:00
Poommetee Ketson
24329155eb EditorNode: fix missing distraction-free tooltip 2017-07-24 13:07:53 +07:00
Juan Linietsky
66009706c9 -Ability to set default import presets for type
-More presets for scene importer
-Option in scene importer to export root nodes as separate scenes
-Fixed MeshInstance preview
2017-07-23 18:50:25 -03:00
Poommetee Ketson
a572eb6453 Suppress get_edited_scene_root error 2017-07-23 22:11:34 +07:00
Rémi Verschelde
21497bd501 Merge pull request #9790 from Noshyaar/pr-req
EditorNode: request_attn when behind other windows
2017-07-23 13:15:52 +02:00
Poommetee Ketson
7b1e15b88c EditorNode: request_attn when behind other windows
The current version requests attention only when minimized
which might not work as expected when it's not minimized
but doesn't have focus.
2017-07-23 14:36:38 +07:00