Commit Graph

655 Commits

Author SHA1 Message Date
Dmitry Kram d766738991 Fix snap mode selector sticking in texture region module
When changing snap mode in texture region plugin ticks was not updating. Issue fixed changing order of setting checked status and setting snap mode.
2016-11-27 02:56:42 +02:00
Juan Linietsky a732708b9d Blend shapes using transform feedback (GPU) 2016-11-24 20:46:55 -03:00
Juan Linietsky 943d27f46d Instancing is working! (hooray) 2016-11-22 01:26:56 -03:00
Ben Hickling 4d1acab79b Added snapping to 3D path handles to bring it in line with its 2D counterpart 2016-11-14 14:46:08 +00:00
volzhs c3f4d676c0 Prevent to select children if selection lock or instanced scene
Fix #7086
2016-11-12 22:43:31 +09:00
Juan Linietsky cacf9ebb7f all light types and shadows are working, pending a lot of clean-up 2016-11-09 23:55:06 -03:00
Paulb23 0e2c15e91a Made background and symbol color follow the color API 2016-11-06 13:50:23 +00:00
Rémi Verschelde d4c17700aa style: Fix PEP8 whitespace issues in Python files
Done with `autopep8 --select=E2,W2`, fixes:

- E201 - Remove extraneous whitespace.
- E202 - Remove extraneous whitespace.
- E203 - Remove extraneous whitespace.
- E211 - Remove extraneous whitespace.
- E221 - Fix extraneous whitespace around keywords.
- E222 - Fix extraneous whitespace around keywords.
- E223 - Fix extraneous whitespace around keywords.
- E224 - Remove extraneous whitespace around operator.
- E225 - Fix missing whitespace around operator.
- E226 - Fix missing whitespace around operator.
- E227 - Fix missing whitespace around operator.
- E228 - Fix missing whitespace around operator.
- E231 - Add missing whitespace.
- E231 - Fix various deprecated code (via lib2to3).
- E241 - Fix extraneous whitespace around keywords.
- E242 - Remove extraneous whitespace around operator.
- E251 - Remove whitespace around parameter '=' sign.
- E261 - Fix spacing after comment hash.
- E262 - Fix spacing after comment hash.
- E265 - Format block comments.
- E271 - Fix extraneous whitespace around keywords.
- E272 - Fix extraneous whitespace around keywords.
- E273 - Fix extraneous whitespace around keywords.
- E274 - Fix extraneous whitespace around keywords.
- W291 - Remove trailing whitespace.
- W293 - Remove trailing whitespace.
2016-11-01 00:35:16 +01:00
volzhs a7d492eb53 Fix memory leak with drag & drop on 2D viewport 2016-10-31 11:50:34 +09:00
volzhs 707185d9d8 Fix p_index out of size error when closing script 2016-10-31 06:20:54 +09:00
volzhs 513820ab27 Fix 2 search menus are shown 2016-10-31 00:07:16 +09:00
Juan Linietsky d6567010bf -Many many fixes
-Gizmos work again
2016-10-29 20:48:09 -03:00
Juan Linietsky 53d8f2b1ec PBR more or less working, still working on bringing gizmos back 2016-10-27 11:50:26 -03:00
volzhs eed9179ea3 Improve drag and drop on 2D viewport 2016-10-26 21:21:01 +09:00
Henrique Lacreta Alves 853d1ce9f3 Prevent unwanted script editor input on game crash
Fixes #6530.
2016-10-22 12:54:38 +02:00
Juan Linietsky 4428115916 Everything returning to normal in 3D, still a long way to go
-implemented the scene part of visual server and rasterizer, objects without lighting and material are rendererd only
2016-10-19 11:14:41 -03:00
Rémi Verschelde fc8ccd5b8c SCsub: Add python shebang as a hint for syntax highlighting
Also switch existing shebangs to "better" /usr/bin/env python.
2016-10-17 20:10:46 +02:00
George Marques 682c20be46 Merge pull request #6814 from Hinsbart/animplayer
Only show AnimationEditor automatically when an Animplayer is selected.
2016-10-13 13:07:37 -03:00
Andreas Haas 86fd40b06c
Only show AnimationEditor automatically when an Animplayer is selected.
Previous behaviour was to show it when an AnimationPlayer has been detected in the scene, now you actually have to select it.
Fixes #6213
2016-10-13 12:31:56 +02:00
Andreas Haas 094073e4b2
Refresh TextureRegionEditor when region has been changed externally.
Now the TextureRegionEditor updates when you change the region_rect either via the inspector or via
undo/redo.

Fixes #6772
2016-10-11 11:31:25 +02:00
Rémi Verschelde f3106cddb3 Merge pull request #6775 from RandomShaper/one-based-col-numbers
Make text column numbers one-based
2016-10-11 09:09:49 +02:00
Pedro J. Estébanez 2f80965845 Make text column numbers one-based
Make one-based the column number on the code editor

Make one-based the column number for GDScript error messages

Make one-based the column number for shader code error messages
2016-10-10 11:56:45 +02:00
Pedro J. Estébanez 0159e4f969 Refactor duplicated code 2016-10-10 10:39:58 +02:00
Pedro J. Estébanez d9c1729a8f Add line length guideline to code editors 2016-10-10 10:39:58 +02:00
Juan Linietsky 850eaf7ed7 -the new shader language seems to work
-shader editor plugin can edit shaders
-code completion in shader editor plugin
2016-10-07 11:31:18 -03:00
Juan Linietsky cf5778e51a -Added ViewportContainer, this is the only way to make viewports show up in GUI now
-2D editing now seems to work
-Added some functions and refactoring to Viewport
2016-10-05 01:26:35 -03:00
Fabio Alessandrelli 63abe3dcd0 Add shortcut to reset cursor position in 3D Editor ( #166 )
The shortcut will focus the origin after you moved around with shift + mouse3.
The default shortcut is the letter "O", like "F" for focus.
This can be customized in the editor shortcuts menu.

Closes #166
2016-10-04 21:42:11 +02:00
Juan Linietsky 22d83bc9f6 Begining of GLES3 renderer:
-Most 2D drawing is implemented
-Missing shaders
-Missing all 3D
-Editor needs to be set on update always to be used, otherwise it does not refresh
-Large parts of editor not working
2016-10-03 21:35:16 +02:00
Rémi Verschelde 803ccb5c7f Merge pull request #6684 from Hinsbart/save_all
Fix "Save All" option in Script editor.
2016-10-03 12:10:25 +02:00
Rémi Verschelde ad280e7bfc Merge pull request #6640 from Hinsbart/color_picker
Add inline ColorPicker to Script text editor.
2016-10-03 12:00:10 +02:00
Andreas Haas ac80e68d2f
Fix "Save All" option in Script editor.
Also removes some old code.
fixes #6667
2016-10-02 20:39:15 +02:00
Andreas Haas f81d009525
Add inline ColorPicker to Script text editor.
Adds an option to the script editor context menu that lets you open
a ColorPicker in order to easily edit `Color()` constructors.
To do this, right click on the word `Color` and select `Pick Color`.

A side effect of this change is that the script editor now has its own
context menu instead of re-using the one from TextEdit.
It's now possible to indent left/right and to toggle comments via this menu.
I also felt free to make it more context-sensitive than before:
Now "Cut" and "Copy" will only be shown if text has actually been selected.

I also added default shortcuts for indent left/right. (alt + left/right)

Closes #6232
2016-09-29 09:12:45 +02:00
Geequlim fd236a4b6c More custom theme support for editor 2016-09-20 20:41:57 +08:00
Rémi Verschelde c47fd20cc6 Merge pull request #6498 from Paulb23/current_script_highlight_fix
Fix highlight current script when script temperature is disabled
2016-09-17 18:36:23 +02:00
Rémi Verschelde 80861b7d59 Merge pull request #6414 from RandomShaper/improve-shader-shadow
Expose additional light/shadow properties to canvas item shaders
2016-09-17 18:34:22 +02:00
Paulb23 fbd0b6f995 Fix highlight current script when script temputure is disabled 2016-09-15 17:34:32 +01:00
Rémi Verschelde dc6eefdbf2 Merge pull request #6465 from Paulb23/script_highlight_color_update
Update current script color on change
2016-09-12 16:33:28 +02:00
Paulb23 a0136838b3 Update current script color on change 2016-09-12 15:19:30 +01:00
Juan Linietsky 37f1e86108 Do ctrl-click on any code identifier to go to definiton or help page. 2016-09-12 10:53:31 -03:00
Juan Linietsky c40ab446c9 Changed default assignment of shorcut for alt-left/right to history next/prev, which is more standard and useful.
Indent can be done with tab and shift-tab anyway.
If you don't like this, feel free to reassign them manually in the editor settings :P
2016-09-11 12:27:14 -03:00
Juan Linietsky 95eb7466df -Added a ColorFrame control, kind of like Texture but for color.
-Added dropping nodes to text editor for them to become a path
-Fixed issues with font not properly being set in code editor
2016-09-11 11:28:01 -03:00
Juan Linietsky 1bf684cea2 -Cleaned up find/replace bar for replace (made selection only default if selection exists), also made buttons look like buttons
-Fixed a bug related to theme propagation, may be able to solve #6443, #6302 and others. Please test.
2016-09-11 10:05:46 -03:00
Juan Linietsky 65b93d177e -Added bindings to the resource filesystem for editor
-Added set_child_rect, which was unavailable for script
2016-09-10 17:34:27 -03:00
Juan Linietsky 491dde2eb4 Made it possible to properly draw over the 2D canvas for 2D objects. Arranged some functions to achieve this. 2016-09-10 16:44:03 -03:00
Juan Linietsky fc61eb37ce Merge pull request #5920 from 29jm/fix-warnings
Fix some more warnings
2016-09-10 12:21:02 -03:00
Juan Linietsky 3c30a3b1aa Merge pull request #6137 from supaiku-o/master
Add a Close All files option to script editor
2016-09-10 12:07:39 -03:00
Paulb23 a82ecf6d80 Added customisable grid color, issue 3781 2016-09-08 14:53:39 +01:00
Rémi Verschelde 633f940c96 Merge pull request #6368 from Garmelon/issue-6320
Tilemap editor: Bucket tool - allow deleting and replacing of tiles
2016-09-08 07:58:06 +02:00
George Marques 6aedff7968 Merge pull request #6418 from RandomShaper/canvas-show-hide-bones
Add show bones checkable menu item
2016-09-07 23:53:46 -03:00
Paulb23 9e92fcaef9 Added setting to change current script background color, issue 5450 2016-09-07 17:54:20 +01:00
Pedro J. Estébanez 17c5fc5955 Add show bones checkable menu item 2016-09-07 11:10:28 +02:00
Pedro J. Estébanez 0960887625 Expose light shadow color to canvas item shaders 2016-09-07 01:52:54 +02:00
Joscha acd41d964a Tilemap editor: Bucket tool - allow deleting and replacing of tiles 2016-09-02 12:04:52 +00:00
Rémi Verschelde ace2ad961c Merge pull request #6228 from manokara/tilemap-someinfo
Add mouse position information in TileMap.
2016-08-31 07:42:14 +02:00
Mark Nokalt cd71fcb097 editor: Add mouse position information in TileMap 2016-08-30 19:58:17 -03:00
Rémi Verschelde e51d59ed98 Merge pull request #6188 from TheHX/undo-redo
Implemented UndoRedo mergeable modes
2016-08-29 19:04:42 +02:00
Daniel J. Ramirez 70c9979cce Double click on scene tree element to focus currently selected node
In 3D it will focus in the first viewport
Enable double click for trees
2016-08-27 17:15:49 -05:00
Rémi Verschelde 1b01246731 Merge pull request #6186 from TheHX/pr-issue-5878
Fix editor glitches when the mesh/material preview is shown
2016-08-27 22:01:20 +02:00
Rémi Verschelde 475b944f9c Merge pull request #6094 from djrm/texure_region_zoom_by_scroll
Zoom texture region using mouse wheel
2016-08-27 21:43:55 +02:00
Juan Linietsky 9c6175db11 More visual script work
-Block switches to 2d/3d editor if editing visual script
-Added cast node in flow control
-Added ability to do RPC in visual script
-Comment nodes
-Fix bug with inverted cable in connecting backwards
-Copy and paste nodes, including from different scripts
2016-08-25 17:45:20 -03:00
Juan Linietsky dc7139c90d Making bits of docs appear in different dialogues is made easier with EditorHelpBit 2016-08-23 23:15:16 -03:00
Franklin Sobrinho debf574df3 Implemented UndoRedo mergeable modes 2016-08-17 17:14:51 -03:00
Franklin Sobrinho a4c3d2dc89 Fix editor glitches when the mesh/material preview is shown 2016-08-16 12:10:44 -03:00
Franklin Sobrinho 0fa26cd850 Small usability improvements on the TileMap editor tile palette.
* The column width changes with the zoom, now the icons don't overlap.
  * Added a tile hsepation setting.
  * Added a setting to show/hide tile names.
2016-08-16 06:00:47 -03:00
Johan Manuel cec1c48a7e Fix various warnings
The warnings fixed were about things like unused variables, misleading
indentation, missing default cases in switches and better grouping of
conditions in if statements.
2016-08-13 13:21:35 +02:00
supaiku 3d84849e03 Added CLOSE_ALL files option to script editor 2016-08-13 02:56:38 +02:00
Daniel J. Ramirez 1e7d0c6ac1 Zoom texture region via mouse wheel 2016-08-09 17:28:40 -05:00
Juan Linietsky 9890c1d2ca Likely with bugs and with some features are missing, as well as profiler support, but VisualScript should be more or less done! 2016-08-06 19:00:54 -03:00
Saracen b578cf4da8 TextureRegionEditor snap_mode fix. 2016-08-04 19:49:11 +01:00
Paulb23 e8780d9d32 Added missing license and quotation typo 2016-08-03 16:16:20 +01:00
Juan Linietsky 3d1d190dcd Merge branch 'master' of https://github.com/godotengine/godot 2016-08-02 19:11:47 -03:00
Juan Linietsky ad313097eb WIP visual scripting, not working yet but you can check out stuff 2016-08-02 19:11:05 -03:00
Saracen 5035edb7fd Explicitly initialize 'pending_auto_reload' to false. 2016-07-29 13:51:26 +01:00
Daniel J. Ramirez 213a57ccaf Stop baking process if there is no geometry in the BakedLightInstance.
moved missing baked light warning to BakedLightInstance configuration warning
2016-07-25 21:45:20 -05:00
MarianoGNU 6622a3d110 Prevent crash in TextureRegionEditor. Fixes #5862 2016-07-22 21:11:12 -03:00
Juan Linietsky 3aeafcae04 Removed support for saving paths as relative, closes #5728
Editor now has good refactoring tools, so this function is mostly obsolete
2016-07-22 10:39:46 -03:00
Juan Linietsky 12472534ec Show a warning that an animation must be selected in order to edit it. Avoid copying/pasting if no anim selected. Closes #5799 2016-07-22 09:42:12 -03:00
Juan Linietsky 124e3591a5 Some optimizations and limits for extreme zoom in and out in editor, fixes #5820 2016-07-21 10:11:53 -03:00
Rémi Verschelde 750b973ee4 Merge pull request #5200 from neikeq/sc-CanvasItemEditor
Implement ShortCuts in CanvasItemEditor
2016-07-21 09:02:01 +02:00
Ignacio Etcheverry 4e82f9ffcf Implement missing ShortCuts in CanvasItemEditor 2016-07-21 03:28:41 +02:00
Rémi Verschelde 13fe615ea3 Merge pull request #5760 from r1cebank/issue-5636__add-close-docs-option
Script Editor: adding close all docs menu option
2016-07-19 07:35:20 +02:00
Juan Linietsky 3e3108abe2 Always soft reload editor plugins. Closes #5273 2016-07-18 19:24:38 -03:00
Siyuan Gao 0c3b1b51b8 Script Editor: adding close all docs menu option 2016-07-18 10:09:42 -07:00
Franklin Sobrinho 3ca6e584e5 Fix ScriptEditor don't saving the layout when opening a help page
- Use ScriptEditor::_update_script_names just once when re-creating the layout
2016-07-18 12:30:43 -03:00
Rémi Verschelde 62eae7cbe2 Merge pull request #5723 from Paulb23/toggle_breakpoint_gutter_issue_5712
Fixed toggle breakpoint gutter not updating when the game is running, issue 5712
2016-07-18 00:52:36 +02:00
Rémi Verschelde 3183834c5d Merge pull request #5657 from Paulb23/block_caret
Added block caret to TextEdit
2016-07-18 00:44:45 +02:00
Ignacio Etcheverry 2bba1bf770 CanvasItemEditor: Changed Frame Selection shortcut 2016-07-15 21:38:43 +02:00
Paulb23 b550471a14 Fixed breakpoint gutter toggle not updating when game is running, issue 5712 2016-07-15 15:02:55 +01:00
Paulb23 54f720ac06 Added block caret to TextEdit 2016-07-12 16:07:17 +01:00
Paulb23 a9956be63d Added completion font colors 2016-07-11 14:25:56 +01:00
Paulb23 8e5c40b364 Added completion scroll color 2016-07-11 14:11:34 +01:00
Juan Linietsky 46bb02991f Merge pull request #5270 from lonesurvivor/master
Added Tile Origin = Bottom Left option to the TileMap
2016-07-10 13:41:33 -03:00
Juan Linietsky 7bfb84af08 Merge pull request #5611 from TheHX/spatial-gizmo
Fix EditorSpatialGizmo virtual functions not being called
2016-07-10 13:08:13 -03:00
Juan Linietsky 5dd6530acf Merge pull request #5563 from opmana/fix-convert-tileset
Respect frame property when converting to TileSet.
2016-07-10 13:02:55 -03:00
Rémi Verschelde d23d40cfbd Merge pull request #5612 from TheHX/collision-polygon-plugin
Fix CollisionPolygon gizmo showing error icons instead of the 3d handles
2016-07-09 18:27:29 +02:00
Franklin Sobrinho 7cad11e108 Fix CollisionPolygon gizmo showing error icons instead of the 3d handles 2016-07-09 13:18:16 -03:00
Franklin Sobrinho 914d670a71 Fix EditorSpatialGizmo virtual functions not being called
* Bind EditorSpatialGizmo::clear method
2016-07-09 13:10:13 -03:00
Juan Linietsky b0f0ae0723 Finally fixes the infamous bug #4444, hoping to never see you again.
Closes #4444.
2016-07-09 12:12:03 -03:00
Juan Linietsky d8c31e0e74 remove warnings if a script is missing and can't be opened 2016-07-07 21:27:20 -03:00
Rémi Verschelde 3fcb9b1ec1 Removed unused variables (second pass) + dead code
Fixes various gcc 5.4.0 warnings for -Wunused-variable and -Wunused-but-set-variable
2016-07-07 23:15:59 +02:00