Hugo Locurcio
55b9c6804c
Implement precise snapping in the animation editor
...
Holding Shift while snapping is enabled will now make snapping
4 times as precise.
2019-09-02 15:55:44 +02:00
Hugo Locurcio
f07fc5b434
Implement snapping in the Curve editor
...
Holding Ctrl will snap the selected point/tangent by increments
of 10% of the curve's width/height. Holding Shift as well will snap
by increments of 2.5% instead.
2019-09-02 14:00:22 +02:00
Rémi Verschelde
220ff5baf2
Merge pull request #31829 from KoBeWi/one_tool_to_ruler_2d
...
Add 2D ruler tool
2019-09-02 10:34:09 +02:00
Tomasz Chabora
05e5faa876
Add 2D ruler tool
2019-09-01 18:36:41 +02:00
Cykyrios
ed00313a0b
Reorganize & rename text editor settings categories
...
Add Navigation category for scroll and minimap settings.
Rename Line Numbers category to Appearance.
Rename Open Scripts category to Script List.
Rename "Draw Minimap" setting to "Show Minimap" (this is more consistent with other settings).
Reorder settings by category in code_editor.cpp to match settings list
2019-09-01 13:33:37 +02:00
Chaosus89
8fd8589547
Fix resizer icon visiblity on light theme in GraphNode
2019-09-01 09:12:26 +03:00
Rémi Verschelde
3fdf85cd9b
Merge pull request #31794 from Calinou/editor-increase-line-spacing
...
Increase line spacing in the editor help and asset library descriptions
2019-08-31 22:09:15 +02:00
Rémi Verschelde
7cf58a7f66
Merge pull request #31808 from qarmin/crash_audioogg
...
Fix crash when AudioStreamOGGVorbis is empty
2019-08-31 22:08:37 +02:00
Bhupendra Aole
1de3ec911f
Default ColorPicker color mode setting
...
There is a new setting for Default ColorPicker color mode in Editor Settings->Interface->Inspector. Initially this setting will be RGB. Editor ColorPicker will always start with mode defined in this settiing.
Fixes #30755 and #30754
2019-08-31 00:34:33 -04:00
qarmin
2cd2197362
Fix crash when AudioStreamOGGVorbis is empty
2019-08-30 20:01:14 +02:00
merumelu
e2459479de
Editor: remove TOOLS_ENABLED guards
...
For code inside editor/ `#ifdef TOOLS_ENABLED`
is always true so those checks are redundant.
2019-08-30 19:02:46 +02:00
Hugo Locurcio
d6984f7311
Increase line spacing in the editor help and asset library descriptions
...
This makes for more readable text.
2019-08-30 15:08:24 +02:00
Chaosus89
19d449ec4c
Fix few icons in SpatialEditor which don't update when theme changed
2019-08-30 11:26:01 +03:00
Michael Alexsander Silva Dias
edc3600560
Minor cleanup of the AssetLib's asset dialog
2019-08-29 02:37:44 -03:00
Michael Alexsander Silva Dias
6ce2701abe
AssetLib minor fixes and enhancements
2019-08-28 01:36:09 -03:00
Rémi Verschelde
d8de8d5e34
Merge pull request #31722 from Calinou/assetlib-improve-image-loading-speed
...
Improve image loading performance in the asset library
2019-08-27 20:19:17 +02:00
Hugo Locurcio
89c13c3ae9
Display a "broken file" icon for missing images in the asset library
...
This partially addresses #31683 .
2019-08-27 19:45:25 +02:00
Hugo Locurcio
2ed7bf58ba
Improve image loading performance in the asset library
...
This closes #31614 .
2019-08-27 19:41:49 +02:00
Rémi Verschelde
5883f912b3
Merge pull request #31676 from KoBeWi/this_shader_is_a_history
...
Clear undo history on shader load
2019-08-26 22:02:53 +02:00
Rémi Verschelde
bf8322376c
Merge pull request #31674 from dankan1890/drag&drop_tileset
...
Added drag and drop to the tileset plugin.
2019-08-26 15:50:25 +02:00
Tomasz Chabora
766b27662a
Clear undo history on shader load
2019-08-26 15:15:29 +02:00
Rémi Verschelde
816ddd7817
Merge pull request #31556 from Chaosus/gles2_inverse
...
Implemented inverse shader function to GLES2
2019-08-26 13:52:03 +02:00
Rémi Verschelde
1222df0ad0
Merge pull request #31585 from 2shady4u/removeguides
...
Added button/shortcut for removing all guides
2019-08-26 13:51:10 +02:00
Rémi Verschelde
f6984e8058
Merge pull request #31615 from Calinou/assetlib-improve-loading
...
Improve loading UX in the asset library
2019-08-26 12:05:11 +02:00
dankan1890
1f560c4679
Added drag and drop to the tileset plugin.
2019-08-26 11:15:19 +02:00
Yuri Roubinski
ac4e6f0041
Fix _get_description param name (visual shaders)
2019-08-25 13:06:16 +03:00
Yuri Roubinski
1d2e5f281e
Fixes for visual shader member filter
2019-08-25 11:01:42 +03:00
Yuri Roubinski
494ea78610
Small performance fix for preview in visual shader
2019-08-25 09:22:09 +03:00
Yuri Roubinski
7f350a2c71
Enhanced preview for a visual shader to show errors
2019-08-25 08:42:21 +03:00
shaderbeast
c6fb6a6a21
Added button/shortcut for removing all guides
...
Added undo/redo
Correctly added has_meta
2019-08-24 22:58:16 +02:00
Hugo Locurcio
f524dc5da6
Improve loading UX in the asset library
...
The asset library will now fade when loading pages instead
of displaying a progress bar, which is a more common design pattern
when browsing an online resource's pages.
A "Loading..." text will be displayed before the first page loads.
2019-08-24 03:08:52 +02:00
Rémi Verschelde
2e5ba32b4b
Merge pull request #31545 from groud/add_smart_snapping_display
...
Displays smart snapping guides when snapped
2019-08-22 13:12:09 +02:00
Yuri Roubinski
4dcee2035a
Implemented inverse shader function to GLES2
2019-08-22 08:22:49 +03:00
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
Michael Alexsander Silva Dias
19d261336b
Minor improvements to the AssetLib
2019-07-17 12:35:57 -03:00
Cameron Reikes
d4bed7586d
Lower priority of anchor helper input
...
- Fixes #30132
2019-07-16 11:33:40 -07:00
Rémi Verschelde
22c843b0c4
Merge pull request #30602 from n-k-chilagani/first_time
...
Fixed Make 3D viewport locked nodes unselectable as in 2D viewport
2019-07-16 11:35:16 +02:00
Nikhil Kumar
600c153076
Fixed Make 3D viewport locked nodes unselectable as in 2D viewport #29903
2019-07-16 14:19:20 +05:30
Rémi Verschelde
0ad6a1c66e
Merge pull request #30561 from Calinou/2d-guides-use-resize-cursors
...
Use resize cursors when hovering or dragging guides in the 2D editor
2019-07-16 08:54:04 +02:00
Hugo Locurcio
0fb80d7b0f
Use resize cursors when hovering or dragging guides in the 2D editor
...
This also tweaks the casing in undo/redo action names for consistency.
This closes #30550 .
Co-authored-by: Emmanuel Barroga <emmanuelbarroga@gmail.com>
2019-07-15 14:24:45 +02:00
Rémi Verschelde
58fd123f45
Merge pull request #30581 from KoBeWi/tiled_shorts
...
Add tilemap editor rotation hotkeys
2019-07-15 11:02:40 +02:00
Rémi Verschelde
1db3d987b2
Merge pull request #30565 from bojidar-bg/27468-region-editor-in-the-way
...
Fix TextureRegionEditorPlugin popping up even when explicitly hidden
2019-07-15 08:17:24 +02:00
Rémi Verschelde
23f5154de7
Merge pull request #30532 from Chaosus/vs_triplanar
...
Added triplanar uniform texture node to visual shaders
2019-07-15 07:56:06 +02:00
Chaosus
e82b5e910a
Better boolean indication in visual shaders
2019-07-15 08:31:51 +03:00
Tomasz Chabora
38d9434098
Add tilemap editor rotation hotkeys
2019-07-14 15:46:47 +02:00
Bojidar Marinov
b648d3e110
Fix TextureRegionEditorPlugin popping up even when explicitly hidden
...
Fixes #27468
2019-07-13 21:55:32 +03:00
Chaosus
d56fc13cad
Highlight GLES3 functions in the visual shader member panel
2019-07-12 17:58:13 +03:00
Rémi Verschelde
584ca0f156
Merge pull request #30466 from Chaosus/vs_boolean_funcs
...
Added "Is" and "Compare" functions to visual shaders
2019-07-12 13:20:44 +02:00
Chaosus
9d6e1e3109
Added "Is" and "Compare" functions to visual shaders
2019-07-12 13:43:37 +03:00
Chaosus
0727caadd1
Added triplanar uniform texture node to visual shaders
2019-07-12 12:14:34 +03:00
Rémi Verschelde
3045697e4b
Merge pull request #30527 from bojidar-bg/29436-timescale-node-uneditable
...
Fix AnimationTree editor messing up parameters when nested
2019-07-11 22:04:29 +02:00
Bojidar Marinov
6d92750cf7
Fix AnimationTree editor messing up parameters when nested
...
Fixes #29436
2019-07-11 21:18:53 +03:00
Hugo Locurcio
5c0ee4a790
Improve line drawing in the 2D editor
...
- Use antialiasing (only visible when using the GLES3 renderer)
- Scale line widths on hiDPI displays
This also removes some debugging prints.
2019-07-11 16:05:09 +02:00
Rémi Verschelde
34d7484039
Merge pull request #30455 from qarmin/const_reference
...
Pass by reference to const
2019-07-10 15:43:15 +02:00
qarmin
01cc7a996b
Use reference to constant in functions
2019-07-10 11:54:12 +02:00
Hugo Locurcio
2491c87f86
Add width
and antialiased
parameters to CanvasItem draw_rect()
...
This also removes some duplicated editor code which is now obsoleted
by the new parameters in `draw_rect()`.
2019-07-09 20:30:18 +02:00
Hugo Locurcio
28d3a6051c
Use base Color()
constructors instead of Color::html()
...
This results in slightly smaller binaries (-17 KB for an editor binary)
as no strings need to be allocated.
2019-07-08 21:17:10 +02:00
Rémi Verschelde
af80182016
Merge pull request #30407 from qarmin/small_fixess
...
Fixes minor issues found by static analyzer
2019-07-08 08:16:50 +02:00
qarmin
9a77d748c0
Fixes minor issues found by static analyzer
2019-07-07 23:08:51 +02:00
Ibrahn Sahir
4e4697b1c4
Added release function to PoolVector::Access.
...
For clarity, assign-to-release idiom for PoolVector::Read/Write
replaced with a function call.
Existing uses replaced (or removed if already handled by scope)
2019-07-06 12:04:27 +01:00
geequlim
253cd73f1d
Fix code completion for shader editor
2019-07-06 12:03:17 +08:00
Ignacio Etcheverry
aa9908e4f6
Script API methods must return Ref<T> instead of Reference*
...
ptrcall assumes methods that return a Reference type do so with Ref<T>. Returning Reference* from a method exposed to the scripting API completely breaks ptrcalls to this method (it can be quite hard to debug!).
2019-07-05 09:38:28 +02:00
Geequlim
ed7ed52151
Parse more informations for code completion
2019-07-04 14:00:14 +08:00
Hugo Locurcio
0ce59bf6dd
Implement snapping for most 3D gizmos
2019-07-03 12:26:01 +02:00
Rémi Verschelde
8c78a4b78f
Merge pull request #30264 from Calinou/add-csg-gizmo-snapping
...
Implement snapping in the CSG gizmos and 3D polygon editor
2019-07-03 07:01:01 +02:00
Rémi Verschelde
4dec1bde77
Merge pull request #30231 from Ranoller/master
...
Tilemap fix displaced textures and shapes and added center texture and compatibility mode
2019-07-02 21:43:16 +02:00
Rémi Verschelde
9e1e4defef
Merge pull request #30228 from YeldhamDev/go_to_menu
...
Add "Go To" menu to the script editor and move the bookmark and breakpoint menus there
2019-07-02 21:41:29 +02:00
Hugo Locurcio
527fb3968a
Implement snapping in the CSG gizmos and 3D polygon editor
...
The spatial editor snap settings will now affect the CSG gizmos
and 3D polygon editor (which is used in CSGPolygon).
2019-07-02 20:02:07 +02:00
Ranoller
14e2a99129
Tilemap fix displaced textures and shapes and added center texture and compatibility mode
...
This commit fix #22989 #15249 #28206 . Main problem is that tilemap displace textures in different tile origins in a strange way and doesn´t respect coincidence between texture and shapes in not uniform tiles. This issue is present in godot 3.0 and godot 3.1. To maintain compatibility are added a compatibility mode and a center texture option. Other related issues and pull request: #28896 #29487 #29519 #29961 . Idications of #30204 are added
2019-07-02 17:12:58 +02:00
Rémi Verschelde
bc00332286
Fix TTR strings for VisualShaderNodes
...
It had been done wrongly in #30185 , but I missed it.
2019-07-02 13:29:26 +02:00
Michael Alexsander Silva Dias
91d357f177
Add "Go To" menu to the script editor and move the bookmark and breakpoint menus there
2019-07-01 16:00:05 -03:00
Rémi Verschelde
f5d9454a4b
Merge pull request #29071 from YeldhamDev/improve_bookmarks
...
Improve bookmarks
2019-07-01 16:34:17 +02:00
Rémi Verschelde
b0ce9401ff
Merge pull request #30126 from qarmin/remove_unnecessary_code
...
Remove unnecessary code and add some error explanations
2019-07-01 14:32:04 +02:00
qarmin
3c154eb93b
Remove unnecessary code and add some error explanations
2019-07-01 12:59:42 +02:00
Rémi Verschelde
d17eac735c
Merge pull request #29815 from NilsIrl/plus_file_1
...
Replace ` + "/" + ` with `String::file_add()`
2019-07-01 12:06:35 +02:00
Rémi Verschelde
b4aba3ae7c
Merge pull request #30177 from hbina/use_FALLTHROUGH_macro
...
Applied some of FALLTHROUGH macro usage from #30122
2019-06-29 23:40:08 +02:00
hbina085
9f0c6a6009
Many fallthrough switch cases now have the FALLTHROUGH macro to tell the compiler that this is intended.
2019-06-29 16:08:48 -04:00
Rémi Verschelde
187d8addf9
Merge pull request #30152 from Chaosus/vs_conversion
...
Added convertor from VisualShader to Shader
2019-06-29 18:40:28 +02:00
Rémi Verschelde
4ca22d81d7
Merge pull request #30156 from qarmin/fix_memory_leak_in_tilemap
...
Fix memory leak in Tilemaps
2019-06-29 16:51:15 +02:00
hbina085
f531a92057
use vformat for duplicate strings
...
many strings in visual_shader_editor_plugin.cpp does not use vformat for duplicate strings making it harder to translate
2019-06-29 07:52:09 -04:00
Chaosus
da7cf8b49f
Added convertor from VisualShader to Shader
2019-06-28 19:54:43 +03:00
qarmin
67b58de0f8
Fix memory leak in Tilemaps
2019-06-28 15:37:09 +02:00
Rémi Verschelde
f35fd681ac
Merge pull request #30114 from Chaosus/vs_context_menu
...
Shows menu when dragging connection on empty space in visual shader
2019-06-27 15:14:54 +02:00
Rémi Verschelde
11b8bf5572
Merge pull request #30103 from groud/center_2D_editor
...
Centers the 2D viewport in the editor
2019-06-27 15:14:23 +02:00
Chaosus
0aec3c3113
Shows menu when dragging connection on empty space in visual shader graph
2019-06-27 10:48:18 +03:00
Rémi Verschelde
eaaff9da31
Merge pull request #29941 from qarmin/redundant_code_and_others
...
Remove redundant code, possible NULL pointers and others
2019-06-27 01:05:18 +02:00
Gilles Roudière
1b53ea79e2
Centers the 2D viewport in the editor
2019-06-26 23:03:15 +02:00
qarmin
4e5310cc60
Some code changed with Clang-Tidy
2019-06-26 15:08:25 +02:00
Tomasz Chabora
c81525ec05
Allow to remove 2D editor limits
2019-06-25 00:19:44 +02:00
Rémi Verschelde
25022a1d89
Merge pull request #29974 from clayjohn/particles_restart
...
Properly set emitting when particles restart
2019-06-24 13:48:56 +02:00
Rémi Verschelde
1cb2b682ab
Merge pull request #30026 from akien-mga/fix-undo-convert-cpuparticles
...
Fix undo references for conversion to CPUParticles
2019-06-24 12:40:23 +02:00
Rémi Verschelde
ed504753f4
Fix undo references for conversion to CPUParticles
...
The 'undo' reference should be the node to free when the undo history
is lost, i.e. the original (GPU) Particles node. Similarly, the 'do'
reference should point to the CPUParticles (result of the 'do' call).
Fixes #29742 .
2019-06-24 12:08:30 +02:00
Gwyneth Lowe
7142064110
Correct typo that broke custom selected font color
...
Change several font_selected_color to font_color_selected; the actual name of the override
2019-06-24 04:55:29 -05:00
Rémi Verschelde
30383a1cdc
Merge pull request #29376 from hilfazer/editor_layouts_dialog
...
Saving/deleting editor layouts dialog with layout list
2019-06-23 23:56:52 +02:00
Dawid Wdowiak
0f14489ecb
Center script line when double clicked on error in debugger
2019-06-23 15:58:07 +02:00
Nils ANDRÉ-CHANG
d2833d4f4d
Replace + "/" +
with String::file_add()
2019-06-23 13:33:50 +01:00
clayjohn
64ecc8a5a3
properly set emitting when particles restart
2019-06-21 22:33:11 -07:00
hilfazer
9986cf7005
editor save/delete layout dialog with layout list
2019-06-21 19:38:04 +02:00
Rémi Verschelde
5c66771e3e
Merge pull request #29283 from qarmin/fix_some_always_same_values
...
Remove always true/false values
2019-06-20 21:10:10 +02:00
qarmin
072e40368e
Fix always true/false values
2019-06-20 16:59:48 +02:00
Rémi Verschelde
974b07fc70
Merge pull request #29914 from YeldhamDev/fix_onion_errors
...
Fix minor onion layering control errors
2019-06-20 11:23:46 +02:00
Michael Alexsander Silva Dias
8a9b3d24f5
Fix minor onion layering control errors
2019-06-19 19:42:26 -03:00
Rémi Verschelde
5a29be31b3
Merge pull request #27188 from samH-FIT/MacroUpdate
...
Made use of semicolons after GDCLASS more consistent, added semicolons where I found them missing.
2019-06-19 22:59:49 +02:00
JohnJLight
38d3bfe971
Made use of semicolons more consitent, fixed formatting
2019-06-19 15:24:31 +02:00
Zach Young
7b1e112f1d
Fixed navigation schemes Modo/Maya when used with grid map tile placement
2019-06-19 14:03:08 +02:00
Rémi Verschelde
57bd26082b
Merge pull request #29547 from santouits/filter-scripts
...
Add filter search for script list and the members in the script editor
2019-06-19 00:15:17 +02:00
Rémi Verschelde
d61d1af64d
Merge pull request #29489 from groud/fixes_nan
...
Fixes NaN errors with anchors mode
2019-06-18 09:53:25 +02:00
Rémi Verschelde
0ac3687d6f
Merge pull request #28766 from pgoral/editor_validation_issue
...
Changing method signature in other class in not recognized in working…
2019-06-17 23:13:08 +02:00
Emmanuel Barroga
fc568d9d5b
Bring selected script in view of open scripts list
...
Resolves issue: #29721
2019-06-16 09:48:42 -07:00
Michael Alexsander Silva Dias
28683237c5
Check for inherited methods before attempting to create one when connecting a signal
2019-06-13 15:15:17 -03:00
Rémi Verschelde
8c11f883d9
Merge pull request #29129 from kis3lori/remove-save-theme-for-default
...
Created a fallback from the "Save Theme" button to "Save Theme As" when a default theme is in use.
2019-06-13 12:10:05 +02:00
Kis Levente Lorand
0823d78374
Created a fallback from the "Save Theme" button to "Save Theme As" when a default theme is in use.
2019-06-13 11:26:08 +03:00
Rémi Verschelde
3b53db750a
Merge pull request #22863 from Paulb23/reload_shader_external_change_issue_19852
...
Reload text shaders when externally edited, issue 19852
2019-06-12 22:44:55 +02:00
Rémi Verschelde
1e5a02f006
Merge pull request #29599 from Calinou/assetlib-project-icon-loading
...
Display a "loading" placeholder while icons are loading in the assetlib
2019-06-12 13:36:06 +02:00
Rémi Verschelde
5522d7c2b0
Merge pull request #29664 from akien-mga/external-editor-default-flags
...
Always pass script path to external editor
2019-06-12 13:24:57 +02:00
Rémi Verschelde
a2a5273a07
Merge pull request #29703 from YeldhamDev/method_signal_warning_base
...
Check base scripts for signal receiving methods before warning about them missing
2019-06-12 13:11:17 +02:00
Rémi Verschelde
c010714732
Merge pull request #29710 from Calinou/assetlib-remove-unimplemented
...
Remove some references to unimplemented features in the assetlib
2019-06-12 12:55:16 +02:00
Rémi Verschelde
f47f905248
Merge pull request #29517 from KoBeWi/pan_shop
...
Allow to change 2D pan hotkey
2019-06-12 12:51:22 +02:00
Rémi Verschelde
94fbaf71a6
Merge pull request #29474 from YeldhamDev/pick_subtile_fix
...
Fix subtile picking in TileMap editor
2019-06-12 12:50:31 +02:00
Rémi Verschelde
971b5160c6
Merge pull request #29306 from qarmin/small_code_fixes
...
Small fixes to unrechable code, possibly overflows, using NULL pointers
2019-06-12 12:49:21 +02:00
santouits
ca4c33cdad
Add filter search for script list and the members
...
in the script editor
2019-06-12 13:31:53 +03:00
Hugo Locurcio
75f1e93ac0
Remove some references to unimplemented features in the assetlib
...
This removes rating icons and the associated sorting option as
this feature wasn't implemented (and is unlikely to be in the
near future).
This also renames "Cost" to "License", as the "cost" field refers
to SPDX license names on the Godot Asset Library.
2019-06-12 12:26:37 +02:00
Rémi Verschelde
a458365780
Merge pull request #29659 from YeldhamDev/script_connections_node_deleted
...
Fix connection info still appearing on scripts if the node source is deleted
2019-06-12 09:46:33 +02:00
Michael Alexsander Silva Dias
831dd19546
Check base scripts for signal receiving methods before warning about them missing
2019-06-11 22:11:26 -03:00
Hugo Locurcio
7fd7dac69c
Add spacing between the icon and details in the assetlib list
...
This also scales margin and separation values on hiDPI displays.
2019-06-12 01:14:29 +02:00
Rémi Verschelde
4043c8a8c9
Merge pull request #29678 from akien-mga/err-macros-semicolon
...
Fix error macro calls not ending with semicolon
2019-06-11 19:01:26 +02:00
Rémi Verschelde
7842f4ca5c
Merge pull request #29262 from DarknessCatt/issue-27476
...
Automatically add new line to scripts
2019-06-11 15:07:09 +02:00
Rémi Verschelde
6d16f2f053
Fix error macro calls not ending with semicolon
...
It's not necessary, but the vast majority of calls of error macros
do have an ending semicolon, so it's best to be consistent.
Most WARN_DEPRECATED calls did *not* have a semicolon, but there's
no reason for them to be treated differently.
2019-06-11 14:49:34 +02:00
Rémi Verschelde
227b5d20ee
Merge pull request #29519 from Ranoller/master
...
Make tilemap texture origin point top-left.
2019-06-11 12:05:13 +02:00
Rémi Verschelde
4a757a2d96
Always pass script path to external editor
...
Previously you had to set the Exec Flags manually, reading the documentation
to find out what placeholders to use. As most editors should support having
the file path passed as the last argument, we default to doing this if no
custom {file} flag is defined. We also default the Exec Flags to "{file}" and
the placeholder text gives some documentation.
Fixes #29662 .
2019-06-11 09:20:42 +02:00
Michael Alexsander Silva Dias
b3010d9734
Fix connection info still appearing on scripts if the node source is deleted
2019-06-10 19:37:56 -03:00
Rémi Verschelde
ee86b18a5e
Merge pull request #29497 from qarmin/fix_memory_leak_in_files
...
Fix memory leak after closing files
2019-06-10 15:23:26 +02:00
Hugo Locurcio
9f6b470ea8
Display a "loading" placeholder while icons are loading in the assetlib
2019-06-08 11:18:52 +02:00
Ranoller
f26e9daab5
Make tilemap texture origin point top-left.
...
Fix https://github.com/godotengine/godot/issues/29487 . In this commit: https://github.com/godotengine/godot/pull/28896 bad offset of textures and shapes was fixed, but a center of texture was added too, and this seems not dessired by default because breaks too much compatibility with demos and user projects. A future Check box for center texture can be added
2019-06-05 23:23:36 +02:00
Tomasz Chabora
f472f0491c
Allow to change 2D pan hotkey
2019-06-05 22:44:52 +02:00
qarmin
53c0a29fb0
Fix memory leak after closing files
2019-06-05 09:34:16 +02:00
Gilles Roudière
df0a69bbac
Fixes NaN errors with anchors mode
2019-06-04 21:58:21 +02:00
Rémi Verschelde
e22dde1b18
Merge pull request #29452 from YeldhamDev/remember_selected_subtile
...
Remember selected subtile when updating the TileMap editor
2019-06-04 17:16:03 +02:00
Rémi Verschelde
33163c0040
Merge pull request #29460 from YeldhamDev/tilemapeditor_atlas_copy_fix
...
Fix TileMap editor not correctly copying atlas tiles
2019-06-04 16:56:59 +02:00
Michael Alexsander Silva Dias
6be7fea798
Fix subtile picking in TileMap editor
...
Fixes #29445 .
2019-06-04 11:36:05 -03:00
Michael Alexsander Silva Dias
412a0b73e9
Fix error spam when typing in the TileMap editor's search box while having no results
2019-06-04 01:44:38 -03:00
Michael Alexsander Silva Dias
6b7d8fd946
Fix TileMap editor not correctly copying atlas tiles
...
Fixes #29307 .
2019-06-04 00:44:01 -03:00
Michael Alexsander Silva Dias
0a03ed7544
Remember selected subtile when updating the TileMap editor
...
Fixes #29444 .
2019-06-03 21:20:38 -03:00
qarmin
8245db869f
Small fixes to unrechable code, possibly overflows, using NULL pointers
2019-06-03 21:52:50 +02:00
Rémi Verschelde
b9dc2e7e4d
Merge pull request #28099 from lupoDharkael/fix-completion
...
Fix code completion not working with class_name
2019-06-03 14:01:07 +02:00
Rémi Verschelde
0dac4d6db6
Merge pull request #25522 from aqnuep/MeshLibrary_improvements
...
MeshLibrary export improvements
2019-06-03 13:59:43 +02:00
Michael Alexsander Silva Dias
a5f1635bf2
Fix pausing in audio player editor acting the same as stopping
2019-06-02 22:40:28 -03:00
Paulb23
eed3753357
Reload text shaders when externaly edited, issue 19852
2019-06-01 14:05:44 +01:00
Rémi Verschelde
0f26d09fbf
Merge pull request #29360 from Calinou/improve-curve-editor-rendering
...
Improve the curve editor rendering
2019-06-01 11:13:09 +02:00
Rémi Verschelde
4b399034aa
Merge pull request #24560 from guilhermefelipecgs/fix_24549
...
Add EDITMODE_PRIORITY for ATLAS_TILE
2019-06-01 09:49:18 +02:00
Rémi Verschelde
d7163fb77a
Merge pull request #24708 from uzimonkey/sub-resource-names-in-script-editor
...
Add sub-resource name when available to script editor
2019-06-01 09:45:08 +02:00