Chaosus
27731a86d2
Restrict set_pitch_scale to positive scales for AudioStreamPlayer*
...
Fixes #20459 .
Co-authored-by: Tiago José Sousa Magalhães <crakylps@gmail.com>
2018-08-22 00:11:53 +02:00
Rémi Verschelde
ed10ff65fd
Merge pull request #21245 from RandomShaper/fix-physics-canvas-xform
...
Take CanvasLayer transform into account for 2D physics
2018-08-21 21:46:04 +02:00
Rémi Verschelde
65c8a49122
Merge pull request #21250 from dragmz/ref-ptr-n(eq)-op
...
== and != operators for Ref<T> / T*
2018-08-21 21:28:29 +02:00
Rémi Verschelde
404ee1a56b
Style: Fix issues that went past CI
2018-08-21 21:28:06 +02:00
Rémi Verschelde
d3de933377
Merge pull request #21263 from guilhermefelipecgs/fix_gradient_edit
...
Fix grab/select of gradient edit
2018-08-21 20:47:47 +02:00
Juan Linietsky
ee07fb5ebe
Changes to ClippedCamera, RayCast,Raycast2D and 2D physics API to add ability to choose between bodies and areas when colliding.
2018-08-21 15:31:23 -03:00
Rémi Verschelde
28e9aedbdd
Merge pull request #21267 from akien-mga/color-grayscale
...
Deprecate incorrect Color::gray()
2018-08-21 20:29:56 +02:00
Pedro J. Estébanez
20dc63054f
Optimize CanvasLayer::get_global_transform_with_canvas
...
So it takes advantage of the `get_global_transform` cached data.
2018-08-21 20:10:15 +02:00
Pedro J. Estébanez
4839e5f6d9
Take CanvasLayer transform into account for 2D physics
...
Fixes #18073 .
2018-08-21 20:10:15 +02:00
Juan Linietsky
44d75e3b6d
Merge pull request #21266 from AndreaCatania/master
...
Added area / body collision exception in raycast
2018-08-21 14:26:19 -03:00
Andrea Catania
0b98834b77
Added ray / shape / point / motion / rest cast exclusion of area and or body
2018-08-21 18:51:08 +02:00
Rémi Verschelde
2969dffbe3
Deprecate incorrect Color::gray()
...
This average is not a proper approximation of a grayscale value,
get_v() is better suited for that.
If we want a real to_grayscale() conversion, it's somewhat more
involved: https://en.wikipedia.org/wiki/Grayscale
Remove the deprecated Gray() from C# bindings as it conflicts
with new named color constants.
2018-08-21 17:48:31 +02:00
Juan Linietsky
e20864c340
Clipped camera implementation, a camera that avoids going into geometry.
2018-08-21 11:48:48 -03:00
Guilherme Felipe
40f8ab6b1e
Fix grab/select of gradient edit
2018-08-21 11:22:58 -03:00
Rémi Verschelde
912131fe03
Merge pull request #20101 from panzergame/shape_margin
...
Expose bullet shape margin to UI.
2018-08-21 16:17:11 +02:00
Marcin Zawiejski
a1d2fbdeb2
== and != operators for Ref<T> / T*
...
This is to prevent crashes for code like:
...
void Material::set_next_pass(const Ref<Material> &p_pass) {
ERR_FAIL_COND(p_pass == this);
...
that's been fixed in 031f763d4f
2018-08-21 13:25:50 +02:00
Rémi Verschelde
35d232b100
Merge pull request #21228 from Noshyaar/docs-bind
...
Fix arg name in docs, some copy-paste errors
2018-08-21 00:08:05 +02:00
Juan Linietsky
031f763d4f
Crash fixes for material and animtree
2018-08-20 16:35:36 -03:00
Poommetee Ketson
76adef2704
Fix arg name in docs, some copy-paste errors
2018-08-21 01:51:19 +07:00
Juan Linietsky
c1bd768ca2
Merge pull request #18822 from QbieShay/master
...
Added spring arm node
2018-08-20 14:21:04 -03:00
Juan Linietsky
c7e4527a88
Massive rewrite to AnimationTree. Many APIs changed in order to:
...
-Reuse resources
-Expose properties in AnimationTree
2018-08-20 13:39:16 -03:00
Juan Linietsky
1b66b08fdb
Merge pull request #20908 from AndreaCatania/kiSlope
...
Improved move_and_slide function stay on slope
2018-08-20 13:24:28 -03:00
Chaosus
a6e51c8aa1
Fix crash when setting Material's next pass to itself
2018-08-19 21:27:09 +03:00
Andrea Catania
0010d9c82a
Added ray shape and move_and_slide with snapping on 3D.
...
Added stop_on_slope on 2d part
2018-08-19 13:45:23 +02:00
Rémi Verschelde
238a78f13f
Fix compiling SkeletonIK with disable_3d
...
Fixes #20825 .
2018-08-19 12:09:41 +02:00
Andrea Catania
9826456f2e
Improved move_and_slide function to stay on slope and fall on steep slope
2018-08-18 15:11:51 +02:00
Rémi Verschelde
0fbc5b3bbf
Merge pull request #21085 from akien-mga/physical_material_ext
...
Change PhysicsMaterial extension to phymat
2018-08-18 15:02:05 +02:00
QbieShay
bb14ef5623
added spring arm node.
2018-08-18 14:34:42 +02:00
Rémi Verschelde
099f74584a
Bind ItemList's item_custom_fg_color methods
...
Fixes #21086 .
2018-08-17 13:46:33 +02:00
Rémi Verschelde
68676c774d
Merge pull request #21091 from hpvb/fix-removing-popup-menu-item
...
Call minimum_size_changed() in PopupMenu::remove_item()
2018-08-17 02:27:16 +02:00
Hein-Pieter van Braam
2d032c1562
Call minimum_size_changed() in PopupMenu::remove_item()
...
When removing an item from a PopupMenu we need to update the control's
size cache otherwise the size of the PopupMenu itself lags behind by 1
item size. Meaning the PopupMenu will remain too large.
2018-08-16 21:51:41 +02:00
Hein-Pieter van Braam
fa7eac8a0d
Delay emitting pressed signals in PopupMenu
...
When processing items we may actually delete the item we're processing
in the callback for the signal. To avoid this, call the signal after
we're done processing the items. But before hiding the popupmenu itself.
Thanks to @reduz for writing the whole solution.
This fixes #19842
2018-08-16 21:44:18 +02:00
Rémi Verschelde
17b2d808de
Change PhysicsMaterial extension to phymat
...
All other binary extensions are lowercase.
2018-08-16 19:19:23 +02:00
Rémi Verschelde
a2abe760c8
Merge pull request #21047 from gotnospirit/fix_tween_reversed_duration
...
Tween: Always remove the desired InterpolateData when finished
2018-08-16 18:30:41 +02:00
Tristan Porteries
e5bfa98d0f
Expose bullet shape margin to UI.
...
The margin value is exposed into the UI for shape ressource.
This value can be modified through set_margin and get from get_margin
or by using the property margin. Each time the margin is modified
the associated collision shape is recreated and the margin value is
used in ShapeBullet::prepare.
2018-08-16 16:58:15 +02:00
James
4c2f9c19b8
Tween: Add a unique identifier to InterpolateData to be able to remove the right one when finished
2018-08-16 15:59:35 +02:00
Rémi Verschelde
9e4d1512db
Merge pull request #21075 from akien-mga/rotation_degrees_range
...
Lift 1440 limit in rotation_degrees hint range
2018-08-16 15:23:03 +02:00
Rémi Verschelde
968886768b
Lift 1440 limit in rotation_degrees hint range
...
Fixes #15947 .
2018-08-16 14:36:38 +02:00
Rémi Verschelde
c78bbfa669
Fix type of Range allow_greater/allow_lesser properties
2018-08-16 14:24:17 +02:00
Ovnuniarchos
9d0de7d417
PopupMenu item_pressed is sent before checking hide flags.
2018-08-16 07:22:18 +02:00
Juan Linietsky
c627f3a707
Attempting to workaround the problem present in #20904 , let me know if it works.
2018-08-15 13:24:52 -03:00
volzhs
4e9795aa99
Fix not to show configuration warning on every node has script
2018-08-15 21:35:06 +09:00
Juan Linietsky
d7a9a224fd
Revert "Fix border artifacts at the edge of deep parallax."
2018-08-14 20:33:50 -03:00
Juan Linietsky
4e55835e48
Merge pull request #18096 from aaronfranke/master
...
[Core] Split up math_2d.h
2018-08-14 18:58:32 -03:00
Rémi Verschelde
d6058b967d
Merge pull request #20906 from Chaosus/rrect_fix
...
Fix ReferenceRect border
2018-08-14 23:31:48 +02:00
Juan Linietsky
ef5095720b
-Deprecate ImageTexture::load
...
-Add warning to Image::load when loading resources
-Add script binding for get_configuration_warning
2018-08-14 16:53:20 -03:00
Rémi Verschelde
c0137db762
Merge pull request #20665 from SaracenOne/animation_tree_control
...
Add method to manually advance AnimationTree and manual process mode.
2018-08-14 15:54:20 +02:00
Rémi Verschelde
2ae7c67322
Merge pull request #20844 from gotnospirit/fix_tween_memory_leak
...
interpolation was not removed because of id mismatch
2018-08-14 15:44:26 +02:00
Rémi Verschelde
a3d0b89892
Merge pull request #20876 from ttencate/cursor_blink
...
Reset caret blink when Ctrl+moving the cursor
2018-08-14 15:42:19 +02:00
Rémi Verschelde
ccf5a50250
Fix comments indentation
2018-08-14 14:30:15 +02:00