Commit graph

2455 commits

Author SHA1 Message Date
Leon Krause
af7926cf98 Allow exporting runnable presets from command line 2018-05-10 20:17:51 +02:00
Karolis K
c3e921fba3 Fix icon if remote icon load fails 2018-05-10 18:45:22 +03:00
Rémi Verschelde
919d802e66
Merge pull request #18183 from Paulb23/gdscript_highlighter_inital_changes
GDScript function definition and get_node shortcut syntax highlighting
2018-05-10 01:25:51 +02:00
Peter Folkins
365d814361 Adding font preview to file browsers 2018-05-09 13:34:30 -05:00
DmitryKrutskikh
965b6ac273 Disable 'run' button if any project not selected and tiny refactoring 2018-05-09 19:13:53 +03:00
Swarnim Arun
8529763a0f Fix tileset bug #18090 to use StaticBody2D position
Using staticbody2d position to affect the collision shape position whenever a tileset is created.

Formatting the code

Removed the most get/set from my old code.
2018-05-09 12:12:10 +05:30
Guilherme Silva
d63cc11bee Change from "search dialog" to "search bar" on help screen 2018-05-08 12:19:32 +00:00
Rémi Verschelde
9dbfe5dc61
Merge pull request #17578 from endragor/ft-outlines
Perfect FreeType-based outlines for DynamicFonts
2018-05-08 15:37:00 +02:00
Hugo Locurcio
ce7056bb8d
Fix the 3D grid color setting hints
It was mistakenly changed to RGBA in #18525 when it should have
stayed RGB (the 3D grid does not currently support transparency).
2018-05-08 13:57:51 +02:00
Rémi Verschelde
e854a71fac
Merge pull request #18693 from AndreaCatania/patch-1
Fixed editor crash during editor closing
2018-05-08 11:00:41 +02:00
Ruslan Mustakov
5cd12f6649 Perfect FreeType-based outlines for DynamicFonts
- Implement outlines based on FreeType Stroker API. This allows
  artifact-free results, similar to what you will see in Web or any text
  editing tools. Outline is a part of DynamicFont rather than Label,
  because outlines have to be baked into the font's atlas. Font has a
  default outline_color and a Label can specify font_outline_modulator
  that will be multiplied with the Font's color to get the final result.

- draw_char now has to be called twice to fully render a text - first
  with p_outline == true for each character and then with
  p_outline == false for each character.

- Number of draw-calls is reduced from 5 to 2 per outlined character.

- Overall cleanup of DynamicFont code, extracted duplicated code pieces
  into separate methods.

- The change is backward-compatible - Labels still have outline
  properties that work exactly as they worked before.

Closes #16279.
2018-05-08 13:45:24 +07:00
Rémi Verschelde
64cb61619a
Merge pull request #15928 from StateOff/feature_batch_rename
Implements "Batch Rename" editor tool.
2018-05-08 07:36:24 +02:00
Andrea Catania
6c4916ddf5
Removed pointer deletion during editor closing 2018-05-08 00:59:22 +02:00
Juan Linietsky
80b9edf0f6
Merge pull request #16893 from GodotExplorer/debugger-improvement-3
Save runtime node as scene from remote scene tree.
2018-05-07 16:41:34 -03:00
Juan Linietsky
6d46f73ec3
Merge pull request #11973 from AndreaCatania/ragdoll
Ragdoll - Physical bone node
2018-05-07 16:12:27 -03:00
AndreaCatania
9e57a07fb6 Implemented ragdoll
Implementing ragdoll

Implementing ragdoll

Implementing ragdoll

Implementing ragdoll

Implementing ragdoll

a

Implemented implicit hierarchy.

Improved

Added some physics properties

Added bone offset to preserve COM, partially fixed scaling

work in progress

WIP

wip

Implemented Joint Gizmos

Implemented pin joint joint

Implemented all joints
2018-05-07 21:03:16 +02:00
Juan Linietsky
8b9b653e76
Merge pull request #18113 from toger5/bold_font
added bold font to editor (support for coustom bold font)
2018-05-07 15:54:44 -03:00
Juan Linietsky
8c30337565
Merge pull request #18684 from muiroc/fix_dragdrop_instancing
Editor: Makes dragdrop instantiation behavior consistent with the instance scene button
2018-05-07 13:34:09 -03:00
Juan Linietsky
dbe95e6b42
Merge pull request #18519 from TheYokai/connectionsdock_upgrade
ConnectionsDock - Additional Features (Edit Connection, Disconnect All) and Refactor
2018-05-07 13:17:46 -03:00
Juan Linietsky
d8ea68195a
Merge pull request #18525 from Calinou/improve-3d-grid
Improve the 3D editor grid
2018-05-07 13:09:03 -03:00
Juan Linietsky
b89e354ce6
Merge pull request #18610 from homer666/editor-popup-adjustments
Adjust default editor dialog window sizes
2018-05-07 12:09:49 -03:00
Juan Linietsky
14e9a6ae16
Merge pull request #18633 from groud/fix_2d_editor
Fix 2d editor
2018-05-07 11:55:26 -03:00
Juan Linietsky
6e9517ca83
Merge pull request #18642 from flashyincceo/engine-click
Fix script editor CTRL+CLICK on singleton functions
2018-05-07 11:49:34 -03:00
Max Hilbrunner
d4cdee5f9e
Merge pull request #15640 from willnationsdev/resource-saved-signal
Added EditorPlugin 'resource_saved' signal
2018-05-07 15:07:32 +02:00
Gilles Roudière
801657f64e
Merge pull request #18628 from raphael10241024/patch
fix : code editor's text size should change at least one each time when you try to change it using shortcuts
2018-05-07 15:06:02 +02:00
Max Hilbrunner
c587cac304
Merge pull request #18308 from ericmccarthy7/develop
Fix clone down newline bug
2018-05-07 14:49:23 +02:00
RaphaelHunter
eeb0534426 Fix:code editor text size should change at least one each time, don't mind how you setting your display scale 2018-05-07 17:50:44 +08:00
Max Hilbrunner
9b0c487dd4
Merge pull request #18587 from AlexHoratio/master
Defaults to instancing child at tree root when none selected
2018-05-07 09:28:49 +02:00
muiroc
884b239ca5 SpatialEditorViewport::_create_instance: pass GEN_EDIT_STATE_INSTANCED to scene->instance() 2018-05-06 19:13:23 +02:00
Unknown
cdcfb9582e Defaults to instancing child at tree root when none selected
If no node is selected, it will default to selecting the tree root node to instance a child under. This solves #18557
2018-05-06 15:10:57 +01:00
Unknown
c364a1278e LinkButtons are now responsive to engine theme
Fixes #18636, so now LinkButtons (like those in the asset store) will change font colour to remain visible in any engine theme, just like Labels etc
2018-05-05 21:19:44 +01:00
Peter Folkins
0c1a71b047 Fix script editor CTRL+CLICK on singleton functions 2018-05-05 13:23:47 -05:00
groud
7331ca6f63 Fixes some 2d bones display problems 2018-05-05 15:45:26 +02:00
groud
3962862ea3 Fixes several selection problems in the 2D editor 2018-05-05 11:50:23 +02:00
Max Hilbrunner
fc9fad925b
Merge pull request #18146 from mjtorn/gh-mjtorn-rtl-shadow
Implement font shadows for RichTextLabel
2018-05-05 07:01:04 +02:00
Max Hilbrunner
27ac6846dc
Merge pull request #18471 from TheYokai/new_script_context_option
'New Script' Option Added to FileSystem Docker Right Click Menu
2018-05-05 06:52:37 +02:00
homer666
7ff3b52dea Adjust default editor popup sizes 2018-05-05 12:09:56 +10:00
Juan Linietsky
af9a6202eb Fix bone refresh logic, closes #18564 2018-05-04 18:11:28 -03:00
Juan Linietsky
bf561c4946 Made bone handling for actual Bone2D a special case. Make custom bones appear like a custom (less important) option now. 2018-05-04 16:46:32 -03:00
Juan Linietsky
e68cbec1fa Make bones have more contrast with outline 2018-05-04 11:54:21 -03:00
Juan Linietsky
3bd0ca2a2d Skeletal deform working 2018-05-04 11:54:21 -03:00
Rémi Verschelde
6405dcb7db
Merge pull request #18595 from AlexHoratio/script_pos_columns
Script Editor now displays positional column
2018-05-04 09:58:35 +02:00
Rémi Verschelde
d6ddfdf004
Merge pull request #18601 from YeldhamDev/string_changes
Small changes for some strings
2018-05-04 08:16:54 +02:00
Michael Alexsander Silva Dias
5b0ddb1354 Small changes for some strings. 2018-05-03 18:07:18 -03:00
Juan Linietsky
b3e4bc562c Skeleton for 2D WIP 2018-05-03 17:29:56 -03:00
Rémi Verschelde
e9c1957a3e
Merge pull request #16358 from JFonS/particlesgizmo_box_fix
ParticlesGizmo solid box now follows actual visibility_aabb position.
2018-05-03 21:47:00 +02:00
Rémi Verschelde
460e551ddf
Merge pull request #16418 from bojidar-bg/15961-gdscript-array-export
Allow exporting arrays of resources in GDScript
2018-05-03 21:19:15 +02:00
Unknown
4e26e5e268 Script Editor now displays positional column
This solves #17931 and makes the script editor consistent with other text editors(Sublime, Gedit, Vim) in displaying the position rather than the raw number of characters.
2018-05-03 18:03:20 +01:00
Robin Hübner
b16eaf5827 Remove unused duplicate wireframe shortcut, fixes #18067
It also happens to do nothing currently.
2018-05-03 16:22:30 +02:00
Rémi Verschelde
2e474f42b8
Merge pull request #18552 from Falke117/trailingSpace
Folder name with trailing space fix
2018-05-03 11:31:14 +02:00
Rémi Verschelde
f3640621ad i18n: Sync translation templates with current source
(cherry picked from commit 056348a8c0)

Note: Still syncing with the 3.0 code for now to allow updating translations
in the 3.0 branch. We'll eventually switch Weblate to use the strings of the
3.1-dev branch once it is stable enough.
2018-05-03 11:27:01 +02:00
Rémi Verschelde
9bf0acbfcb i18n: Sync translations with Weblate
(cherry picked from commit ddbe559c04)
2018-05-03 11:26:49 +02:00
Felix Yang
164dceab28 Fix for Issue#18457 - Folder name with trailing space on Windows 2018-05-03 10:19:43 +02:00
Rémi Verschelde
741637b966
Merge pull request #18451 from volzhs/node-name
Check invalid node name
2018-05-02 22:21:31 +02:00
volzhs
6758b6c131 Check invalid node name 2018-05-03 00:00:06 +09:00
Juan Linietsky
4c3c510a80 WIP Polygon2D weight editing 2018-05-02 11:01:12 -03:00
Rémi Verschelde
a04323e89a
Merge pull request #18400 from groud/fix_lock_and_groups
Fixes locks and groups on 2d editor
2018-05-02 11:59:10 +02:00
Rémi Verschelde
de4ed8e706
Merge pull request #17059 from Jason0214/BugFix_favorite_updating
Editor:   update favorite dirs when dir got deleted
2018-05-02 10:53:31 +02:00
Rémi Verschelde
18c28c159d
Merge pull request #17196 from RandomShaper/improve-gui-touch
Implement universal translation of touch to mouse (3.1)
2018-05-02 10:47:49 +02:00
Rémi Verschelde
04a4270a34
Merge pull request #18338 from Zylann/fix_find_in_files
Fix Find in Files
2018-05-02 10:42:26 +02:00
groud
845a898f37 Fixes locks and groups on 2d editor 2018-05-02 10:37:37 +02:00
Rémi Verschelde
02a51c34ea
Merge pull request #18259 from Superwaitsum/MoveIcons
Changed Sprite Frame buttons for icons
2018-05-02 10:08:57 +02:00
Jason0214
b11d1196c4 remove favorited dirs if original dir deleted 2018-05-02 08:57:56 +08:00
Marc Gilleron
4c415001b2 Fix Find in Files:
- FileAccess was accessed null (remains of GDScript port)
- `_current_file` wasn't going up correctly in case a scanned directory had no subdirectories
- Paths stored in `_files_to_scan` were not full paths
2018-05-01 22:07:16 +02:00
Rémi Verschelde
1113a738ba
Merge pull request #18508 from AlexHolly/hide-tab-changed-debug-print
hide tab changed debug print
2018-05-01 19:19:12 +02:00
Rémi Verschelde
de97339a2d
Merge pull request #18291 from akien-mga/coverity-uninitialized-scalar-var
Fix Coverity reports of uninitialized scalar variable
2018-05-01 19:14:07 +02:00
Rémi Verschelde
c9abe88110
Merge pull request #16502 from Paulb23/multi_group_editor
Added multi group editor dialog, issue 13997
2018-05-01 18:18:05 +02:00
Pieter-Jan Briers
20dd2204db Adds z-index properties to TileSets. 2018-05-01 17:24:57 +02:00
George Marques
decf178033
Enable autoload in editor
- Tool scripts will be executed and can be accessed by plugins.
- Other script languages can implement add/remove_named_global_constant
to make use of this functionality.
2018-05-01 11:44:08 -03:00
Rémi Verschelde
007d1754e3 Revert "Added a more specific error message on export"
This reverts commit 00c689d625.

Reason: "Missing template" is just one possible explanation for
`err` being != OK here, it does not make sense to hardcode it in
the generic error message (and break translations doing so).
2018-05-01 13:07:11 +02:00
Rémi Verschelde
8dd2b2e6f5
Merge pull request #18434 from YeldhamDev/animation_autoplay_fix
Fixed deleting an animation marked to autoplay in the editor affecting the creation of one with the same name
2018-05-01 11:47:37 +02:00
Rémi Verschelde
e1ef2f538f
Merge pull request #18380 from groud/fix_spacebar_panning
Fixes 2d editor panning not working
2018-05-01 08:56:13 +02:00
Rémi Verschelde
4cce6f3417
Merge pull request #18321 from Crazy-P/Fixes-logically-dead-code
Fixes logically dead code (Coverity)
2018-05-01 08:35:10 +02:00
Superwaitsum
7d689dff71 Changed Sprite Frame move buttons for icons 2018-04-30 16:05:21 -05:00
Pedro J. Estébanez
de9d40a953 Implement universal translation of touch to mouse
Now generating mouse events from touch is optional (on by default) and it's performed by `InputDefault` instead of having each OS abstraction doing it. (*)

The translation algorithm waits for a touch index to be pressed and tracks it translating its events to mouse events until it is raised, while ignoring other pointers.

Furthermore, to avoid an stuck "touch mouse", since not all platforms may report touches raised when the window is unfocused, it checks if touches are still down by the time it's focused again and if so it resets the state of the emulated mouse.

*: In the case of Windows, since it already provides touch-to-mouse translation by itself, "echo" mouse events are filtered out to have it working like the rest.

On X11 a little hack has been needed to avoid a case of a spurious mouse motion event that is generated during touch interaction.

Plus: Improve/fix tracking of current mouse position.

** Summary of changes to settings: **

- `display/window/handheld/emulate_touchscreen` becomes `input/pointing_devices/emulate_touch_from_mouse`
- New setting: `input/pointing_devices/emulate_mouse_from_touch`
2018-04-30 19:03:38 +02:00
Max Hilbrunner
196fc8599a
Merge pull request #18373 from KidRigger/working
Replaces CTRL with CMD in TileMapEditor for MacOS.
2018-04-30 19:00:41 +02:00
Max Hilbrunner
f274c8b74b
Merge pull request #18381 from groud/fix_hard_to_select_node2d
Fixes hard to select Node2D
2018-04-30 18:58:27 +02:00
Alexander Holland
31f28885f9 hide tab changed debug print 2018-04-30 18:41:11 +02:00
Max Hilbrunner
f1bbb59653
Merge pull request #18489 from Calinou/tweak-property-hint-ranges
Tweak the property hint ranges of caret blink and line length guideline
2018-04-30 18:19:09 +02:00
Max Hilbrunner
c408eb7520
Merge pull request #18506 from AlexHolly/export-more-specific-error-message
Added a more specific error message on export
2018-04-30 18:14:35 +02:00
Max Hilbrunner
a07f81fc2f
Merge pull request #18515 from djrm/pr_icons
Updated icons, add CSG icons
2018-04-30 18:10:31 +02:00
Hugo Locurcio
098f9b51b5
Improve the 3D editor grid
- The grid's primary and secondary colors can now be changed
- The number of grid steps (subdivisions) can now be changed
- The grid size can now be changed
- The grid is now darker by default
2018-04-30 14:24:54 +02:00
Eoin O'Neill
37e166f4c7 Added disconnect_all and edit functionality to ConnectionsDock.
Refactor: Changed function order so header and source are in sync, renamed functions and members to be more clear.

Replaced pointers with references where appropriate.
2018-04-29 23:51:36 -07:00
Juan Linietsky
6244b9e2e1 Add option to renormalize mipmaps when generating them for normalmaps.
Reduces some aliasing.
2018-04-29 21:52:21 -03:00
Eoin O'Neill
6cef0eaa09 Added connection editing. Some refactoring. 2018-04-29 17:16:05 -07:00
Eoin O'Neill
62a858d4c9 Basic context menu added to connections docker w/ code cleanup. 2018-04-29 17:16:05 -07:00
Daniel J. Ramirez
f11649987d Updated icons,
Added CSG icons and other action icons
[ci-skip]
2018-04-29 14:14:46 -05:00
Hein-Pieter van Braam
3bd3f41465
Merge pull request #18455 from neikeq/export-pck-zip-debug
Make 'Export PCK/ZIP' work well with EditorExportPlugin
2018-04-29 18:29:32 +02:00
Alexander Holland
00c689d625 Added a more specific error message on export 2018-04-29 15:26:33 +02:00
Hein-Pieter van Braam
91dfccd1ee
Merge pull request #18425 from RandomShaper/fix-theme-editor-samples
Fix theme editor sample widgets
2018-04-28 22:19:13 +02:00
Hugo Locurcio
0eb2f6c223
Tweak the property hint ranges of caret blink and line length guideline
This allows for more precise adjustments.
2018-04-28 19:13:30 +02:00
Juan Linietsky
93c77580aa Fix how snapping is applied to 3D polygon editing, make it more friendly. 2018-04-28 11:22:22 -03:00
Eoin O'Neill
af1e2c7b21 Basic 'new script' feature added to File System browser 2018-04-27 22:55:48 -07:00
Juan Linietsky
8d199a9b2c CSG Support for Godot!
-Missing Icons
-Missing freezing option (for baking light and faster load)
-Missing a way to export from Godot (GLTF2?)
-Probably buggy (may freeze editor, can be worked around easily, but let me know if this happens so it's easier to catch bugs)
Happy testing!
2018-04-27 21:55:10 -03:00
Michael Alexsander Silva Dias
75897710b3 Made the Pin button disable when no AnimationPlayer is selected. 2018-04-27 16:06:05 -03:00
Michael Alexsander Silva Dias
e93a56ef3e Fixed deleting an animation marked to autoplay in the editor affecting the creation of one with the same name. 2018-04-27 16:06:05 -03:00
Pedro J. Estébanez
a0626d7d9c Fix theme editor sample widgets 2018-04-27 20:42:57 +02:00
Marcelo Fernandez
9b4d23e898 Fix use64 used without being initialized 2018-04-27 10:43:48 -03:00
Michael Alexsander Silva Dias
6971604033 Numerous changes to the Animation Editor. 2018-04-26 22:58:30 -03:00
Ignacio Etcheverry
68b35de2b6 Make 'Export PCK/ZIP' work well with EditorExportPlugin
Add debug flag to the 'Export PCK/ZIP' option
Make 'Export PCK/ZIP' notify when the export process begins. This is necessary to receive the 'EditorExportPlugin::_export_begin' callback
2018-04-26 23:21:05 +02:00
Gilles Roudiere
8dcd39c3c4 Adds shortcuts for zooming in the 2D editor 2018-04-26 10:28:56 +02:00
Peter Folkins
223f085857 Fix AnimationPlayer edited scene bug 2018-04-23 14:06:40 -05:00
groud
e8a4c4fa4c Fixes hard to select Node2D 2018-04-23 19:48:15 +02:00
groud
9c5a44aeee Fixes 2d editor panning not working 2018-04-23 19:34:03 +02:00
Anish
cca7633739 Replaces CTRL with CMD in TileMapEditor for MacOS.
Replacing CTRL with CMD makes sense dure to consistency
with MacOS and avoiding conflict with the accessibility
hotkey (ctrl+lmb = rmb)

Fixes: #18238
2018-04-23 19:39:01 +05:30
Hugo Locurcio
1c419531a0 Change ".." punctuation for "..." in editor strings (#16507) 2018-04-22 19:36:01 +02:00
Crazy-P
e6deba8d19 Fixes logically dead code (Coverity)
Fixes reported logically dead codes by Coverity

* image.cpp: Doesn't really need any modification. But to remove the bug
report then we have to move the MAX call away from the for loop
statement.

* rasterizer_gles3.cpp: Removes unnecessary elif condition since it is
checked earlier in the function

* collada.cpp: If stamement never reached due to macro ERR_CONTINUE does
the same.

* navigation_mesh.cpp: Variables should always be null - however, also
checked for the very same condition in their function call. Leaving this
for review (whether the function call is necessary or not)

* path_editor_plugin.cpp: If cancel is true, then it should restore the
edited value to the original provided.
http://docs.godotengine.org/en/3.0/classes/class_editorspatialgizmo.html#class-editorspatialgizmo-commit-handle

* spatial_editor_gizmos.cpp: the very condition of i >= 3 is
predetermined in the if case right before it. Thus case 1 is always '1'
and case 2 is always '-1'

* grid_map_editor.cpp: Same as above in spatial_editor_gizmos.cpp

* voxel_light_baker.cpp: Same as above in spatial_editor_gizmos.cpp

* visual_server.cpp: Same as above in spatial_editor_gizmos.cpp

* visual_script_expression.cpp: char '-' is already true in the switch
case mechanism. Thus it can never reach to default case.

* particles.cpp: Case 'PARAM_MAX' is unreachable due to index checking
right before the switch execution.

* shader_language.cpp: Invalid index is handled in switch default case.
`type < TYPE_FLOAT && type > TYPE_VEC4` -> `(type < TYPE_FLOAT || type > TYPE_VEC4`)
Fixes the "always false problem" in TODO comment.
2018-04-21 22:35:23 +08:00
Paulb23
adeed58477 Added GDScript NodePath highlighting 2018-04-20 21:00:07 +01:00
Paulb23
4cd16f6ba9 Added GDScript function definition highlighting 2018-04-20 20:54:31 +01:00
Eric McCarthy
02b7b916b7 Fix clone down newline bug
Previously cloning down at the end of a script was broken if there was
not an additional empty line.

This fix ensures there is an empty line before attempting to clone
downwards.

Fixes #18206, cheers!
2018-04-19 20:35:42 -04:00
toger5
29216b2bad added bold font to editor (support for coustom bold font) 2018-04-19 22:00:58 +02:00
Rémi Verschelde
bf7ca623a6 Fix Coverity reports of uninitialized scalar variable
Fixes most current reports on Coverity Scan of uninitialized scalar
variable (CWE-457): https://cwe.mitre.org/data/definitions/457.html

These happen most of the time (in our code) when instanciating structs
without a constructor (or with an incomplete one), and later returning
the instance. This is sometimes intended though, as some parameters are
only used in some situations and should not be double-initialized for
performance reasons (e.g. `constant` in ShaderLanguage::Token).
2018-04-19 15:20:45 +02:00
Gilles Roudiere
7e89dc432c Fixes left/up axis not mappable as actions 2018-04-18 21:38:52 +02:00
Rémi Verschelde
9ce8d8ddda
Merge pull request #18261 from flashyincceo/export-project-default-filename
Set default file name for exported projects
2018-04-18 16:37:57 +02:00
Rémi Verschelde
db70538688
Merge pull request #18168 from Chaosus/fixcrash
Fix possible crash when clicking on Skeleton2D or Sprite editor options
2018-04-18 16:19:10 +02:00
Peter Folkins
bff73bdbf1 Set default file name for exported projects 2018-04-18 08:58:13 -05:00
Chaosus
026617b5fb Fix possible crash when clicking on Skeleton2D or Sprite editor options 2018-04-18 16:45:39 +03:00
Juan Linietsky
1a3688d0cc
Merge pull request #16902 from groud/analog_action_system
Allow actions to provide an analog value
2018-04-18 07:21:29 -03:00
Gilles Roudiere
ebfa731012 Allow actions to provide an analog value 2018-04-16 23:20:43 +02:00
Paulb23
2fe05383df Added multi group editor dialog, issue 13997 2018-04-15 19:42:48 +01:00
Rémi Verschelde
e7e9d9a0ea
Merge pull request #18156 from RandomShaper/fix-messed-pr
Revert "Unify http- and percent- encode/decode"
2018-04-13 22:20:35 +02:00
Juan Linietsky
1d15c5d726
Merge pull request #17502 from groud/2Deditor_rect
Remove the rect surrounding 2D nodes in 2D editor when it's not pertinent
2018-04-13 10:21:44 -03:00
Pedro J. Estébanez
00e98458ba Revert "Unify http- and percent- encode/decode"
This reverts commit b76ee30917.
2018-04-12 21:12:34 +02:00
Markus Törnqvist
1c6ea572ca Implement font shadows for RichTextLabel 2018-04-12 15:09:48 +03:00
Rémi Verschelde
24c2efc0f5
Merge pull request #16473 from ianb96/move_tab
Drag to Rearrange Editor Docks
2018-04-09 21:45:06 +02:00
Rémi Verschelde
9101a89510
Merge pull request #18054 from Mintormo/bugfix-inconsistent-sort-in-file-manager
Fixed bug #17929. Inconsistent sort in file manager.
2018-04-09 17:56:43 +02:00
ianb96
9ac3c474b8 Drag to rearrange Tabs and TabContainer 2018-04-08 20:23:37 -04:00
Juan Linietsky
b67bfa3328
Merge pull request #16297 from lpn/master
Fixed wave file importer's broken resampling.
2018-04-08 18:41:46 -03:00
Juan Linietsky
3a08f1748b
Merge pull request #16571 from Zylann/find_in_files
Added find & replace in files
2018-04-08 17:24:26 -03:00
Chaosus
56a6d90f36 Fix #18058 regression 2018-04-08 20:01:38 +03:00
Juan Linietsky
2f4f8de459
Merge pull request #16995 from mrcdk/custom_resources_inspector
The inspector will show the custom resources added via plugin
2018-04-08 11:49:34 -03:00
Juan Linietsky
2ba01613a3
Merge pull request #17123 from Jason0214/BugFix_UpdataFavoriteListWhenMoveOrRenameDir
Editor: update favortite_dirs after move or rename a file in filesytem_dock
2018-04-08 11:36:55 -03:00
Juan Linietsky
4ee3f3251d
Merge pull request #17382 from bojidar-bg/13971-path-array-unsaved
Duplicate Arrays and Dictionaries when instancing scene in editor
2018-04-08 09:39:03 -03:00
Juan Linietsky
6eb0c74e9d
Merge pull request #17443 from Noshyaar/tilesetcrash
Fix converting to tileset crashes Godot if existing file is not tileset
2018-04-08 09:31:54 -03:00
Juan Linietsky
47ffe107e6
Merge pull request #17967 from Nibodhika/all-device-mode
Allows to map an action to all devices.
2018-04-08 09:04:14 -03:00
Juan Linietsky
8a84f9df0d
Merge pull request #17741 from Essojadojef/fix-shortcut-categories
Fix all categories unfold when one key binding is changed
2018-04-08 09:02:44 -03:00
Mintormo
41a3929d25 Fixed bug #17929. Inconsistent sort in file manager.
This commit fix a bug #17929
(https://github.com/godotengine/godot/issues/17929)
in file manager. I'm just added sorting of files list
in method FileSystemDock::_update_files.
2018-04-08 13:18:01 +03:00
Nibodhika
1e28f63bcf Allows to map an action to all devices.
This is accomplished by setting a special value (-1) to the device variable
in the InputEvent that's being used to compare with the one received from the OS.

This special value is invalid for a regular input, so it should be safe.
Implements #17942
2018-04-07 20:08:09 +00:00
Juan Linietsky
cd7e9d9642
Merge pull request #17583 from RandomShaper/enhance-uri-utils
Enhance uri utils
2018-04-07 17:07:29 -03:00
Juan Linietsky
d59ff07c1e
Merge pull request #17717 from NikodemL/master
Extended node rename function to also support renaming  node path script instance property
2018-04-07 16:46:49 -03:00
Juan Linietsky
187b14ae24
Merge pull request #17730 from RandomShaper/radio-buttons-in-menus
Radio buttons in menus
2018-04-07 16:41:39 -03:00
Juan Linietsky
b6bf26a549
Merge pull request #17754 from Crazy-P/Resloves_Replace_all_doesnt_replace_all
Resloves Replace all doesnt replace all
2018-04-07 16:33:31 -03:00
Juan Linietsky
7dedb22f0b
Merge pull request #17809 from RandomShaper/menu-item-on-release
Improve popup menus usability
2018-04-07 16:22:00 -03:00
Juan Linietsky
829c455a48
Merge pull request #17840 from Dimonasdf/master
Fix Collada material roughness import function
2018-04-07 16:19:11 -03:00
Pedro J. Estébanez
259ed1d400 Improve popup menus usability
It seems that popups were intended to "grab" the mouse click that triggered them, but their intent was being lost. This commit does the necessary changes to let it happen and updates items that were trying to get advantage of it, because the semantics of `Control::grab_click_focus()` have changed a bit. Namely, it must be called **before** showing the modal.

This allows to popup a menu and activate an item in it in a single click-point-release cycle, instead of having to click once to open the menu and once more to pick an item.

This ability is extended even to context menus activated with the RMB (or any other mouse button, for that matter). The editor benefits from this in the context menu of the tree dock, which has been patched to opt-in for this feature.

This improves UX a bit by saving unnecessary clicks.

From now on, `PopupMenu` always grabs the click and also invalidates the first button release unless the mouse has moved (that's what `set_invalidate_click_until_motion()` was doing and now it's removed), so there is no longer the need of doing both things at every point a pop-up menu is shown.
2018-04-07 01:06:02 +02:00
Pedro J. Estébanez
d8765dd103 Fix skeleton import from glTF
For some glTF files, the order of bones in the skeleton array wasn't matching the joints array in the meshes.

Fixes #17808.
2018-04-06 22:22:59 +02:00
Rémi Verschelde
ec110076ca
Merge pull request #17970 from PJB3005/18-04-04-commandline-export-error-clarity
Explicitly print an error when --export fails.
2018-04-06 08:36:16 +02:00
Rémi Verschelde
e223702776
Merge pull request #17784 from Rubonnek/rename-shortcut
Added shortcut to rename files
2018-04-04 22:27:21 +02:00
Pieter-Jan Briers
4954982b95 Explicitly print an error when --export fails.
Previously this would not explicitly say the export failed.
Sure you might see another error somewhere,
but that's not very reliable/obvious.
2018-04-04 16:51:35 +02:00
Alexander Alekseev
0853ac2006 Update transform buttons in tile editor while using T, A, S shortcuts (fixes #17962) 2018-04-04 16:02:44 +03:00
Rémi Verschelde
d991e99321
Merge pull request #17816 from NikodemL/fix_file_show_in_explorer
FIX: FILE_SHOW_IN_EXPLORER now correctly shows the file's directory
2018-04-04 12:31:05 +02:00
Rémi Verschelde
950d4922a5
Merge pull request #17863 from covariantlabs/add-move-selected-tiles
Add functionality to move selected tiles in tile map editor
2018-04-04 09:54:08 +02:00
Rémi Verschelde
5ede505f14
Merge pull request #17923 from Paulb23/add_abstract_syntax_highlighter
Abstracted the syntax highlighter from text edit.
2018-04-04 09:50:51 +02:00
Martin Rieke
d538fcd92d Add functionality to move selected tiles in tile map editor
This change adds a new entry "Move Selection" to the "Tile Map"
menu in the tile map editor. It allows the user to easily move
as set of selected tiles.
2018-04-04 09:23:56 +02:00
Gilles Roudiere
a724f34ef3 Displays node icon on hover 2018-04-03 23:56:37 +02:00
Rémi Verschelde
bcf5b748b5
Merge pull request #17832 from YeldhamDev/popups_size_fix
Fixed some popups not shrinking their size back when losing items
2018-04-03 23:53:47 +02:00
Rémi Verschelde
82c26f74ad
Merge pull request #17865 from delftswa2018/enumLookupFix
Ctrl+Clicking a enum now scrolls down to it in the docs.
2018-04-03 22:43:07 +02:00
Gilles Roudiere
0251b08afa Display nodes without rect's position 2018-04-03 22:04:19 +02:00
Gilles Roudiere
72ed1e4244 Remove the selection rect for nodes that do not require it 2018-04-03 22:04:19 +02:00
Felix Yang
7d5a40c3e6 Ctrl+Clicking a enum now scrolls down to it in the docs. 2018-04-03 21:56:54 +02:00
Gilles Roudiere
6435894275 Fixes issues with selectable children and locks 2018-04-03 21:31:15 +02:00
Dmitriy Romanov
0812468d05
Fix Collada material roughness import function 4
Made import conversion linear.
2018-04-03 22:05:13 +03:00
Rémi Verschelde
36ca622466
Merge pull request #17935 from Rubonnek/remove-unneeded-sort
Removed unneeded sort from SpriteFramesEditor plugin
2018-04-03 12:46:48 +02:00
Wilson E. Alvarez
bb9c75c5ed
Removed unneeded sort from SpriteFramesEditor plugin 2018-04-02 19:06:13 -04:00
Paulb23
f7c727e6c3 Abstracted the syntax highlighter from text edit 2018-04-02 12:41:44 +01:00
Poommetee Ketson
a492d22952 Mesh: fix crash when creating mesh outline from QuadMesh
Since create_outline can only make outline for PRIMITIVE_TRIANGLES,
when QuadMesh (which is PRIMITIVE_TRIANGLE_FAN) is used to create
outline, will leave `arrays` empty, and crash when it is being indexed
for "indices" subarray.

This PR shows error when there's only one surface and it is not
TRIANGLES. Also prevent the crash if it has more than one surface
and none of them are TRIANGLES (and any other cases that could leave
`arrays` empty) by checking the size of `arrays` == 8 before indexing
it, since the method seems to expect `arrays` to be of that size.
2018-04-01 22:06:47 +07:00
Dmitriy Romanov
0e844f6c91 Fix Collada material roughness import function 3
Improved readability and further tweaking of function
2018-03-31 13:44:46 +03:00
Nikodem Lokatelj
66d2cd3918 perform_node_renames fix for a case where the new name is empty 2018-03-30 14:49:21 +02:00
Dmitriy Romanov
3b29e85257
Fix Collada material roughness import function 2
Fix minus space.
2018-03-29 12:47:24 +03:00
Michael Alexsander Silva Dias
7cbf301f31 Fixed some popups not shrinking their size back when losing items. 2018-03-28 17:04:37 -03:00
Dmitriy Romanov
89f4e71679
Fix Collada material roughness import function
Fixes NaN roughness in Godot when hardness in Blender is set to more than 255.
Also corrects dependency: more hardness = more roughness (it says shininess, but it actually is hardness).
2018-03-28 18:54:33 +03:00
Gilles Roudiere
4b4ed9b724
Merge pull request #17785 from Rubonnek/simplify-canvas-item-logic
Simplify CanvasItemEditor anchor drag logic
2018-03-28 11:56:29 +02:00
Nikodem Lokatelj
836565b249 FIX: FILE_SHOW_IN_EXPLORER now correctly shows the file's directory 2018-03-28 11:34:46 +02:00
Chaosus
9a6b4a3f11 Enable snapping in 2D when control key pressed 2018-03-28 10:07:21 +03:00
Pedro J. Estébanez
a6dc160d5c Use radio-button-like menu entries where applicable 2018-03-27 19:19:45 +02:00
Pedro J. Estébanez
bf14a6deff Support radio-button entries in ItemListPlugin 2018-03-27 19:19:45 +02:00
Pedro J. Estébanez
ab3b1d9f3e Add radio-button-looking entries to PopupMenu
They work exactly the same as current checkbox-decorated items, but in order to preserve compatibility, separate methods are used, like `add_radio_check_item()`. The other option would have been to add a new parameter at the end of `add_check_item()` and the like, but that would have forced callers to provide the defaults manually.

`is_item_checkable()`, `is_item_checked()` and `set_item_checked()` are used regardless the item is set to look as check box or radio button.

Keeping check in the name adds an additional clue about these facts.

Closes #13055.
2018-03-27 19:19:45 +02:00
Pedro J. Estébanez
b76ee30917 Unify http- and percent- encode/decode
There was a percent-prefixed version, which was exposed, and a http-prefixed version which was not (only to GDNative).
This commit keeps the percent-prefixed versions, but with the http-prefixed implementations.
2018-03-27 19:18:30 +02:00
Wilson E. Alvarez
f0db7fca79
Added shortcut to rename files 2018-03-27 05:55:51 -04:00
Wilson E. Alvarez
bc9ef5461b
Simplify CanvasItemEditor anchor drag logic 2018-03-26 14:30:51 -04:00
Crazy-P
efd413916e Fixes replace all not replacing the first word 2018-03-25 15:39:37 +08:00
robfram
7821b70a00 Fix bug added in PR#17589. Resources couldn't be saved to files
This PR fixes the code to avoid saving default environment every time
the project is run whitin the editor.

Should fix #17727. Sorry for the troubles!
2018-03-24 19:16:47 +01:00
Alessandro
eda1e266c8 Fix all categories unfold when one key binding is changed 2018-03-24 17:02:18 +01:00
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
Nikodem Lokatelj
6eac0f6817 Extended node renames function to also rename script instance node path properties and fixed animation rename bug perform_node_renames function now also checks for any script instance with node paths so they also get renamed to point to new paths. This also fixes a bug with animation player renaming where two nodes had the same name. 2018-03-23 12:59:31 +01:00
Rémi Verschelde
32c726f7cd
Merge pull request #17344 from poke1024/multi-add-clear-script
Allow Attach and Clear Script on multiple nodes
2018-03-23 11:37:18 +01:00
Rémi Verschelde
1d07830182
Merge pull request #17490 from robfram/homogenize-check-prop-names
Fix non-valid characters for `input_action`
2018-03-23 11:29:26 +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
699325f9a1
Merge pull request #17505 from ArkDShiggy/invert_y-axis
add option to invert y-axis
2018-03-23 11:28:05 +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
Rémi Verschelde
d486973f58
Merge pull request #17589 from robfram/fix-always-save-at-run
Fix saving unmodified scenes and resources
2018-03-20 11:17:19 +01:00
Julien CATINEAU
57e6b8781c add option to invert y-axis 2018-03-20 08:03:38 +01:00
Rémi Verschelde
ebce36c22f
Merge pull request #17622 from RandomShaper/gltf-fixes
A couple of fixes for glTF importing
2018-03-19 10:18:43 +01:00
Pedro J. Estébanez
1f26da0ad1 Fix animation length from glTF not correctly set 2018-03-19 00:27:14 +01:00
Pedro J. Estébanez
adbe749513 Fix glTF not accepting VEC3 colors
Aside from the colors themselves, the rejection was adding somes issues later in the mesh import process.
2018-03-19 00:27:14 +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