Gilles Roudière
692a78db19
Displays smart snapping guides when snapped
2019-08-21 22:15:51 +02:00
Tomasz Chabora
9520d9706a
Edit TileMap only with TOOL_SELECT
2019-08-21 20:56:15 +02:00
Rémi Verschelde
e6c4ef3455
Merge pull request #31486 from KoBeWi/typos_must_die
...
Fix various typos and style errors in text
2019-08-20 12:50:12 +02:00
Rémi Verschelde
5d8951764a
Merge pull request #31466 from Calinou/improve-2d-path-editors
...
Improve the appearance of 2D path editors
2019-08-20 12:45:47 +02:00
Tomasz Chabora
7e075029c8
Fix various typos and style errors in text
2019-08-19 20:43:42 +02:00
Hugo Locurcio
558e93f069
Improve the appearance of 2D path editors
...
- Add new handle icons for path/polygon editors
- Add smooth path point icons and curve tangent icons
- Use a gray color for tangent lines in the Path2D and Path editors
- Use antialiasing for Path2D lines
2019-08-18 22:27:01 +02:00
Michael Alexsander Silva Dias
c19a66d72f
Simplify structure of preview text in visual shader editor
2019-08-18 13:27:08 -03:00
Rémi Verschelde
ef37f00525
Merge pull request #31453 from Chaosus/vs_code_preview
...
Added code preview to visual shader
2019-08-18 17:32:49 +02:00
Rémi Verschelde
9cd58b6916
Merge pull request #31449 from Chaosus/vs_global_expression
...
Added global expressions to visual shaders
2019-08-18 17:31:39 +02:00
Yuri Roubinski
808e44df6d
Added code preview to visual shader
2019-08-18 17:28:19 +03:00
Rémi Verschelde
2920c8fbaa
Merge pull request #31447 from Calinou/spatial-editor-use-shortcut-tooltips
...
Use shortcut tooltips in the spatial editor
2019-08-18 16:07:05 +02:00
Yuri Roubinski
e3b43771aa
Added global expressions to visual shaders
2019-08-18 08:49:56 +03:00
Hugo Locurcio
78878fbc97
Improve "Snap Object to Floor" functionality
...
- Display an error message if no selected nodes could be snapped
- Only register an undo/redo action if at least one node
could be snapped
- Increase the maximum snapping height to 20
- Increase the negative snapping limit to 0.2
2019-08-18 01:50:25 +02:00
Hugo Locurcio
35ad0475c3
Use shortcut tooltips in the spatial editor
...
This makes the tooltips display the correct shortcuts in case
they are changed, as is done automatically by `set_shortcut()`.
Button shortcuts are now used to apply shortcut actions,
which makes for cleaner code.
2019-08-17 23:39:28 +02:00
Braden Bodily
71d71d55b5
Replace 'ERR_EXPLAIN' with 'ERR_FAIL_*_MSG' in 'core/' and 'editor/'
...
Condensed some if and ERR statements. Added dots to end of error messages
Couldn't figure out EXPLAINC. These files gave me trouble: core/error_macros.h, core/io/file_access_buffered_fa.h (where is it?),
core/os/memory.cpp,
drivers/png/png_driver_common.cpp,
drivers/xaudio2/audio_driver_xaudio2.cpp (where is it?)
2019-08-17 12:33:15 +02:00
Hugo Locurcio
108f9646f5
Add an outline to box selection rectangles for better visibility
...
This also refactors selection box color definitions
to avoid repetition.
2019-08-15 22:27:32 +02:00
Rémi Verschelde
b24228e03b
Merge pull request #31391 from Calinou/improve-particles-emission-editor-errors
...
Improve error reporting in the Particles emission point creation dialog
2019-08-15 18:17:54 +02:00
Hugo Locurcio
63d45136dc
Improve error reporting in the Particles emission point creation dialog
...
- Display an error message if the selected node doesn't
extend from Spatial
- Display the selected node name in error messages to provide
additional context when relevant
- Clarify error messages
- Use the standard editor warning dialog
2019-08-15 16:01:39 +02:00
Davide Busterna
7434966f10
Automatically select the first image of the assets page
2019-08-15 13:43:00 +02:00
Rémi Verschelde
188a10df8b
Merge pull request #31263 from Chaosus/vs_plugin
...
Plugin support for visual shaders
2019-08-14 15:52:21 +02:00
Yuri Roubinski
33e9fce1bb
Plugin support for visual shaders
2019-08-14 15:52:27 +03:00
Rémi Verschelde
6c607c3564
Merge pull request #31266 from IAmActuallyCthulhu/pr/remove-redundant-author-comments
...
Remove redundant author doc comments
2019-08-14 13:45:54 +02:00
Rémi Verschelde
6fedb2bf28
Merge pull request #31362 from Calinou/icons-use-lanczos-filtering
...
Use Lanczos filtering for variable-sized images such as project icons
2019-08-14 11:36:54 +02:00
Hugo Locurcio
8f2bcfd909
Use Lanczos filtering for variable-sized images such as project icons
...
This results in better-looking icons with less artifacts
induced by downscaling.
2019-08-13 22:08:23 +02:00
Michael Alexsander Silva Dias
b7c2bcff76
Regression fixup to the theme editor
2019-08-13 15:43:07 -03:00
Rémi Verschelde
f8574da2c2
Merge pull request #31338 from Calinou/reorganize-menus
...
Reorganize various menus for consistency and conciseness
2019-08-13 16:52:42 +02:00
Hugo Locurcio
9e1c23a353
Reorganize various menus for consistency and conciseness
...
- 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 .
2019-08-13 11:52:10 +02:00
Michael Alexsander Silva Dias
3d86ef74e7
Add "Find in Files..." to the text editor
2019-08-12 11:49:45 -03:00
Rémi Verschelde
37a16fee05
Export: Remove temp files from cache after export
...
So far we left most temporary files lying around, so this attempts to
fix that.
I added a helper method to DirAccess to factor out the boilerplate of
creating a DirAccess, checking if the file exists, remove it or print
an error on failure.
2019-08-12 13:31:59 +02:00
IAmActuallyCthulhu
82b9557803
Remove redundant author doc comments
2019-08-12 04:26:38 -05:00
Rémi Verschelde
b18747af4b
Merge pull request #31179 from KoBeWi/code_editor_magic
...
Add Evaluate Selection option to Script Editor
2019-08-12 11:19:26 +02:00
Rémi Verschelde
6c8434a98d
Merge pull request #31251 from YeldhamDev/text_editor_goto_full
...
Move "Go to Line..." from "Edit" to "Go To" in text editor
2019-08-12 10:00:47 +02:00
Rémi Verschelde
a1dde73372
Merge pull request #31247 from YeldhamDev/theme_editor_fixup
...
Minor fixups to the theme editor
2019-08-12 09:59:29 +02:00
miwanczuk
7254284efd
Adds support for undo/redo for in-editor color picker
2019-08-10 00:46:31 +02:00
Michael Alexsander Silva Dias
68ce87fbab
Move "Go to Line..." from "Edit" to "Go To" in text editor
2019-08-09 17:23:42 -03:00
Michael Alexsander Silva Dias
1c872c75db
Minor fixups to the theme editor
2019-08-09 16:26:43 -03:00
Rémi Verschelde
24a6b3f382
Merge pull request #31222 from YeldhamDev/editplugins_cosmetic_changes
...
Minor cosmetic changes in some editor plugins
2019-08-09 10:07:14 +02:00
Rémi Verschelde
6bb2717005
Merge pull request #31220 from YeldhamDev/goto_single_menu
...
Move "Go to Function/Line" to "Go To" menu
2019-08-09 09:38:10 +02:00
Rémi Verschelde
806c315a05
Merge pull request #31193 from creikey/cpuparticles-gizmo
...
Add particles icon to CPUParticles
2019-08-09 09:06:49 +02:00
Michael Alexsander Silva Dias
eeb9268800
Minor cosmetic changes in some editor plugins
2019-08-08 23:22:33 -03:00
Michael Alexsander Silva Dias
31584dd511
Move "Go to Function/Line" to "Go To" menu
2019-08-08 22:36:51 -03:00
Cameron Reikes
345fcb96a2
Add particles icon to CPUParticles
2019-08-08 16:28:01 -07:00
Rémi Verschelde
460226cb71
Merge pull request #31042 from iwek7/fixColorPickerInEditor
...
Fixes color picker in code editor - it now only changes one color
2019-08-08 22:03:14 +02:00
Rémi Verschelde
19f41bd224
Merge pull request #31212 from YeldhamDev/script_editor_icon_update
...
Update icons in script editor when theme changes
2019-08-08 21:59:49 +02:00
Yuri Roubinski
6c8a55aa0d
Fix incorrect search member in visual shaders
2019-08-08 22:19:42 +03:00
iwek7
e7b07e1e58
Fixes color picker in code editor - now it only changes one color
2019-08-08 19:12:13 +02:00
Michael Alexsander Silva Dias
7bb7b77a07
Update icons in script editor when theme changes
2019-08-08 13:39:53 -03:00
Rémi Verschelde
6362330350
Merge pull request #31178 from Chaosus/vs_copy_between_graphs
...
Allow copy/paste nodes between vertex/fragment/light modes in vshaders
2019-08-08 13:49:18 +02:00
Rémi Verschelde
67a9f2646b
Merge pull request #31196 from bojidar-bg/31115-asset-library-save-error
...
Handle all download errors in the asset library
2019-08-08 10:50:39 +02:00
Bojidar Marinov
2b08cc16f1
Handle all download errors in the asset library
...
Addresses part of #31115
2019-08-08 10:06:26 +03:00
Michael Alexsander Silva Dias
699afca7ef
Fix error when going to a text file by clicking in a result from "Find in files"
2019-08-07 23:06:33 -03:00
Tomasz Chabora
282deb9a7a
Add Evaluate Selection option to Script Editor
2019-08-08 00:28:33 +02:00
Yuri Roubinski
5e9052fae3
Allow copy/paste nodes between vertex/fragment/light modes in visual shaders
2019-08-07 16:46:47 +03:00
Rémi Verschelde
a909efeb12
Merge pull request #31173 from sparkart/search_in_tscn
...
Fix Find in Files Not Working Properly
2019-08-07 11:56:18 +02:00
Emmanuel Barroga
0d8c7c30a0
Fix Find in Files Not Working Properly
...
When using the "Find in Files" option to search in non-script files (e.g. .tscn), the search does not work properly.
2019-08-06 23:57:14 -07:00
Rémi Verschelde
78e84c29e6
Merge pull request #31057 from Chaosus/vs_mix_improvements
...
Some improvements to Mix visual shader function
2019-08-07 08:22:08 +02:00
Hugo Locurcio
4a28657cf5
Tweak range steps in the animation editor
...
This makes the step of the "frame" SpinBox larger, so that clicking
on the SpinBox arrows will make the number increase in a visible manner.
Previously, the full number was being cut off due to the SpinBox
being narrow.
This also makes the "step" SpinBox allow for more precise input.
2019-08-06 12:25:53 +02:00
Yuri Roubinski
d0dc195da8
Some improvements to Mix visual shader function
2019-08-06 08:06:49 +03:00
Hugo Locurcio
8b12498f8b
Improve snapping in the animation editor
...
Snapping can now be toggled temporarily by holding the Ctrl key.
Toggling timeline snapping is now done with the "Snap" checkbox rather
than by setting the animation's "Step" setting to 0.
The timeline cursor can no longer exit the animation's boundaries
if the animation's "Step" is set to 0.
2019-08-06 01:44:10 +02:00
Yuri Roubinski
43ee35431e
Fix opening of sub-resource properties in visual shaders
2019-08-05 17:13:02 +03:00
Rémi Verschelde
7c3805019d
Merge pull request #31085 from sparkart/fix_redundant_navpolygons
...
Fix Redundant Navigation Polygons
2019-08-05 09:43:35 +02:00
Rémi Verschelde
7d5ad99cde
Merge pull request #31063 from rzllmr/fix-tilemap-order
...
Fix row-column-swap in TileMap palette
2019-08-05 08:12:14 +02:00
Rémi Verschelde
d9bba94d60
Merge pull request #31053 from aaronfranke/vector2i-cleanup
...
Some minor Vector2i usage cleanup
2019-08-05 08:08:57 +02:00
Rémi Verschelde
00efb61fbd
Merge pull request #31048 from Calinou/fix-gizmo-size-low-viewport-height
...
Fix 3D manipulator the gizmo growing too large on small viewports
2019-08-05 08:07:13 +02:00
Emmanuel Barroga
6c83550dfc
Fix Redundant Navigation Polygons
...
When adjusting the vertices of a navigation polygon, the tile editor would create a duplicate navigation polygon. So each time you made an adjustment, another copy of the polygon would be created.
2019-08-04 16:09:57 -07:00
rzllmr
653039151a
Fix row-column-swap in TileMap palette
...
Due to the TileSet coordinates using x for columns and y for rows, the
columns are assigned to the rows in the TileMap palette and distort the
order. Thus the default sorting algorithm prioritizing x is replaced
with a custom one prioritizing y.
Fixes #24751
2019-08-03 21:32:13 +02:00
Yuri Roubinski
8a0767d883
Return back spacer for non-expression nodes in visual shader
2019-08-03 18:54:04 +03:00
Aaron Franke
1a06496f45
Some Vector2i usage cleanup
...
Replace casting Vector2 -> Vector2i -> Vector2 with a simple call to .floor(), and some minor fixes.
2019-08-03 01:11:05 -07:00
Hugo Locurcio
20154d3b2a
Fix 3D manipulator the gizmo growing too large on small viewports
...
This closes #27112 . This closes #19116 .
2019-08-03 03:01:32 +02:00
Yuri Roubinski
770ce20ea3
Added link to docs for shader editor
2019-08-02 17:09:04 +03:00
Rémi Verschelde
69e6dc9164
Merge pull request #31015 from Calinou/improve-gizmo-axis-colors
...
Improve the gizmo axis colors and increase the manipulator opacity
2019-08-02 11:22:27 +02:00
Rémi Verschelde
46986321c1
Merge pull request #31001 from KoBeWi/come_back_script
...
Add Reopen Closed Script option in Script Editor
2019-08-02 11:18:21 +02:00
Hugo Locurcio
d57680cf34
Improve the gizmo axis colors and increase the manipulator opacity
...
The new colors should make it easier to see the manipulator gizmo.
Highlighted gizmos are now fully opaque (instead of being white),
keeping the color information while a gizmo is highlighted.
This also adds a setting hint for the manipulator gizmo opacity
editor setting.
Axis colors were taken from Blender 2.80.
This partially addresses #16154 .
2019-08-01 14:30:35 +02:00
Tomasz Chabora
5718599bd2
Add Reopen Closed Script option in Script Editor
2019-08-01 13:32:30 +02:00
Rémi Verschelde
3a6102a6f7
Merge pull request #31010 from Chaosus/vs_fix_expression
...
Some visual fixes for Expression node in visual shaders
2019-08-01 10:50:33 +02:00
Chaosus
82e2efe591
Some visual fixes for Expression node
2019-08-01 11:03:23 +03:00
Chaosus
8b4c538ab2
Expose several GLES3 built-ins to GLES2
2019-07-31 19:00:10 +03:00
Chaosus
f704506807
Implement copy/paste in visual shaders
2019-07-31 12:43:29 +03:00
Rémi Verschelde
9da24f7e3d
Merge pull request #30938 from nobuyukinyuu/2d-editor-zoom-p1
...
Changes default canvas_item_editor coarse zoom level from 1.5 to sqrt(2)
2019-07-30 00:57:43 +02:00
nobuyuki_nyuu
3f516622c3
Changes default coarse 2d zoom level from 1.5 to sqrt(2).
2019-07-29 17:12:03 -05:00
Rémi Verschelde
b697121d75
Merge pull request #30895 from clayjohn/gles2-shader-funcs
...
Added round function to gles2
2019-07-29 22:43:26 +02:00
clayjohn
3f25dde6b4
added round function to gles2
2019-07-29 11:17:08 -07:00
Bojidar Marinov
68b5f101c7
Make it so that 2D viewport does not pan while editing tilemaps
...
Fixes #30875
2019-07-28 17:00:05 +03:00
Aaron Franke
53d2a4e905
Snap transform gizmo values in the 3D editor
...
Snap to step size, and then also be careful to only display that many digits (to avoid numbers like 1.234001)
2019-07-25 19:40:35 -04:00
Paulb23
e51aa14208
Fix memory leaks with SyntaxHighlighters
2019-07-25 17:30:48 +01:00
Rémi Verschelde
c608b6f648
Merge pull request #23334 from malbach/align_sel_view
...
Add 'Move to view' and make 'Align to view' only align
2019-07-24 08:33:23 +02:00
Rémi Verschelde
06a6507751
Merge pull request #30772 from mbrlabs/view-distance
...
Increased max view distance in spatial editor plugin
2019-07-23 16:32:09 +02:00
malbach
4a218b9862
Add 'Align Rotation with View' to spatial editor
2019-07-23 15:14:03 +02:00
Rémi Verschelde
4c943cca2c
Merge pull request #30716 from qarmin/fixed_static_analiser_code
...
Fix some code found by Coverity Scan and PVS Studio
2019-07-23 15:08:44 +02:00
Marcus Brummer
4c8fa414bb
Increased max view distance in spatial editor plugin
...
Increased from 10000 to 1000000. I also removed two related magic numbers.
Closes #30766 .
2019-07-23 11:42:41 +02:00
qarmin
aab8da25ad
Fix some code found by Coverity Scan and PVS Studio
2019-07-23 09:14:31 +02:00
Rémi Verschelde
017b224a87
Merge pull request #30713 from bojidar-bg/30615-trackpad-2d-viewport
...
Improve touchpad support in 2d editor viewport
2019-07-22 14:06:28 +02:00
Rémi Verschelde
9f5b77acc9
Revert "Expose "meta" to the Inspector"
2019-07-22 12:03:57 +02:00
Bojidar Marinov
e37594824f
Improve touchpad support in 2d editor viewport
...
Implements ideas from #30615
2019-07-20 17:55:02 +03:00
Rémi Verschelde
d15cf7b672
Merge pull request #30576 from qarmin/lgtm_coverage
...
Changed some code reported by LGTM and Coverity
2019-07-20 12:00:13 +02:00
qarmin
6cbaf7662f
Changed some code showed in LGTM and Coverage
2019-07-20 08:09:57 +02:00
qarmin
ed84c9e506
Don't allow to pass to _is_node_locked function NULL pointer
2019-07-19 17:56:35 +02:00
Rémi Verschelde
9384b6ab0e
i18n: Sync translation template with current source
...
Fix a few typos in new strings.
2019-07-19 16:08:40 +02:00
Rémi Verschelde
2ca3e47d66
Merge pull request #22642 from YeldhamDev/inspector_metadata
...
Expose "meta" to the Inspector
2019-07-19 14:39:23 +02:00
Hugo Locurcio
ddf83d93b3
Improve preview and screenshot display in the asset library
...
Images are now resized with Lanczos interpolation for higher quality.
Video thumbnails now display a "pointing hand" cursor when hovered
as they will open in an external browser.
2019-07-18 20:10:30 +02:00