Commit graph

21080 commits

Author SHA1 Message Date
Bojidar Marinov 4cf3113a1a
Fix orientation of generated navmeshes
Fixes #23817
2019-05-11 21:39:52 +03:00
Jesse Dubay 1b9d26765f Allow constructing larger data types by swizzling
GLSL allows the construction of larger data types by swizzling smaller
ones, but Godot shading language treated this as an error:

  vec2 test2 = vec2(0.0, 1.0);
  vec3 test3 = test2.xxx; // error: Invalid member for vec2 expression

This commit updates the expression parser for the 2 and 3-component data
types accordingly.

Fixes #10496
2019-05-11 11:01:09 -07:00
miwanczuk cbc68a3e04 Change rules of indenting for spaces
Now indentations and deindentations of spaces attemt to align text to
closest full indent level. It works with tab/tab+shift (both with
selection and no selection) as well as backspace. Also fixes bug where
selection and cursor position were mispaced after (un)indenting selected
text.
2019-05-11 10:30:40 +02:00
Michael Alexsander Silva Dias dcf27c71b7 Make possible to create inherited scenes via the RMB menu in the FileSystem dock 2019-05-11 05:13:29 -03:00
Rémi Verschelde 89c37dae49
Merge pull request #28807 from bojidar-bg/28798-open-filesystem
Open selected folder when pressing the "Open" option in the menu
2019-05-11 09:49:34 +02:00
Rémi Verschelde 58c5eb781e
Merge pull request #28742 from guilhermefelipecgs/fix_28737
[EditorSpatialGizmo] Fix error in intersect_ray
2019-05-11 09:45:08 +02:00
Rémi Verschelde fea0c8858e
Merge pull request #28770 from volzhs/fix-scroll-back-top
Fix scroll back top
2019-05-11 09:44:11 +02:00
Ryan Stein 42d6205e8c Add RegEx substitution testcase and fix relevant docs
(cherry picked from commit a31bbb4bd9)
2019-05-11 09:03:19 +02:00
Rémi Verschelde 06d28a7722
Merge pull request #28806 from bojidar-bg/28624-navmesh-cellsize
Allow or_greater for most properties of NavMesh
2019-05-11 08:41:07 +02:00
Bojidar Marinov fedf9cd379
Open selected folder when pressing the "Open" option in the menu
An attempt to fix #28798
2019-05-10 18:55:50 +03:00
Bojidar Marinov 68bee3d9a2
Allow or_greater for most properties of NavMesh
Closes #28624
2019-05-10 18:05:17 +03:00
Rémi Verschelde ecceabea7e
Merge pull request #28800 from JFonS/fix_clipped_camera
Fixes to ClippedCamera
2019-05-10 11:13:20 +02:00
JFonS 9e97bac0cf Fixes to ClippedCamera
This work has been kindly sponsored by IMVU.
2019-05-10 10:35:15 +02:00
Hugo Locurcio 8c7ee6dac4
Tweak the default low-processor usage mode to be 144 Hz-friendly
On high-refresh rate displays, the old default value (8000) effectively
limited redrawing to 125 FPS, no matter whether V-Sync was enabled
or not. The new value limits redrawing to a value slightly above
144 FPS, decreasing input lag and making the editor feel smoother
when using freelook.

60 Hz displays aren't affected by this change when V-Sync is enabled,
since V-Sync will take care of limiting redrawing to 60 FPS.
2019-05-09 22:40:20 +02:00
Rémi Verschelde 7112a45d99
Merge pull request #28784 from bruvzg/x11_check_extents_atoms
X11: Check if "_NET_FRAME_EXTENTS" atom is supported.
2019-05-09 18:30:08 +02:00
bruvzg 5714a5f4ea
X11: Check if "_NET_FRAME_EXTENTS" atom is supported. 2019-05-09 19:12:31 +03:00
Bojidar Marinov 9285aad8b3
Fix AudioEffectRecord messing up the effect stack by not writing to dst_frames 2019-05-09 18:03:08 +03:00
Rémi Verschelde e581eb1359
Merge pull request #28778 from aaronfranke/lowercase-id
Change "ID" to lowercase "id"
2019-05-09 16:27:18 +02:00
Aaron Franke 702b539405
Change "ID" to lowercase "id"
Reasoning: ID is not an acronym, it is simply short for identification, so it logically should not be capitalized. But even if it was an acronym, other acronyms in Godot are not capitalized, like p_rid, p_ip, and p_json.
2019-05-09 06:25:32 -04:00
Max Hilbrunner 84058ab8ac
Merge pull request #28773 from Faless/mp/err_explain_fix2
Avoid _can_call_mode resetting error message in MultiplayerAPI
2019-05-08 23:07:15 +02:00
Fabio Alessandrelli bba77fe387 Avoid _can_call_mode resetting error message in MultiplayerAPI 2019-05-08 22:14:41 +02:00
Rémi Verschelde 2cf34534a1
Merge pull request #28765 from guilhermefelipecgs/update_class_ref
Docs: Add tutorials for KinematicBody2D
2019-05-08 22:13:03 +02:00
Guilherme Felipe 70ead9455f [EditorSpatialGizmo] Fix error in intersect_ray 2019-05-08 16:51:23 -03:00
volzhs 920403c489 Scroll back to top when changing directory in FileSystem dock
Fix #26041
2019-05-09 04:00:40 +09:00
volzhs 68c3728b47 Revert "Merge pull request #26053 from qarmin/back_scroll_to_start"
This reverts commit b5deb1dc72, reversing
changes made to 2cc8848c3c.

This change causes unwanted regression.
It's too risky to have scroll back to top in ItemList.clear()
2019-05-09 03:51:08 +09:00
Guilherme Felipe 36e9af4812 Docs: Add tutorials for KinematicBody2D 2019-05-08 13:45:40 -03:00
Daniel Rakos e34eb5c26c Fix texture resource reload bug
If a non-imported texture resource file (e.g. DDS) gets updated the editor
doesn't reload it. The cause of the problem is two-fold:

First, the code of ImageTexture assumes that textures are always imported
from an image, but that's not the case for e.g. DDS. This change thus adds
code to issue a resource reload in case an image reload is not possible
(which is the case for non-imported texture resources).

Second, the code is filled with bogus calls to Image::get_image_data_size()
to determine the mipmap offset when that should be done using
Image::get_image_mipmap_offset(). Previous code literally passed the integer
mip level value to Image::get_image_data_size() where that actually expects
a boolean. Thus this part of the change might actually solve some other
issues as well.

To be pedantic, the texture_get_data() funciton of the rasterizer drivers is
still quite a mess, as it only ever returns the whole mipchain when
GLES_OVER_GL is set (practically only on desktop builds) but this change does
not attempt to resolve that.
2019-05-08 17:22:40 +02:00
Lisapple 182a04b1da Replacing filename with path in tooltip into FileSystem dock 2019-05-08 17:15:21 +02:00
Rémi Verschelde b96cd577c3
Merge pull request #28009 from kbake/output-context-menu-27543
Adds Copy button to output panel
2019-05-08 15:52:49 +02:00
Rémi Verschelde b0d73d3099
Merge pull request #28754 from YeldhamDev/inherent_scene_close_empty_changes
Change empty scene closing on new inherented scene to a better approach
2019-05-08 15:48:23 +02:00
Rémi Verschelde 869124e343
Merge pull request #28751 from MuffinManKen/improve_docs_animated_sprite
Improved the AnimatedSprite docs; added description to speed_scale.
2019-05-08 15:46:56 +02:00
Michael Alexsander Silva Dias 19b8c51e1d Change empty scene closing on new inherented scene to a better approach 2019-05-08 04:47:39 -03:00
Michael Alexsander Silva Dias 699140000c Revert "Merge pull request #28715 from YeldhamDev/inherent_scene_close_empty"
This reverts commit 0f8356d439, reversing
changes made to 7b7a664a97.
2019-05-08 00:46:40 -03:00
Ken Paulson ece6d37eef Improved the AnimatedSprite docs; added description to speed_scale. 2019-05-07 22:48:39 -04:00
Guilherme Souza b363125568 Fix SHADOWS_DISABLED flag in GLES2
Signed-off-by: Guilherme Souza <gdsdsilva@inf.ufpel.edu.br>
2019-05-07 12:42:28 -03:00
Bastiaan Olij e4dea0595a Add transform support to deal with Bullets centering of shapes 2019-05-07 22:43:10 +10:00
Bastiaan Olij 4bb0df7060 Center shape according to logic Bullet applies 2019-05-07 20:44:09 +10:00
Fabio Alessandrelli 0239d8bd9f
Merge pull request #28453 from Tarik02/enet_socket_set_option
Partially implement enet_socket_set_option
2019-05-07 10:14:52 +02:00
Timo Schwarzer ca80ebe9f6
Fix AnimationPlayer editor length and step synchronization 2019-05-06 21:39:24 +02:00
Rémi Verschelde df18c8c413 Remove reduz from some autorequested code reviews
He's still one of the main architects of some of these code branches,
but quite often PRs that modify one or two files in such folders don't
necessarily need his input, and he has enough backlog to handle.

PR triagers will ask for his review manually whenever relevant. He's
left as code owner for physics/visual servers and rendering backends.
2019-05-06 18:32:45 +02:00
Rémi Verschelde 2a8cb46c8e
Merge pull request #28516 from Chaosus/fix_vs_mix_title
Renames captions of Scalar/VectorInterp in Visual Shaders
2019-05-06 17:34:15 +02:00
Rémi Verschelde 7013607ef9
Merge pull request #28365 from fire/split_clip_blend_shapes
Modify ResourceImporterScene to split animations with blendshapes.
2019-05-06 16:58:29 +02:00
Rémi Verschelde fcbadd4334
Merge pull request #28525 from MunWolf/func_ref_validation
Added an is_valid function to FuncRef
2019-05-06 14:23:16 +02:00
Rémi Verschelde 958c915f60 Update AUTHORS and DONORS list
New contributors added to AUTHORS:
@Kanabenki, @KoBeWi

Thanks to all contributors and donors for making Godot possible!
2019-05-06 12:58:13 +02:00
Rémi Verschelde 0f8356d439
Merge pull request #28715 from YeldhamDev/inherent_scene_close_empty
Make editor close empty scene when creating an inherited one
2019-05-06 11:08:01 +02:00
Rémi Verschelde 7b7a664a97
Merge pull request #28709 from YeldhamDev/tabcontainer_locale_update
Fix 'TabContainer' not updating its tab titles when locale is changed
2019-05-06 10:53:22 +02:00
Rémi Verschelde 563d4b0e7f
Merge pull request #28696 from raphael10241024/debug_fix
fix CollisonShape changing shape cause crash when not in a tree
2019-05-06 10:42:56 +02:00
Rémi Verschelde 1a3a0e3d95
Merge pull request #28679 from megalike/fix_mac_os_delete_char_hotkeys
Support Mac OS default delete char hotkeys
2019-05-06 10:17:22 +02:00
Rémi Verschelde 9123db748e
Merge pull request #28330 from BastiaanOlij/improve_multimesh
Added set_as_bulk_array, fixed transform2D saving and documentation
2019-05-06 09:57:48 +02:00
Michael Alexsander Silva Dias 648cc7c0f5 Make editor close empty scene when creating an inherited one
Fixes #28654.
2019-05-06 02:01:01 -03:00