Norton Corbett
5329ae0030
Take into account the current zoom level when grabbing polygon points in the TileSet editor.
...
The transform of the TileSet editor workspace is now used to calculate the distance from the mouse click to the nearest polygon point.
Fixes https://github.com/godotengine/godot/issues/34001
2019-12-01 11:33:24 +00:00
PouleyKetchoupp
f0fdd7de80
Fixed error when creating physical skeleton
...
An error was systematically triggered on the root bone, when trying to access its parent (the return value wasn't used in this case anyway).
Fixes #23920
2019-11-30 20:27:12 +01:00
Aaron Franke
4af218f9e3
Don't cast item to Spatial when checking if it's locked
...
Not a necessary cast, and causes a crash any time it's not a Spatial.
2019-11-28 05:34:54 -05:00
Tomasz Chabora
66cefde2b0
Fix box selection being cancelled immediately
2019-11-27 21:07:51 +01:00
volzhs
9eff8b7007
Show thumbnail for DynamicFont resource
2019-11-27 03:35:44 +09:00
Rémi Verschelde
bfd5e09879
Range: Fix cases where max was set to or below min value
...
It will now raise an error whenever this happens so that we can fix
these situations. `max == min` is not allowed as it could lead to
divisions by zero in ratios, and `max < min` doesn't make much sense.
Fixes #33907 .
2019-11-26 10:25:41 +01:00
PouleyKetchoupp
3ab5b33a47
Fixes around ScriptEditor script list
...
- Fixed "Previous Script" shortcut not working (CTRL+SHIFT+<)
- Fixed crash (integer division by zero) when using previous/next script shortcut with no script open
- Fixed error when dropping a script file with no script open
ERROR: ItemList::get_item_metadata: Index p_idx=-1 out of size (items.size()=0)
At: scene\gui\item_list.cpp:257
2019-11-25 17:16:29 +01:00
Rémi Verschelde
f6e5751767
Merge pull request #33860 from nekomatata/stylebox-preview-shadow
...
StyleBox preview adjusted to fit all drawn content
2019-11-25 14:25:39 +01:00
Rémi Verschelde
d422eff036
Merge pull request #33829 from Calinou/tilemap-editor-use-info-overlay
...
Use the CanvasItemEditor info overlay to display TileMap coordinates
2019-11-25 13:57:08 +01:00
PouleyKetchoupp
8f0c1daf1c
Removed translation for bookmarks menu item name in TextEditor
...
Only the label's text needs a translation, and it could cause issues when getting the node by name in a different language.
2019-11-25 13:23:09 +01:00
PouleyKetchoupp
1120de862d
StyleBox preview adjusted to fit all drawn content
...
This change allows StyleBox preview to take shadows and content margins into account to display how a whole panel would be rendered.
The preview control clips contents so that in any case it doesn't bleed on controls around.
Fixes #33801
2019-11-24 16:26:30 +01:00
Hugo Locurcio
13f98f80b6
Use the CanvasItemEditor info overlay to display TileMap coordinates
...
This also removes the editor setting that toggles coordinate display,
as it no longer solves an existing bug.
This closes #28135 .
2019-11-22 23:58:36 +01:00
Rémi Verschelde
ab3bccdb78
Fix typos with codespell
...
Using codespell 1.16.0.
Method:
```
$ cat > ../godot-word-whitelist.txt << EOF
ang
curvelinear
dof
doubleclick
leapyear
lod
merchantibility
nd
numer
ois
ony
que
seeked
synching
te
uint
unselect
webp
EOF
$ codespell -w -q 3 -I ../godot-word-whitelist.txt --skip="./thirdparty,*.po"
$ git diff // undo unwanted changes
```
2019-11-22 08:35:03 +01:00
Rémi Verschelde
083d088de3
Merge pull request #33583 from qarmin/fix_overflows_unitialized
...
Fix some overflows and unitialized variables
2019-11-20 21:31:12 +01:00
Rémi Verschelde
ccebd1f4fc
Merge pull request #33734 from merumelu/editor-vcs-init
...
Editor: fix typo in VCS plugin method names
2019-11-20 21:17:32 +01:00
Rafał Mikrut
99d8626f4a
Fix some overflows and unitialized variables
2019-11-20 16:22:16 +01:00
Tomasz Chabora
7e5340261a
Cancel drag when selection changes
2019-11-19 16:02:04 +01:00
merumelu
94fc676019
Editor: fix typo in VCS plugin method names
2019-11-19 15:11:03 +01:00
Rémi Verschelde
d8cf3aa5ab
Merge pull request #33700 from nekomatata/sprite-add-label-overlap
...
Fixed "Add Sprite..." label overlapping with zoom controls
2019-11-19 09:49:52 +01:00
Tomasz Chabora
43d762fce3
Consider locked moving objects when updating viewport
2019-11-18 21:08:14 +01:00
PouleyKetchoupp
6d14251b0d
Fixed "Add Sprite..." label overlapping with zoom controls
2019-11-18 11:52:01 +01:00
Hugo Locurcio
1e28571d82
Always allow Alt as an orbit modifier in the 3D editor
...
This makes it easier to navigate in 3D when using a graphics tablet.
This fallback modifier will only be available if no other modifier
is using Alt.
This partially addresses
https://github.com/godotengine/godot-proposals/issues/196 .
2019-11-14 17:40:15 +01:00
Tomasz Chabora
f7476359e0
Make sure tile is selected when selecting TileMap
2019-11-13 14:26:37 +01:00
Tomasz Chabora
1369e00973
Properly handle zoom when opening tileset editor
2019-11-12 16:23:53 +01:00
Michael Alexsander
c77ce40c3b
Minor adjustment in the "Game Camera Override" button's tooltip.
2019-11-11 11:46:23 -03:00
Rémi Verschelde
6b1628f9fc
Merge pull request #33517 from madmiraal/fix-_MSG-macros
...
Send *_MSG macros' explanations directly to the _err_print_error().
2019-11-11 13:27:51 +01:00
Marcel Admiraal
d18b2e599d
Remove all uses of ERR_EXPLAIN macros.
2019-11-11 10:24:04 +01:00
Rémi Verschelde
411af59752
Merge pull request #33499 from nekomatata/animation-filter-function
...
Fixed function/audio/anim tracks in blend tree animation filter
2019-11-11 08:13:06 +01:00
Rémi Verschelde
2143f46df2
Merge pull request #33516 from qarmin/small_fixes
...
Memory leaks and crash fixes
2019-11-10 10:17:19 +01:00
Rafał Mikrut
7dda9309f9
Memory leak and crash fixes
2019-11-10 09:49:13 +01:00
PouleyKetchoupp
72453e566d
Fixed function/audio/anim tracks in blend tree animation filter
2019-11-09 22:30:08 +01:00
PouleyKetchoupp
311ab52b6c
Fixed Camera preview when creating new scenes
...
Fixes #33490
2019-11-09 17:24:40 +01:00
Tomasz Chabora
2bde99f790
Fix some small text mistakes
2019-11-08 23:31:29 +01:00
Rémi Verschelde
621dc7022f
Merge pull request #27742 from rxlecky/camera-replication
...
Game camera override
2019-11-08 10:02:18 +01:00
Rémi Verschelde
245c99175c
Merge pull request #33361 from codecustard/master
...
Fixes improper undo state for pivot setting
2019-11-05 15:54:53 +01:00
codecustard
f643786b96
Fixes improper undo state for pivot setting
...
After setting the pivot of a node, if you undo.... it will not revert the pivot to the previous state.
2019-11-05 05:59:03 -08:00
Rémi Verschelde
6dca64140c
Merge pull request #33330 from nekomatata/fix-label-autowrap-size
...
Fixed cases where labels with autowrap can overflow the editor ui
2019-11-04 16:57:53 +01:00
Tomasz Chabora
e3cfb006a0
Allow zooming while panning
2019-11-04 12:33:24 +01:00
PouleyKetchoupp
13c88878c4
Fixed cases where labels with autowrap can overflow the editor ui
...
Fixes #33155
2019-11-04 10:12:36 +01:00
Yuri Roubinsky
8243afb0e9
Added sampler inputs for visual shaders
2019-11-03 17:59:15 +03:00
Rémi Verschelde
306c13a210
Merge pull request #33270 from norkn/fix-issue-27256
...
Copy transform when creating convex sibling
2019-11-02 19:28:59 +01:00
Paulb23
362d38ea67
Update connection info on script validation rather then saved copy
2019-11-02 14:41:59 +00:00
checkerWoho
ec274eeeff
Copy transform when creating convex sibling
2019-11-02 15:08:50 +01:00
Rémi Verschelde
4569f5ec82
Merge pull request #33182 from MCrafterzz/scaleSnap
...
Added snapping for scaling in 2D editor
2019-11-02 11:12:54 +01:00
Yuri Roubinsky
d5aa611d53
Merge pull request #33256 from Chaosus/vs_fix_custom_nodes
...
Sort custom vshader nodes+prevents them from divide to different folders
2019-11-02 13:09:10 +03:00
Yuri Roubinsky
84a0ad36b6
Sort custom vshader nodes+prevents them from divide to different folders
2019-11-02 12:04:48 +03:00
MCrafterzz
3a8a7fc31c
Added snapping for scaling in 2D editor
2019-11-02 09:43:15 +01:00
PouleyKetchoupp
f6f60e22f5
Fixed error when renaming a state in AnimationNodeStateMachine
...
Fixes #33245
2019-11-01 21:14:58 +01:00
Aaron Franke
8754e21f48
Fix "seperate" typos
2019-10-31 08:52:26 -04:00
Hugo Locurcio
27ad8609e2
Improve the primary line setting display in the Configure Snap dialog
...
This merges the "steps" suffix into the SpinBox using its `suffix`
property.
2019-10-30 22:19:30 +01:00
Rémi Verschelde
9e1be8f8aa
Merge pull request #32934 from ajweeks/fix-scale-origin
...
Fix 2D scale gizmo placement
2019-10-30 12:04:10 +01:00
Hugo Locurcio
c7e5dd9ef0
Add primary grid lines to the 2D editor
...
A "primary" line is drawn every 8 steps by default,
which makes it easier to measure distances for snapping.
This value can be configured in the Configure Snap dialog.
2019-10-29 15:47:38 +01:00
Mikolaj Kaczmarek
a245bab78d
Fixed disconnecting not connected signal
2019-10-29 00:53:48 +01:00
Rémi Verschelde
816341af25
Merge pull request #33107 from volzhs/toggle-camera-preview-error
...
Fix error when opening or closing scene with camera preview on
2019-10-27 13:59:04 +01:00
volzhs
4b53a86ce3
Fix error when opening or closing scene with camera preview on
2019-10-27 21:04:29 +09:00
Paulb23
2e2a049d3c
Improve performance of connection info in the script editor
2019-10-27 11:07:19 +00:00
MCrafterzz
cdce135540
Fixed #21527 (Show hint to right click when curve editor is empty)
2019-10-26 14:15:45 +02:00
Hugo Locurcio
41c89880f8
Display a message if no results are found in the asset library
...
This closes https://github.com/godotengine/godot-proposals/issues/184 .
2019-10-26 01:07:02 +02:00
Rémi Verschelde
f259beb4f1
Merge pull request #33048 from KoBeWi/smarts_vs_grids
...
Make Ruler Tool depend on grid snap only
2019-10-25 12:06:03 +02:00
Rémi Verschelde
1c4b2a80b6
Merge pull request #33043 from volzhs/ruler-zoom
...
Fix ruler origin is moving with zoom
2019-10-25 07:48:37 +02:00
volzhs
f8e592f607
Make stylebox preview not to expand Inspector panel
2019-10-25 06:20:52 +09:00
Tomasz Chabora
50528b966d
Make Ruler Tool depend on grid snap only
2019-10-24 22:31:19 +02:00
volzhs
4beeb0fc0f
Fix ruler origin is moving with zoom
2019-10-25 05:19:13 +09:00
Erik
8b0546d93b
Implement game camera override
...
Implemented uniform API in Viewport class to override 2D and/or
3D camera.
Added buttons in 2D and 3D editor viewport toolbars that override
the running game camera transform with the editor viewport camera
transform. Implemented via remote debugger protocol and camera
override API.
Removed LiveEditFuncs function pointers from ScriptDebugger class.
Since the debugger got access to the SceneTree instance (if one
exists), there is no need to store the function pointers. The live
edit functions in SceneTree are used directly instead. Also removed
the static version of live edit functions in SceneTree for the same
reason. This reduced the SceneTree -> Debugger coupling too since
the function pointers don't need to be set from SceneTree anymore.
Moved script_debugger_remote.h/cpp from 'core/' to 'scene/debugger/'.
This is because the remote debugger is now using SceneTree directly
and 'core/' classes should not depend on 'scene/' classes.
2019-10-23 02:51:32 +01:00
Rémi Verschelde
72dfa67dd3
Merge pull request #32924 from ajweeks/add-ruler-arcs
...
Draw arcs to indicate angles being measured by ruler
2019-10-22 22:44:50 +02:00
AJ Weeks
fb7a4ce63e
Fix canvas scale gizmo placement
2019-10-22 18:17:54 +01:00
David Sichma
94fb3f666c
Fixed evaluation for types
2019-10-22 09:42:46 +02:00
Rémi Verschelde
ee3b28e9af
Merge pull request #32841 from Calinou/freelook-add-slow-modifier
...
Add a "slow" modifier to freelook
2019-10-21 15:25:58 +02:00
AJ Weeks
59d2c71227
Add arcs to indicate angle being measured by ruler
2019-10-19 19:45:56 +01:00
Hugo Locurcio
af89a87075
Add a "slow" modifier to freelook
...
This makes precise adjustments easier, without having to
touch the mouse wheel. This modifier is also available in
Blender, so this makes the freelook behavior more consistent
with it :)
In the interest of simplifying the Editor Settings, this also
removes the freelook modifier speed factor setting
(the value is now hardcoded to its default).
2019-10-14 22:50:02 +02:00
qarmin
616ab4fac2
Small fixes to redundand code, copy paste bugs
2019-10-14 11:40:55 +02:00
Rémi Verschelde
30c3c33029
Merge pull request #32721 from groud/independant_grid_snap
...
Move grid snapping to an independent button
2019-10-11 08:35:01 +02:00
PouleyKetchoupp
30f2100d59
Fixed ScriptEditor autosave timer causing errors on start
...
Fixes #32685
2019-10-10 22:20:15 +02:00
Gilles Roudière
fff953ac8b
Move grid snapping to an independent button
2019-10-10 21:10:08 +02:00
Yuri Roubinsky
b76ae23392
Prevents folding of member tree on drag&drop in visual shader
2019-10-10 14:19:48 +03:00
Marqus
c84e73bf92
Add shortcut Shift + F3 to search pervious in the built-in docs
...
When using the built-in docs, Godot would not support the shortcut "Shift + F3"
to search for the previous occurrence of the search entry text, thus causing an
inconsistent behaviour when using shortcuts in the "ScriptEditor" compared to
using them in the "ScriptTextEditor".
The previous parameter of the function "EditorHelp::_search()" in the class
"editor_help" seems to be unused, thus replaced with a bool representing to
search for previous search entry text or not. By adding the shortcut to
Godot's "ScriptEditor", this commit now improves Godot's consistensy when
using shortcuts.
Fixes #31147 .
Co-Authored-By: Oscar Ferm <oscfer-6@student.ltu.se>
2019-10-10 11:01:04 +02:00
Marcel Admiraal
a8836ba28d
Remove dependency on the editor directory being in the build's include path.
...
- Add or remove the necessary subdirectorires to the includes to remove
dependency on the editor directory being in the build's include path.
- Ensure includes in modified files conform to style guideline.
- Remove editor from the build include path.
2019-10-10 08:57:00 +02:00
Pedro Ciambra
afdfe651a1
Remove Show Ruler shortcut (fixes #32639 )
...
Removed default shortcut because of the conflict mentioned in the issue.
Command + Shift + T would conflict with Soft Reload Script,
and this shortcut doesn't seem to be needed very often.
2019-10-08 18:26:21 -03:00
Rémi Verschelde
e2f1b30565
Merge pull request #32618 from nekomatata/sprite-to-polygon
...
Sprite to polygon conversion improvements
2019-10-08 16:13:38 +02:00
Gilles Roudière
0e834b3924
Increase grid size limit
2019-10-07 22:59:51 +02:00
PouleyKetchoupp
1e301479da
Sprite to polygon conversion improvements
...
- No reduced Rect in march square algorithm, it was causing inconsistent cases near the borders and made the outline less accurate
- Ignore invalid generated polygons (under 3 points) to avoid unnecessary errors and crashes
- Error popup only when no polygon could be generated at all
- Added option to shrink pixels (to get rid of small separate islands)
- Fixed polygon preview (lines were sometimes not showing along the borders)
Fixes #32564 , #29267
2019-10-07 13:19:30 +02:00
Osama El Hariri
90ea3787ec
Add angle to ruler tool
2019-10-06 18:04:49 +03:00
jfons
c1de7cb22e
Fix calculate_spatial_bounds for selection display
...
Fixes `SpatialEditorPlugin::_calculate_spatial_bounds` so the displayed
selection doesn't break with transformed scenes.
2019-10-04 15:47:15 +02:00
Rémi Verschelde
b177051521
Merge pull request #32528 from hbina/hbina_fix_font_override
...
Fixed warnings text using custom font and color setting.
2019-10-04 13:47:04 +02:00
Hanif Bin Ariffin
79e83b7c92
Fixed warnings text using custom font and color setting.
...
Fixes #31917
Added missing font and color override.
2019-10-04 07:20:18 -04:00
Yuri Roubinsky
b6f8726c66
Merge pull request #32543 from Chaosus/vs_fix_input
...
Fix VisualShaderInput (if compiled with MinGW) (correct, tested version)
2019-10-04 13:57:01 +03:00
Rémi Verschelde
3b2033b941
Merge pull request #32540 from codecustard/fix_show_bounds_for_scenes
...
Fixes scene instances not displaying bounds when selected
2019-10-04 12:19:33 +02:00
Yuri Roubinsky
bc67a18fe0
Fix VisualShaderInput if compiled with MinGW
2019-10-04 10:52:07 +03:00
Yuri Roubinsky
0a34fa701f
Fix VisualShaderInput (if compiled with MinGW) (correct, tested version)
2019-10-04 10:43:59 +03:00
Emmanuel Barroga
10d0bc920b
Fixes scene instances not displaying bounds when selected
...
When selecting instances of a scene file, it doesn't display the bounding box which makes it difficult to visually see that it is selected.
2019-10-03 22:46:29 -07:00
Relintai
c39490cf79
Fix potential crash in AnimationPlayer.
2019-10-03 21:07:49 +02:00
Yuri Roubinsky
b11d15d5c3
Makes Texture and TextureUniform in visual shaders to use UV by default
2019-10-03 16:59:49 +03:00
Rémi Verschelde
059a53ee1d
Merge pull request #32504 from Relintai/fix_empty_animatin_player_crash
...
Fix crash in #32473 . (Automatically seek timeline in selected animation)
2019-10-03 07:57:10 +02:00
Relintai
c6e577fed9
Fix crash in #32473 . (Automatically seek timeline in selected animation)
2019-10-03 00:00:01 +02:00
Yuri Roubinsky
1bafadb629
Drag&drop custom nodes from filesystem to visual shader
...
+ better loading of custom nodes
2019-10-02 23:42:14 +03:00
Rémi Verschelde
96b46a5c00
Merge pull request #32484 from Chaosus/shader_fix
...
Removed unnecessary shader error log messages
2019-10-02 21:03:50 +02:00
Rémi Verschelde
a737bceb4e
Merge pull request #32473 from KoBeWi/seaking_ani
...
Automatically seek timeline in selected animation
2019-10-02 11:54:19 +02:00
Yuri Roubinsky
1472fca951
Removed unnecessary shader error log messages
2019-10-02 12:37:22 +03:00
Alexander Holland
35452e1ab4
Update ScriptEditor and ShaderEditor Tooltip
...
fix #32417
2019-10-02 11:21:59 +02:00
Tomasz Chabora
d482bd1ef0
Automatically seek timeline in selected animation
2019-10-01 18:38:03 +02:00