Commit Graph

1058 Commits

Author SHA1 Message Date
Rémi Verschelde 3941e01a57 Merge pull request #11041 from hpvb/fix-clang-format-error
Fix serveral recent new clang-format errors

[ci skip]
2017-09-12 11:16:36 +02:00
Mihaly Csonka 1a7c43e1a1 Fixed clearing of an export preset's name when deleting the one above it.
Deleting an export preset cleared the name of the item below it. This was
caused by ProjectExportDialog::_edit_preset(-1) which sets the deleted preset's
data to empty values. This on its turn called
ProjectExportDialog::_name_changed() which operates on the new current preset
(the one under the deleted item).

Fixes issue #10842
2017-09-12 04:30:47 +02:00
Poommetee Ketson d0a6ac0c1d Merge pull request #11138 from NathanWarden/change_cancel_to_done
Changed the text from "Cancel" to "Done" in the "Fix Dependencies" dialog.
2017-09-12 05:27:25 +07:00
Poommetee Ketson 8e82bf42a8 Merge pull request #11163 from marcelofg55/project_grayed
Not found projects are grayed instead of removed at the Project Manager
2017-09-12 04:23:33 +07:00
toger5 226f2ae2f2 fix always updating +removed print +use EDITOR_DEF 2017-09-11 22:54:49 +02:00
Bojidar Marinov ebee9898ca
Fix duplication of nodes resulting in shared metadata
Fixes #9547
2017-09-11 12:34:36 +03:00
SaracenOne f95edd3be9 Allow animations to be saved to external files during scene import. 2017-09-11 06:59:03 +01:00
Marcelo Fernandez dcdcf358db Not found projects are grayed instead of removed at the Project Manager 2017-09-11 02:01:20 -03:00
Hein-Pieter van Braam 390a2025fe Don't set editor_hint true for project manager
Due to this setting several callbacks get initialized but never used.
For instance void discoverer_callback(). This callback only initializes
the GDNativeSingletonDiscover *discoverer when called. This doesn't
happen in project manager and this in turn causes a call to
memdelete(NULL) which is invalid. This also seems to speed up startup a
little.

This fixes #11043 and fixes #10992
2017-09-10 23:59:22 +02:00
Nathan Warden db3776e1fd Changed the text from "Cancel" to "Done" in the "Fix Dependencies" dialog. 2017-09-09 22:00:57 -05:00
toger5 e835d80a3f update icons for animation_player_plugin (top bar) 2017-09-09 04:19:43 +02:00
toger5 a6e03b4aed update for icons on theme change animation editor 2017-09-09 03:47:58 +02:00
toger5 f604cff8a7 removed hardcoded colors in animation editor 2017-09-09 03:32:06 +02:00
Daniel J. Ramirez f8dad1e61b Better looking spatial editor grid 2017-09-08 18:49:30 -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
Hein-Pieter van Braam 8230bf0a2f Remove assignment and declarations in if statements
After discussing with @reduz and @akien-mga it was decided that we do
not allow assignments or declarations in if statements. This PR removes
the instances of this I could find by automated means.
2017-09-08 14:59:15 +02:00
Hein-Pieter van Braam 67a706fc1b Fix various assorted warnings
Fix various warnings that don't have enough instances to merit
individual commits. Also fixes a potential bug in audio_server.cpp.
2017-09-08 14:57:48 +02:00
Hein-Pieter van Braam 5e18967d77 Fix serveral recent new clang-format errors 2017-09-08 00:20:16 +02:00
Daniel J. Ramirez c0a971468e Added some missing icons 2017-09-07 13:22:41 -05:00
Juan Linietsky 1eeda0f32f Restored auto snapping of controls to pixels, fixes #10847 and probably several more issues. Made it optional in the project settings but defaults to true. 2017-09-07 11:22:07 -03:00
toger5 b1f804094d Modify inertia implementation for freelook and orbit
- freelook now uses position based inertia (holding a key for a
   specific time always rults in the same distance traveled independent
of inertia setting)
 - orbit inertia now is angle bases. (not transformation based) ->
   camera always takes the same path.
 - added setting for orbit inertia
 - added setting hints for freelook settings.
2017-09-07 15:55:58 +02:00
toger5 44f12be3f4 Revert "Removed camera interpolation in orthogonal mode (I have no idea how to fix this due to how orthogonal works), closes #10718"
This reverts commit 895140389a.
2017-09-07 15:55:58 +02:00
Juan Linietsky 895140389a Removed camera interpolation in orthogonal mode (I have no idea how to fix this due to how orthogonal works), closes #10718 2017-09-07 09:58:38 -03:00
Marcelo Fernandez ff285bcee2 Added an option to reset the bus volume to 0db 2017-09-06 21:11:31 -03:00
Nabor Erices 1c8cc1ab50 Added support to rename projects on manager 2017-09-06 21:10:30 -03:00
volzhs 41cc85fb20 Fit script editor grid with others 2017-09-07 06:25:57 +09:00
Juan Linietsky c771e03ee2 -Fixed changes to default input actions not working, closes #10502
-Added Array.duplicate() method, needed to fix above
2017-09-06 18:14:04 -03:00
Paulo Gomes 9b72f08042 second take at autocomplete logic, using a TextOperation check. 2017-09-06 19:23:09 +01:00
Rémi Verschelde 0b8fa1e010 Remove dead ButtonGroup code 2017-09-06 14:41:34 +02:00
Juan Linietsky f5c5d07f9c Added a warning for when a PC compression is not found for the project, closes #10626 2017-09-05 20:17:26 -03:00
David Saltares 0549484c77 Renames _add_child_below_node() to add_child_below_node(). Closes #9988. 2017-09-05 22:43:28 +01:00
MillionOstrich 672a6c9680 Fix icons for custom types in the recent & favorites lists in the create dialog. 2017-09-05 14:39:44 +01:00
toger5 18917ad1d6 fixed log colors 2017-09-05 01:10:04 +02:00
Paulo Gomes af40c8698b Smarter toggle comment block. issue #10720
Added check to see if all lines in selection are commented (is_commented)
If so remove the comment from each line else add a comment.
If the line is empty, with trailing spaces or tabs, remove those.
This will add an extra comment character to the lines that are already commented,
so when you uncomment a block it retains the previous commented lines.

Following Zylann logic, if the selected lines are all commented out,
it removes one # from each. Otherwise, it adds one.
It works how it is, but i would like some feedback on how to implement this.
2017-09-05 00:04:08 +01:00
Rémi Verschelde 4405de570d Merge pull request #10874 from Noshyaar/pr-action
ProjectSettings: enhance add action error, fix confirm dialog
2017-09-04 23:30:45 +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
Rémi Verschelde c9593a285b Merge pull request #10902 from toger5/rtl_copy_and_selection_color
fixed copy on osx + help selection color
2017-09-04 23:11:12 +02:00
Rémi Verschelde 7f262e484a Merge pull request #10907 from SaracenOne/spatial_edit_drag
Added support for drag and drop in spatial editor.
2017-09-04 23:05:31 +02:00
Juan Linietsky 334a81844e Improve guessing of what editor to switch to, fixes #10405 2017-09-04 18:00:52 -03:00
Rémi Verschelde bba365fab7 Merge pull request #10931 from djrm/pr_style_fixes
Improved color temperature in script editor
2017-09-04 22:50:54 +02:00
Rémi Verschelde 729cfa39e2 Merge pull request #10941 from Noshyaar/pr-cursor
2DEditor: enhance viewport cursor shape
2017-09-04 22:46:20 +02:00
Saracen 92e77d5ff2 Recast integration. 2017-09-04 21:41:57 +01:00
toger5 07d5911c40 fixed copy on osx + help selection color 2017-09-04 18:57:52 +02:00
toger5 2083263e4f changed tree font color to be more saturated 2017-09-04 18:06:41 +02:00
toger5 45d57ccf28 fixed hover line for menu button 2017-09-04 18:06:13 +02:00
toger5 e85f025771 Fixed theme (chagnes introduced in light theme)
- adapted contrast color intensity (to make buttons less bright)
 - added missing border for lineEdit
 - removed unnecassary code for option button
2017-09-04 18:06:13 +02:00
Poommetee Ketson 391399dcd0 EditorAbout: fix names being selectable 2017-09-04 20:07:33 +07:00
Juan Linietsky 6d233c651b -Changed KinematicBody API yet again to make it friendlier
-Fixed get_scale functions (and added set_scale) to make it more coherent when decomposing and composing (fixes bugs in transform interpolation)
2017-09-04 07:49:42 -03:00
Poommetee Ketson 3d13b9ff5f ProjectSettings: enhance add action error, fix confirm dialog
- Disable add action button if name is invalid
- Fix dialog being ConfirmationDialog instead of AcceptDialog
2017-09-04 14:00:53 +07:00
Rémi Verschelde b5d2d0a9a5 Merge pull request #10939 from neikeq/fix-overridden-external-editors
Fixes language overridden external editors
2017-09-04 08:12:29 +02:00
Rémi Verschelde 0f5e575d60 Merge pull request #10933 from Noshyaar/pr-donor
EditorAbout: add donors tab
2017-09-04 08:11:26 +02:00
Rémi Verschelde df11de72c9 Merge pull request #10932 from djrm/pr_fix_metrics
Fixed some metrics (some issues caused by the new Noto Sans font).
2017-09-04 08:10:04 +02:00
Rémi Verschelde 8ebe6d8370 Merge pull request #10925 from scayze/search_binding
Searchable Key-Bindings in editor
2017-09-04 08:08:32 +02:00
Rémi Verschelde 08dde55e4f Merge pull request #10920 from Paulb23/smooth_scrolling_shader_editor
Enabled smooth scrolling for shader editor
2017-09-04 08:07:41 +02:00
Rémi Verschelde fb263b73aa Merge pull request #10901 from toger5/script_background_cleanup
StyleBoxSupport for RichTextLabel and cleanup for script+docs backgrounds fixes #10685
2017-09-04 08:05:17 +02:00
Rémi Verschelde ec8f44ed5f Merge pull request #10895 from Paulb23/fix_delete_animation_frames
Fixed delete animation frames in AnimatedSprite, issue 10788
2017-09-04 08:00:21 +02:00
Rémi Verschelde 7149be5b89 Merge pull request #10892 from kubecz3k/quick_open
Improve 'quick open' search time
2017-09-04 07:59:28 +02:00
Poommetee Ketson fd68c3b68f 2DEditor: enhance viewport cursor shape 2017-09-04 11:36:12 +07:00
Ignacio Etcheverry 52a7be4eef Fixes language overridden external editors 2017-09-03 21:23:36 +02:00
Juan Linietsky adde89e8b1 -Added an optimization so physics shapes are configured later, speeds up grid map loading and editing 2017-09-03 14:54:15 -03:00
Poommetee Ketson 345dfd4504 EditorAbout: add donors tab 2017-09-04 00:39:57 +07:00
Scayze 45b6121f6a Searchable Key-Bindings in editor 2017-09-03 17:08:36 +02:00
Juan Linietsky 281fb4e4fb Added transmission shader parameter. 2017-09-03 10:30:37 -03:00
Paulb23 a3c5e84f59 Enabled smooth scrolling for shader editor 2017-09-03 13:32:52 +01:00
Daniel J. Ramirez 215b110cd3 Improved color temperature in script editor 2017-09-03 02:44:59 -05:00
Daniel J. Ramirez e298f931a6 Fixed some metrics (some issues caused by the new Noto Sans font).
plus other minor fixes
2017-09-03 01:49:31 -05:00
SaracenOne d3cb8d12ff Added support for drag and drop in spatial editor. 2017-09-03 05:00:23 +01:00
Juan Linietsky ce28452109 -Fixed EditorDirDialog, which was really old and needed to use EditorFileSystem
-Fixed refactoring tools to work with imported scenes (properly move .import files)
2017-09-03 00:24:36 -03:00
Ignacio Etcheverry 6550929830 DocData: Include enum attributes in return nodes 2017-09-02 21:52:45 +02:00
Paulb23 00ccaa5559 Fixed delete animation frames in AnimatedSprite, issue 10788 2017-09-02 17:35:42 +01:00
toger5 b606285219 Unified script panel backgrounds.
- simplefied it with using the new rtl.
 - removed ("ScriptPanel", "EditorStyles") for since rtl now can be used
 - unified backgrounds when script editor color is set to transparent => option to set background color adapt to theme is deprecated.
2017-09-02 18:28:35 +02:00
Rémi Verschelde 0b747c2910 Merge pull request #10889 from Rubonnek/remove-empty-separator
Removed empty segment

[ci skip]
2017-09-02 16:46:13 +02:00
Wilson E. Alvarez 2a2c4230c6 Removed empty segment 2017-09-02 10:19:43 -04:00
Poommetee Ketson 459f526119 Fix typos 'a' and 'an' 2017-09-02 21:19:06 +07:00
Jakub Grzesik 0ecdd9653f Improve 'quick open' search time 2017-09-02 16:17:59 +02:00
Rémi Verschelde 437fb12e1a Merge pull request #10877 from hpvb/fix-unitialized-variables
Fix use of unitialized variables
2017-09-02 10:40:12 +02:00
toger5 7cb76cd628 Revert "added setting to override the theme background with editor theme color"
This reverts commit ce4eb30778.
2017-09-02 03:55:23 +02:00
Juan Linietsky ded74dedef Fixed missing return value in glTF2.0 importer camera, closes #10130 2017-09-01 22:36:49 -03:00
Hein-Pieter van Braam 9c63ab99f0 Fix use of unitialized variables
The second in my quest to make Godot 3.x compile with -Werror on GCC7
2017-09-02 01:59:26 +02:00
Rémi Verschelde dac150108a Merge pull request #10846 from hpvb/fix-sign-compare
Fix signed and unsigned comparisons
2017-09-01 21:52:55 +02:00
Rémi Verschelde 5a69a663c7 Merge pull request #10864 from Noshyaar/pr-beginning
Fix typo 'begining' to 'beginning'

[ci skip]
2017-09-01 21:29:40 +02:00
Juan Linietsky 5f8df8bc11 Fix detectin of existing file being a dir in new script creation, closes #9958 2017-09-01 14:25:01 -03:00
Juan Linietsky 8f30c52a37 Removed ontop property, added a material rendering priority system. Fixes #9935, closes #10135 2017-09-01 13:01:08 -03:00
Poommetee Ketson 69ccae3d99 Fix typo 'begining' to 'beginning' 2017-09-01 22:54:57 +07:00
Poommetee Ketson ed606ded52 Fix files header 2017-09-01 21:07:55 +07:00
Rémi Verschelde bf5b02cb71 Merge pull request #10832 from Paulb23/auto_indent_setting
Added setting to toggle auto indent.
2017-09-01 08:14:47 +02:00
Rémi Verschelde 4536c608f2 Merge pull request #10821 from rtroncoso/fix-import-defaults
Fix import dock "Set as default" actions
2017-09-01 08:14:28 +02:00
Hein-Pieter van Braam f9467ec1ea Fix signed and unsigned comparisons
The first in my quest to make Godot 3.x compile with -Werror on GCC7
2017-09-01 08:13:12 +02:00
Rémi Verschelde 51ae90d789 Merge pull request #10841 from djrm/pr_update_builtin_types
Updated Editor Built-In types.
2017-09-01 08:08:42 +02:00
Rémi Verschelde 25bfd49792 Merge pull request #10840 from rtroncoso/fix-reimporter-defaults-load
Fix importer not applying default settings
2017-09-01 08:05:41 +02:00
Daniel J. Ramirez f1214041c6 Updated Editor Built-In types. 2017-08-31 21:15:30 -05:00
Rodrigo Troncoso cdc6b41663 Fix importer not applying saved default settings on load 2017-08-31 20:19:57 -03:00
Juan Linietsky d39e79e7ec Fix issues regarding reload of resources in imported scenes. Closes #10017 2017-08-31 18:57:44 -03:00
Paulb23 d586b98a20 Added setting to toggle auto indent 2017-08-31 19:42:47 +01:00
Rémi Verschelde 4722593448 Merge pull request #10816 from toger5/style_box_texture_set_fill
unified draw_center naming for (9patch,StyleBoxes)
2017-08-31 19:16:07 +02:00
Rémi Verschelde 849d2e3462 Merge pull request #10825 from toger5/fix_import_svg_scale
updated import settings loader to 'svg/scale' fixes: #10815
2017-08-31 18:56:27 +02:00
toger5 3b6a65b1e4 updated import settings loader to 'svg/scale' fixes: #10815 2017-08-31 18:52:07 +02:00
Rémi Verschelde 8cb5036b9a Merge pull request #10820 from toger5/imoporter_dock_update_label
fixed update import label in importer dock
2017-08-31 17:05:04 +02:00
Rodrigo Troncoso 00a3ef44da Fix import dock defaults: Set as default actions 2017-08-31 11:59:59 -03:00
toger5 85cc4e823e fixed update import label in importer dock 2017-08-31 16:58:43 +02:00
Rémi Verschelde d57ba499cb Merge pull request #10814 from volzhs/editor-fonts-master
Replace editor font to NotoSans and update source code pro font
2017-08-31 16:05:26 +02:00
toger5 2aa735757a unified draw_center naming for (9patch,StyleBoxes)
- filled -> draw_center
 - is_draw_center -> is_draw_center_enabled
 - get_draw_center -> is_draw_center_enabled
2017-08-31 15:25:24 +02:00
Juan Linietsky caf1447bef Contributors missing in project manager title 2017-08-31 09:50:35 -03:00
volzhs a4a4f6dada Replace editor font to NotoSans for Latin, Arabic, Hebrew, Thai 2017-08-31 21:49:48 +09:00
Juan Linietsky 9ff19951e2 Fixed problem with non triplanar UV2 mode as described in issue. Closes #9979 2017-08-31 09:44:37 -03:00
Rémi Verschelde b7f4dcbdd1 Merge pull request #10096 from toger5/label_stylebox
fixed Import LineEdit to label + label stylebox
2017-08-31 13:58:52 +02:00
Rémi Verschelde 6889d4650a Merge pull request #10766 from poke1024/project-manager-dir
Adds default directory for default_project_path
2017-08-31 13:09:59 +02:00
Rémi Verschelde f00760b22c Merge pull request #10382 from toger5/dark_icons
Light Theme
2017-08-31 11:47:18 +02:00
Rémi Verschelde b3496ee7ab Merge pull request #10763 from poke1024/realtime-polygon-2d-fix
Fixes two glitches in polygon2d wip mode introduced with #10614
2017-08-31 10:57:46 +02:00
poke1024 f2dc0c68fd Adds default directory for default_project_path 2017-08-31 07:15:17 +02:00
toger5 ff0a149de9 added setting for icon/font color: auto,dark,light 2017-08-30 21:47:10 +02:00
toger5 7793bfc544 added icon updating to most ui elements 2017-08-30 21:47:09 +02:00
toger5 97d7d84cac renamed light_color to contrast_color
- added tab highlighting
 - other changes to the theme to make use of contrast color
2017-08-30 21:46:27 +02:00
toger5 b2f70ca10c White Theme
- almost all the colors are generated now. They get adapted based on
   the theme color. All the correct icons are used
 - error label now uses error color
 - added missing button colors in editor theme
2017-08-30 21:44:48 +02:00
toger5 57c6dbf253 removed svg's in icons/dark 2017-08-30 21:20:02 +02:00
toger5 aa8feff8c1 Implement color conversion for dark SVG icons 2017-08-30 21:20:02 +02:00
toger5 c8448cb0ac moved 'scale import setting' into svg section 2017-08-30 21:19:13 +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
Scayze fbda0cc45c AutoUse Pencil on Polygon creation 2017-08-30 12:52:06 +02:00
Rémi Verschelde 98ad0e5a02 Merge pull request #10743 from djrm/pr_improved_spatial_gizmo
Better spatial gizmo.
2017-08-30 12:46:53 +02:00
Rémi Verschelde fd7ad7d80a Merge pull request #10750 from Rubonnek/fix-duplicate-script-changed-signal
Renamed 'script_changed' signal in the script editor plugin to 'edited_script_changed'
2017-08-30 12:46:00 +02:00
Rémi Verschelde aac077774e Merge pull request #10774 from djrm/pr_gizmo_fixes
Fixed problem with highlight boxes not updating on translation
2017-08-30 12:45:01 +02:00
Juan Linietsky efcafab625 Changed defaults, as it seems to be obviousy better to keep materials outside by default.. 2017-08-29 21:54:26 -03:00
Juan Linietsky 181420f3b2 Added nice icon to show when a file is broken on import. 2017-08-29 20:17:59 -03:00
Juan Linietsky 145ff58277 Fix constant reimport on broken files, closes #9930 2017-08-29 20:17:59 -03: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
Juan Linietsky 9c3bddfac2 Merge pull request #10745 from neikeq/fix-docdata-and-stuff
DocData and virtual method type hints fixes
2017-08-29 20:11:07 -03:00
Daniel J. Ramirez b61374e5bd Fixed problem with highlight boxes not updating on translation 2017-08-29 17:50:45 -05:00
Daniel J. Ramirez e3e5dfdaf4 Improved and added some icons 2017-08-29 17:02:55 -05: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
poke1024 d8fcc7d1c2 Fixes two glitches in polygon2d wip mode introduced with #10614 2017-08-29 20:29:03 +02:00
Ignacio Etcheverry 8bd92a96a4 Makes built-in vararg methods actual vararg methods
- Removes hardcoded parameters from built-in vararg methods and adds METHOD_FLAG_VARARG to them.
- Makes EditorHelp display built-in vararg methods correctly.
2017-08-29 19:40:28 +02:00
Ignacio Etcheverry c16d00591b DocData and type hints fixes
- Makes vararg methods automatically use PROPERTY_USAGE_NIL_IS_VARIANT on return types
- Completely removes the ":type" suffix for method names. Virtual methods must use the MethodInfo constructors that takes Variant::Type or PropertyHint as the first parameter for the return type (with CLASS_INFO as a helper to get the PropertyInfo). Parameters must use PROPERTY_HINT_RESOURCE_TYPE and hint string.
- PROPERTY_USAGE_NIL_IS_VARIANT is no longer needed for parameters, because parameters cannot be void.
- Adds missing PROPERTY_USAGE_NIL_IS_VARIANT to virtual and built-in methods that return Variant.
2017-08-29 19:40:21 +02:00
Wilson E. Alvarez a400a65c8a Renamed 'script_changed' signal in the script editor plugin to 'edited_script_changed' 2017-08-29 10:24:10 -04:00
Juan Linietsky 089cf8176e removed DISCARD built in variable, replaced by actual discard GLSL instruction, fixes #9677 2017-08-29 10:15:49 -03:00
Juan Linietsky a2027cfa49 -Fixes to how collada generates tangents (use SurfaceTool), closes #9562
-Fix to gridmap cell size (wrong property type)
2017-08-29 08:48:39 -03: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
Rémi Verschelde 13289002dd Merge pull request #10705 from djrm/pr_gizmo_icons
Added missing gizmo icons and fixed ugly looking gizmo icons.
2017-08-29 07:46:47 +02:00
Rémi Verschelde 672ab5dbcb Merge pull request #10731 from Noshyaar/pr-save
EditorNode: fix scene save over others
2017-08-29 07:39:35 +02:00
Daniel J. Ramirez 78c3cf6e68 Better spatial gizmo.
Now it is posible to move spatial nodes along a plane.
2017-08-28 20:39:45 -05: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
Rémi Verschelde 0f7376921f Merge pull request #10614 from poke1024/realtime-polygon-2d
Adds realtime updates to polygon 2d editing
2017-08-28 23:58:34 +02:00
Daniel J. Ramirez e5a71e3f95 Added missing gizmo icons and fixed ugly looking gizmo icons. 2017-08-28 15:49:16 -05:00
Rémi Verschelde 9a0ace41b0 Merge pull request #10709 from djrm/pr_gizmos_improvements
Highlight currently selected gizmo.
2017-08-28 22:44:29 +02:00
Ferenc Arn 609ef89362 Fix the channels gltf importer uses for metallic and AO textures.
Khronos blender gltf exporter uses red channel for occlusion and blue channel for metallic, whereas the current behavior is the opposite.

Fixes #10700.
2017-08-28 15:09:47 -04:00
Daniel J. Ramirez 07e8d7270e Improved directional light arrow and gizmo highlighting 2017-08-28 13:32:28 -05:00
Rémi Verschelde d664469ec7 Fix inability to change project settings
Regression from 565600e844, fixes #10712.
2017-08-28 18:15:46 +02:00
Daniel J. Ramirez 3003e19ab1 Highlight currently selected gizmo.
Work with, GIProbe, ReflectionProbe and Particles.
2017-08-28 01:28:24 -05:00
Juan Linietsky 8fce79aaee -Some fixes to code completion.
-Fix getter in code completion being displayed when it shouldn't
-Clean up preview generation for editors and exposed it as editor plugin
2017-08-28 00:04:24 -03:00
Rémi Verschelde 59d1f96418 Merge pull request #10688 from Noshyaar/pr-csv2
ImporterCSV: add delimiter options , ; or \t
2017-08-28 00:06:50 +02:00
Rémi Verschelde 7e8a7dea2e Merge pull request #10667 from Zylann/freelook_inertia
Added freelook inertia
2017-08-28 00:06:25 +02:00
Rémi Verschelde 6ef7783abb Merge pull request #10662 from hoelzl/python3-v3
Make build scripts Python 3 compatible
2017-08-28 00:05:15 +02: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
Matthias Hoelzl b6e1e47e3a Make build scripts Python3 compatible
- The Windows, UWP, Android (on Windows) and Linux builds are
  tested with Scons 3.0 alpha using Python 3.
- OSX and iOS should hopefully work but are not tested since
  I don't have a Mac.
- Builds using SCons 2.5 and Python 2 should not be impacted.
2017-08-27 23:05:39 +02:00
Matthias Hoelzl a919a013f5 Fix mixed tab/whitespace in build files 2017-08-27 23:05:39 +02:00
Rémi Verschelde 7ad14e7a3e Dead code tells no tales 2017-08-27 22:13:45 +02:00
Juan Linietsky 37da8155a4 -Largely rewrote gridmap to simplify it
-Got editor working again
-Added a current-floor marker on selection
2017-08-27 16:02:00 -03:00
Poommetee Ketson 4e0d1c8f1c ImporterCSV: add delimiter options , ; or \t 2017-08-27 22:14:09 +07: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 21e53c4267 Buildsystem: Reduce verbosity of font and translation generation 2017-08-27 13:45:56 +02:00
Poommetee Ketson 4940f490c4 ImporterCSV: print error condition to console 2017-08-27 13:48:48 +07:00
Marc Gilleron 28e1c88f6e Added freelook inertia 2017-08-27 02:21:26 +02:00
Rémi Verschelde 612099e377 Merge pull request #10591 from Rubonnek/possible-null-ptr-dereference
Added/Fixed null pointer checks
2017-08-27 02:10:56 +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
Rémi Verschelde e8345c824e Merge pull request #10657 from Noshyaar/pr-debug
Monitor: add hint, fix certain graph not drawn
2017-08-27 02:10:03 +02:00
Rémi Verschelde 00f0884eac Merge pull request #10665 from Hinsbart/save_update_mode
Editor: Remember update mode.
2017-08-27 02:08:53 +02:00
Rémi Verschelde 3ec9e26cb4 Merge pull request #10669 from hpvb/fix-6118
Add several missing Null checks in _notification
2017-08-27 02:07:41 +02:00
Rémi Verschelde 68fc2146d1 Merge pull request #10670 from neikeq/oh-hello-there
EditorHelp: Fixes desc of vararg methods
2017-08-27 02:07:18 +02:00
Hein-Pieter van Braam a276320329 Always size project icons to default icon size
I wasn't able to reproduce the issue, but this should fix #10620
2017-08-27 00:27:10 +02:00
Ignacio Etcheverry 4314050ea7 EditorHelp: Fixes desc of vararg methods 2017-08-26 23:15:34 +02:00
Wilson E. Alvarez 7a07895920 Added/Fixed null pointer checks 2017-08-26 16:58:47 -04:00
Hein-Pieter van Braam 9a1d9a41eb Add several missing Null checks in _notification
This fixes #6118
2017-08-26 22:50:15 +02:00
Andreas Haas b2ec9e108d
Save update mode in project metadata. 2017-08-26 20:43:28 +02:00
Rémi Verschelde 9d7945250e Merge pull request #10649 from akien-mga/code-error-always-show
Code editor: Don't play hide and seek with error label
2017-08-26 18:23:42 +02:00
Rémi Verschelde 2a1a1f05fe Merge pull request #10656 from akien-mga/cleanup-commented-out-code
Cleanup tons of obsolete commented out code
2017-08-26 18:21:08 +02:00
Rémi Verschelde 3c5ce736e6 Node: Add debug info to add_child reparenting check
Use it to remove buggy add_child in EditorAudioBus
2017-08-26 18:14:42 +02:00
Rémi Verschelde a009ab4580 Merge pull request #10652 from Noshyaar/pr-audio
EditorAudioBus: Rename delete_popup, disable delete for Master
2017-08-26 18:06:30 +02:00
Poommetee Ketson 473695ab47 Monitor: add hint, fix certain graph not drawn
Add a hint that helps user discover monitor graph
Fix last row drawn outside when only one graph is in that row
2017-08-26 23:02:52 +07: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
Poommetee Ketson 03db00e6f6 EditorAudioBus: Rename delete_popup, disable delete for Master
Rename `delete_popup` to `bus_popup`
Rename `_delete_pressed` to `_bus_popup_pressed`
Disable 'Delete Bus' option for Master Bus
2017-08-26 21:42:28 +07: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
Rémi Verschelde b92c210b89 Code editor: Don't play hide and seek with error label 2017-08-26 14:43:20 +02:00
Andreas Haas f634973acb Merge pull request #10647 from Noshyaar/patch-1
ProjectSettings: Fix typo 'an setting' to 'a setting'
2017-08-26 14:27:28 +02:00
Juan Linietsky fbfed97a1b Changed camera interpolation to work when LMB is pressed and no modifiers are pressed 2017-08-26 09:10:57 -03:00
Poommetee Ketson e705236ad6 Fix typo 'an setting' to 'a setting' 2017-08-26 17:57:32 +07:00
Bernhard Liebl 1ea2b9be72 polygon2d realtime editing
editing nodes in the polygon2d editor now updates the polygon in realtime; the previous outline is shown, but this can be disabled via a new editor setting
2017-08-26 11:57:54 +02:00
Juan Linietsky 1894157c9f -Massive clean up to gizmos
-Make sure handles are always visible (on top)
-Fixed instanced scene selection (should work properly now)
-Added interpolated camera
-Customizable gizmo colors in editor settings
2017-08-26 00:47:28 -03:00
Rémi Verschelde d9e94fa0c3 Fix i18n bug in GridMap string
Regression from 6134d87 causing build issue on clang.
2017-08-25 20:55:33 +02:00
Rémi Verschelde 2879a173e3 DocData: Fix extraneous space in XML tag without enum hint 2017-08-25 20:25:23 +02:00
Rémi Verschelde f75678a94f Mi18n: erge translations with template 2017-08-25 19:00:03 +02:00
Rémi Verschelde 3034bbf908 i18n: Update template with current source
Additions: 254 msgids.
Deletions: 101 msgids.
2017-08-25 18:59:28 +02:00
Rémi Verschelde c67984b561 i18n: Sync translations with Weblate 2017-08-25 18:57:11 +02: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
Rémi Verschelde 490aef9369 Merge pull request #10581 from hpvb/fix-gcc6+
Make cast_to a static member of Object.
2017-08-25 08:37:38 +02:00
Juan Linietsky a7e8aa4053 Fix bug where not all previews are shown, closes #9895 2017-08-24 23:40:53 -03: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
Juan Linietsky 36e0a72c77 -Code completion for enumerations
-Disabled GDNative and GDNativeScript so build compiles again
2017-08-24 00:06:56 -03:00
Juan Linietsky 3d1c031871 Changed MethodBind API to request information from methods. It's much claner now.
Also changed PropertyInfo to include informatino about class names.
2017-08-23 19:11:11 -03:00
Hein-Pieter van Braam 3894f20d98 Remove an assignment to self
This line does a = a and has a FIXME line. It seems that reduz can't
think of a reason for it either, so here it goes.
2017-08-23 23:51:37 +02:00
Wilson E. Alvarez 433c01b7e5 Removed EditorHelp::_scroll_changed 2017-08-23 03:04:16 -04:00
Rémi Verschelde 78d9936f8d Merge pull request #10573 from tagcup/gizmo_aabb_scaling_order
Fix the order of transformations for selection bounding box in spatial editor.
2017-08-23 08:10:53 +02:00
Rémi Verschelde 0c3b90ef6b Merge pull request #10558 from RandomShaper/undo-after-auto-indent
Add ability to undo auto-indent
2017-08-23 08:08:23 +02:00
Rémi Verschelde 926890703d Merge pull request #10550 from djrm/pr_color_fixes
Child process connected message is now green.
2017-08-23 08:08:11 +02:00
Ferenc Arn d9d9571c8c Fix the order of transformations for selection bounding box in spatial editor.
This was broken in #7438 where the ordering of scaling in Basis::scale() was fixed, but this line of code (which relied on the incorrect behavior) wasn't updated correctly.

Fixes #9894.
2017-08-22 20:05:41 -04:00
Rémi Verschelde 172519bec6 Merge pull request #10551 from djrm/pr_editor_fixes
Do not use old styles for tab buttons

[ci skip]
2017-08-23 00:05:27 +02:00
Daniel J. Ramirez 92c63dc9a7 Ability to set script debugger reason text context. 2017-08-22 14:18:41 -05:00
Pedro J. Estébanez c2a1f3b814 Add ability to undo auto-indent
Closes #10420.
2017-08-22 19:52:17 +02:00
Rémi Verschelde b759fc47e6 Merge pull request #10538 from groud/fix_useless_separator
Fix unneeded separator in Script Editor's Debug menu
2017-08-22 08:49:11 +02:00
Gilles Roudiere 5ea403c0ce Fix uneeded separator 2017-08-22 08:43:23 +02:00
Rémi Verschelde c2346b92b2 Merge pull request #10507 from toger5/override_code_them_bg
added setting to override the theme background with editor theme color
2017-08-22 08:14:46 +02:00
Rémi Verschelde 4fc0a2d776 Merge pull request #10519 from toger5/remove_addition_border
Remove addition border
2017-08-22 08:10:15 +02:00
Rémi Verschelde dd07a15fc6 Merge pull request #10527 from hpvb/fix-10517
Add null check to ScriptEditor get_current_tab_control() call
2017-08-22 08:08:42 +02:00
Mason Ashbridge 09818581b1 Fixed build for Visual Studio 2017-08-21 23:52:55 -04:00
Daniel J. Ramirez 1f90f5ed4c Do not use old styles for tab buttons 2017-08-21 21:10:12 -05:00
Hein-Pieter van Braam 24bc47b179 Add null check to ScriptEditor get_current_tab_control() call
This fixes #10517
2017-08-22 02:35:04 +02:00
Rémi Verschelde df590fc2d3 Merge pull request #10340 from Rubonnek/remove-unnecessary-assignments
Removed unnecessary assignments
2017-08-22 00:58:12 +02:00
Rémi Verschelde 13f879587d Merge pull request #10254 from marcelofg55/master
Added notification const NOTIFICATION_WM_ABOUT
2017-08-22 00:56:31 +02:00
Juan Linietsky 2cc8309249 Merge pull request #10351 from neikeq/enums-are-for-the-weak
ClassDB: Provide the enum name of integer constants
2017-08-21 19:56:08 -03:00
Rémi Verschelde e9c43cecbf Merge pull request #10433 from djrm/pr_svg_support
SVG support
2017-08-21 23:49:07 +02:00
toger5 ce4eb30778 added setting to override the theme background with editor theme color 2017-08-21 23:19:27 +02:00
toger5 d0c610d9ba removed additional border function. (not needed with new styleboxes) 2017-08-21 23:07:38 +02:00
Rémi Verschelde 328452e028 Merge pull request #10508 from Paulb23/increase_smooth_scroll_speed
Increased smooth scroll speed and added user setting
2017-08-21 22:19:18 +02:00
toger5 1a4d8b3e76 fixed rounded corners for visual script editor 2017-08-21 21:32:56 +02:00
Wilson E. Alvarez 738d2ab969 Removed unnecessary assignments 2017-08-21 15:15:55 -04:00
Paulb23 d6599fde0a Increased smooth scroll speed and added user setting 2017-08-21 19:20:11 +01: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
Juan Linietsky 533014b88c simplify the way window is allowed to steal focus, no longer relying on project.godot. Closes #9459 2017-08-20 23:42:54 -03:00
Rémi Verschelde 35d5724519 Fix mismatched hints for filesystem/import/pvrtc_texture_tool 2017-08-20 22:23:58 +02:00
Ignacio Etcheverry 32dd9a9f66 ClassDB: Provide the enum name of integer constants 2017-08-20 22:07:43 +02:00
Rémi Verschelde 952db3e676 Merge pull request #10483 from Zylann/orbit_sensitivity
Reduced default orbit sensitivity for smoother rotation
2017-08-20 21:05:55 +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
Daniel J. Ramirez da8fecf25e Added support for SVG 2017-08-20 13:53:02 -05:00
Juan Linietsky ab13d0aeed Inspector is no longer cleared when game runs, fixes #9408 2017-08-20 15:21:45 -03:00
Marc Gilleron ede58e48d8 Reduced default orbit sensitivity for smoother rotation 2017-08-20 18:22:45 +02: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
Rémi Verschelde f4e2baae7f Merge pull request #10476 from Paulb23/delete_current_line_issue_9643
Delete current line, issue 9643
2017-08-20 15:25:28 +02:00
Rémi Verschelde 20ab8c1156 Merge pull request #10473 from akien-mga/run_window_placement_default
Rename "Default" window placement mode to "Top Left"
2017-08-20 15:25:14 +02:00
Rémi Verschelde dca8df47b4 Merge pull request #10460 from Zylann/orbit_sensitivity
Added option for mouse orbit sensitivity
2017-08-20 15:24:35 +02:00
Rémi Verschelde 5627047c32 Merge pull request #10455 from groud/control_margin_fixes
Some control fixes and removed other useless lines
2017-08-20 15:24:00 +02:00
Paulb23 de95e65d10 Delete current line, issue 9643 2017-08-20 13:31:30 +01:00
Rémi Verschelde 686294e4f2 Rename "Default" window placement mode to "Top Left"
It is no longer the default value ;)
2017-08-20 14:16:31 +02:00
Andreas Haas a80371ce0a
SceneTreeEditor: Fix node_selected signal emission.
Fixes #10131
2017-08-20 00:20:27 +02: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
Marc Gilleron a88c759ff1 Added option for mouse orbit sensitivity 2017-08-19 21:57:43 +02:00