summaryrefslogtreecommitdiff
path: root/editor
AgeCommit message (Collapse)Author
2018-04-07Merge pull request #17754 from Crazy-P/Resloves_Replace_all_doesnt_replace_allJuan Linietsky
Resloves Replace all doesnt replace all
2018-04-07Merge pull request #17809 from RandomShaper/menu-item-on-releaseJuan Linietsky
Improve popup menus usability
2018-04-07Merge pull request #17840 from Dimonasdf/masterJuan Linietsky
Fix Collada material roughness import function
2018-04-07Improve popup menus usabilityPedro J. Estébanez
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-06Fix skeleton import from glTFPedro J. Estébanez
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-06Merge pull request #17970 from PJB3005/18-04-04-commandline-export-error-clarityRémi Verschelde
Explicitly print an error when --export fails.
2018-04-04Merge pull request #17784 from Rubonnek/rename-shortcutRémi Verschelde
Added shortcut to rename files
2018-04-04Explicitly print an error when --export fails.Pieter-Jan Briers
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-04Update transform buttons in tile editor while using T, A, S shortcuts (fixes ↵Alexander Alekseev
#17962)
2018-04-04Merge pull request #17816 from NikodemL/fix_file_show_in_explorerRémi Verschelde
FIX: FILE_SHOW_IN_EXPLORER now correctly shows the file's directory
2018-04-04Merge pull request #17863 from covariantlabs/add-move-selected-tilesRémi Verschelde
Add functionality to move selected tiles in tile map editor
2018-04-04Merge pull request #17923 from Paulb23/add_abstract_syntax_highlighterRémi Verschelde
Abstracted the syntax highlighter from text edit.
2018-04-04Add functionality to move selected tiles in tile map editorMartin Rieke
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-03Merge pull request #17832 from YeldhamDev/popups_size_fixRémi Verschelde
Fixed some popups not shrinking their size back when losing items
2018-04-03Merge pull request #17865 from delftswa2018/enumLookupFixRémi Verschelde
Ctrl+Clicking a enum now scrolls down to it in the docs.
2018-04-03Ctrl+Clicking a enum now scrolls down to it in the docs.Felix Yang
2018-04-03Fix Collada material roughness import function 4Dmitriy Romanov
Made import conversion linear.
2018-04-03Merge pull request #17935 from Rubonnek/remove-unneeded-sortRémi Verschelde
Removed unneeded sort from SpriteFramesEditor plugin
2018-04-02Removed unneeded sort from SpriteFramesEditor pluginWilson E. Alvarez
2018-04-02Abstracted the syntax highlighter from text editPaulb23
2018-04-01Mesh: fix crash when creating mesh outline from QuadMeshPoommetee Ketson
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-03-31Fix Collada material roughness import function 3Dmitriy Romanov
Improved readability and further tweaking of function
2018-03-29Fix Collada material roughness import function 2Dmitriy Romanov
Fix minus space.
2018-03-28Fixed some popups not shrinking their size back when losing items.Michael Alexsander Silva Dias
2018-03-28Fix Collada material roughness import functionDmitriy Romanov
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-28Merge pull request #17785 from Rubonnek/simplify-canvas-item-logicGilles Roudiere
Simplify CanvasItemEditor anchor drag logic
2018-03-28FIX: FILE_SHOW_IN_EXPLORER now correctly shows the file's directoryNikodem Lokatelj
2018-03-28Enable snapping in 2D when control key pressedChaosus
2018-03-27Added shortcut to rename filesWilson E. Alvarez
2018-03-26Simplify CanvasItemEditor anchor drag logicWilson E. Alvarez
2018-03-25Fixes replace all not replacing the first wordCrazy-P
2018-03-24Fix bug added in PR#17589. Resources couldn't be saved to filesrobfram
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-23Merge pull request #17706 from Calinou/overhaul-hidpi-settingsRémi Verschelde
Overhaul the display scaling editor settings
2018-03-23Overhaul the display scaling editor settingsHugo Locurcio
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-23Merge pull request #17344 from poke1024/multi-add-clear-scriptRémi Verschelde
Allow Attach and Clear Script on multiple nodes
2018-03-23Merge pull request #17490 from robfram/homogenize-check-prop-namesRémi Verschelde
Fix non-valid characters for `input_action`
2018-03-23Merge pull request #17496 from robfram/fix-f3-change-editor-and-findRémi Verschelde
Fix pressing `F3` do both changing to script editor AND find next text
2018-03-23Merge pull request #17505 from ArkDShiggy/invert_y-axisRémi Verschelde
add option to invert y-axis
2018-03-23Merge pull request #17576 from Mr-Slurpy/masterRémi Verschelde
Allow users to add items to Tool menu
2018-03-21Prevented external editor from running multiple timesIvan Vodopiviz
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-20Merge pull request #17589 from robfram/fix-always-save-at-runRémi Verschelde
Fix saving unmodified scenes and resources
2018-03-20add option to invert y-axisJulien CATINEAU
2018-03-19Merge pull request #17622 from RandomShaper/gltf-fixesRémi Verschelde
A couple of fixes for glTF importing
2018-03-19Fix animation length from glTF not correctly setPedro J. Estébanez
2018-03-19Fix glTF not accepting VEC3 colorsPedro J. Estébanez
Aside from the colors themselves, the rejection was adding somes issues later in the mesh import process.
2018-03-18Fix saving unmodified scenes and resourcesrobfram
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-17Added tool menu functions in EditorPluginMr-Slurpy
2018-03-17Fix non-valid characters for `input_action`robfram
Add a new function to check action names, `_validate_action_name`, in the spirit of `_valprop`. Offending characters include non-printable ascii, and `\/=:"`. Also set only one text for the UI message.
2018-03-17Fixes scrollbars in Canvas Item EditorGilles Roudiere
2018-03-16Fix pressing `F3` do both changing to script editor AND find next textrobfram
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