summaryrefslogtreecommitdiffstats
path: root/modules/gridmap/grid_map_editor_plugin.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Modernized default 3D material, fixes material bugs.Juan Linietsky2020-02-111-9/+10
|
* Base 3D engine done, still untested, though.Juan Linietsky2020-02-111-2/+1
|
* Changes to material required to add custom shaders in RD rendererJuan Linietsky2020-02-111-2/+0
|
* Texture refactorJuan Linietsky2020-02-111-1/+1
| | | | | | | | -Texture renamed to Texture2D -TextureLayered as base now inherits 2Darray, cubemap and cubemap array -Removed all references to flags in textures (they will go in the shader) -Texture3D gone for now (will come back later done properly) -Create base rasterizer for RenderDevice, RasterizerRD
* Merge pull request #33950 from Calinou/gridmap-editor-zoom-shortcutRémi Verschelde2020-02-101-2/+22
|\ | | | | Implement zooming using Ctrl + Mouse wheel in the GridMap editor
| * Implement zooming using Ctrl + Mouse wheel in the GridMap editorHugo Locurcio2019-11-271-2/+22
| | | | | | | | | | | | The minimum value of the slider was changed to 0.2 as zooming works in increments of 0.2. This way, the value can go back to 1 after you've reached the slider's minimum value.
* | Merge pull request #34706 from KoBeWi/grindputRémi Verschelde2020-01-011-2/+3
|\ \ | | | | | | Don't handle Gridmap input when have no effect
| * | Don't handle Gridmap input when have no effectTomasz Chabora2019-12-301-2/+3
| | |
* | | Update copyright statements to 2020Rémi Verschelde2020-01-011-2/+2
|/ / | | | | | | | | | | | | | | | | | | | | Happy new year to the wonderful Godot community! We're starting a new decade with a well-established, non-profit, free and open source game engine, and tons of further improvements in the pipeline from hundreds of contributors. Godot will keep getting better, and we're looking forward to all the games that the community will keep developing and releasing with it.
* / Makes more editor strings translatableHaoyu Qiu2019-12-301-1/+1
|/ | | | | | | | | * Title of Sprite Editor convert preview dialogs * Title of UV Channel Debug dialog * Various editor warnings * GridMap popup menu item "Paste Selects" * Tileset editor shape button texts * MeshLibrary update confirmation text
* Fixed cases where labels with autowrap can overflow the editor uiPouleyKetchoupp2019-11-041-0/+1
| | | | Fixes #33155
* Merge pull request #32915 from Nehluxhes/gridmap_scalingRémi Verschelde2019-10-251-68/+71
|\ | | | | Gridmap : Mesh preview now scales + grid update on cell size change
| * Mesh preview now scales + grid update on cell size changeNehluxhes2019-10-211-68/+71
| | | | | | | | The mesh preview now correctly scales with cell_scale Refactor the grids creation into _draw_grids() and call it if the cell_size property is changed
* | Merge pull request #32991 from Chaosus/fix_bug2Rémi Verschelde2019-10-221-1/+3
|\ \ | | | | | | Fix gridmap error spam at startup
| * | Fix gridmap error spam at startupYuri Roubinsky2019-10-221-1/+3
| | |
* | | Merge pull request #32969 from Nehluxhes/palette_vanishRémi Verschelde2019-10-221-4/+1
|\ \ \ | |/ / |/| | Fix gridmap palette remaining invisible
| * | Fix gridmap palette remaining invisibleNehluxhes2019-10-211-4/+1
| |/
* / Disable gridmap selection actions when nothing is selectedNehluxhes2019-10-181-1/+6
|/
* Merge pull request #31974 from YeldhamDev/tilegrid_map_fixesRémi Verschelde2019-09-241-25/+8
|\ | | | | Small fixes for the Tile/GridMap editors
| * Small fixes for the Tile/GridMap editorsMichael Alexsander Silva Dias2019-09-041-28/+9
| |
* | Merge pull request #32095 from KoBeWi/silly_userRémi Verschelde2019-09-201-0/+3
|\ \ | | | | | | Properly remove GridMap node from editor on undo
| * | Properly remove GridMap node from editor on undoTomasz Chabora2019-09-111-0/+3
| |/
* / Add informational messages to various editorsMichael Alexsander Silva Dias2019-09-041-3/+16
|/
* Merge pull request #31338 from Calinou/reorganize-menusRémi Verschelde2019-08-131-1/+1
|\ | | | | Reorganize various menus for consistency and conciseness
| * Reorganize various menus for consistency and concisenessHugo Locurcio2019-08-131-1/+1
| | | | | | | | | | | | | | - Clean up the recent scripts dialog to match the recent scenes dialog - Add "..." at the end of shortcuts that cause a modal dialog to appear This closes #31148.
* | Fix GridMap list text not expanding when palette is resizedXenoamor2019-08-121-3/+5
|/ | | This is to close #31304
* Use reference to constant in functionsqarmin2019-07-101-1/+1
|
* Fixes minor issues found by static analyzerqarmin2019-07-071-1/+1
|
* Many fallthrough switch cases now have the FALLTHROUGH macro to tell the ↵hbina0852019-06-291-1/+1
| | | | compiler that this is intended.
* Fix GridMap transform problemsGwyneth Lowe2019-06-251-2/+2
|
* Fixed navigation schemes Modo/Maya when used with grid map tile placementZach Young2019-06-191-2/+4
|
* Release GridMap floor field focus when mouse exitedLisapple2019-05-081-0/+7
|
* GridMap editor fixes and improvementsDaniel Rakos2019-04-301-132/+255
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This change fixes a few outstanding issues and greatly improves the usability of the GridMap editor through the following changes: - Copied mesh now gets displayed during pasting (also renamed the related identifiers accordingly) - Duplication/paste indicator now gets rotated around the correct pivot point (duplication worked properly before, but the indicator was shown misplaced when rotated) - Selected mesh library item cursor is no longer shown during selection and duplication/pasting - Back rotate X/Y/Z is now working during duplication/pasting - Added true cut operation thanks to now having a proper clipboard (clear operation got remapped to the DEL key) - Got rid of some weird workarounds in the duplication code - Fill and clear operations now correctly make the selection marker inactive as this was broken partly due to the workarounds mentioned above (duplication continues to keep the selection marker active to allow subsequent duplications) - Clear current selection on RMB, but treat selection as an action so previous selection can be restored on undo - Separated selection and paste indicator data as it's prone to error and confusion and it's anyway needed now that selection is treated as an action - Added support for cancelling paste, selection, and even unselect the currently selected mesh library item with the ESC key (previously there wasn't a way to unselect) - Changed the key binding of fill/clear/duplicate operations to use Ctrl as a modifier - Changed erase to use RMB instead of Shift+RMB (free look is available through Shift+F anyway, so no need to occupy RMB for it during gridmap editing) - Removed unused area, external connector, and configure menu items (there's also the non-functional clip mode menu items, but I'm not sure whether there are any plans with that, I suppose it's meant to be an editor aid) - Renamed INPUT_COPY to INPUT_PICK to better reflect its purpose - Added support for using Shift+Q and Shift+E to select multiple floors/planes without actually changing the current floor/plane as it happens when using e.g. the mouse wheel Fixes #25373 and #15883
* Add search box and size slider to GridMap (similar to TileMap's)Bojidar Marinov2019-02-261-7/+52
| | | | Closes #21536
* Make translatable some undo/redo operations in the editorMichael Alexsander Silva Dias2019-02-211-1/+1
|
* Add -Wshadow=local to warnings and fix reported issues.marxin2019-02-201-4/+4
| | | | Fixes #25316.
* Update copyright statements to 2019Rémi Verschelde2019-01-011-2/+2
| | | | Happy new year to the wonderful Godot community!
* Get rid of gridmap error due to not yet valid cursor instance, fixes #17546Juan Linietsky2018-11-161-1/+3
|
* Fix warnings for operator precedence disambiguation [-Wparentheses]Rémi Verschelde2018-09-271-6/+8
| | | | | | | | | | | | | | | | | | | | | | Fixes the following GCC 5 warnings: ``` core/io/resource_format_binary.cpp:1721:29: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] core/typedefs.h:108:24: warning: suggest parentheses around comparison in operand of '!=' [-Wparentheses] editor/plugins/spatial_editor_plugin.cpp:2202:58: warning: suggest parentheses around comparison in operand of '!=' [-Wparentheses] editor/plugins/spatial_editor_plugin.cpp:5002:12: warning: suggest explicit braces to avoid ambiguous 'else' [-Wparentheses] main/input_default.cpp:346:59: warning: suggest parentheses around '-' inside '<<' [-Wparentheses] main/input_default.cpp:348:60: warning: suggest parentheses around '-' inside '<<' [-Wparentheses] main/input_default.cpp:579:57: warning: suggest parentheses around '-' inside '<<' [-Wparentheses] modules/gridmap/grid_map_editor_plugin.cpp:613:14: warning: suggest explicit braces to avoid ambiguous 'else' [-Wparentheses] modules/theora/video_stream_theora.cpp:335:34: warning: suggest parentheses around '+' in operand of '&' [-Wparentheses] modules/theora/video_stream_theora.cpp:336:35: warning: suggest parentheses around '+' in operand of '&' [-Wparentheses] modules/visual_script/visual_script_property_selector.cpp:215:38: warning: suggest parentheses around '&&' within '||' [-Wparentheses] scene/gui/rich_text_label.cpp:424:84: warning: suggest parentheses around '&&' within '||' [-Wparentheses] scene/gui/rich_text_label.cpp:512:80: warning: suggest parentheses around '&&' within '||' [-Wparentheses] scene/gui/scroll_container.cpp:173:36: warning: suggest parentheses around '&&' within '||' [-Wparentheses] scene/gui/scroll_container.cpp:173:86: warning: suggest parentheses around '&&' within '||' [-Wparentheses] scene/gui/tree.cpp:1419:98: warning: suggest parentheses around '&&' within '||' [-Wparentheses] ```
* Fix selection box staying when editing a GridMapJFonS2018-09-201-1/+1
|
* Make core/ includes absolute, remove subfolders from include pathRémi Verschelde2018-09-121-3/+3
| | | | | | This allows more consistency in the manner we include core headers, where previously there would be a mix of absolute, relative and include path-dependent includes.
* Add option to move Tile/GridMap editors to another sideMichael Alexsander Silva Dias2018-08-221-14/+35
|
* Rename instances of the word "theme" to "mesh_library" in GridMap and ↵Michael Alexsander Silva Dias2018-08-221-49/+49
| | | | MeshLibrary editors
* Merge pull request #16944 from rainerdeyke/masterMax Hilbrunner2018-07-031-0/+31
|\ | | | | Added 'fill selection' command to grid map editor
| * Add 'fill selection' command to grid map editorRainer Deyke2018-02-231-0/+31
| | | | | | | | | | | | | | | | This commit adds a 'fill selection' command (shortcut: shift+f) to the grid map editor, making it easier to block out large parts of grid maps. The new command is equivalent to the existing 'clear selection' command except that it fills the selection with the currently selected block instead of the empty grid cell.
* | Fixes logically dead code (Coverity)Crazy-P2018-04-211-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | Use radio-button-like menu entries where applicablePedro J. Estébanez2018-03-271-6/+6
| |
* | Merge pull request #17079 from Noshyaar/leak2Rémi Verschelde2018-03-131-2/+3
|\ \ | | | | | | GridMapEditorPlgn: fix a leak
| * | GridMapEditorPlgn: fix a leakPoommetee Ketson2018-02-271-2/+3
| |/
* | GridMap: fix next/prev plane text, fix meta not foundPoommetee Ketson2018-03-021-3/+3
| |