aboutsummaryrefslogtreecommitdiff
path: root/scene/2d (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
| * | Fix joints collision exceptionsPedro J. Estébanez2017-08-292-72/+48
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix 3D joint handling of collision exceptions, so that they lose effect when the joint is not valid in every case; also some redundant code removed. Also avoid trying to create the joint when not neither body A nor body B are set. Make 2D joints be handled like their 3D counterparts, which adds the fixes to them while also removing duplicated code. (adapted from commit 4a98a59aa6810a679370e3664e89b3d83eb3d879)
* | | Fixes infinite loop in NavPolygonInstance warningsCédric Fuchs2017-10-261-1/+1
| | |
* | | missing set/get_collision_mask_bit() for RayCastJakub Grzesik2017-10-232-0/+21
| | | | | | | | | | | | in the same fastion how it's implemented in Area or Bodies
* | | Merge pull request #12291 from RandomShaper/fix-raycast-namingRémi Verschelde2017-10-212-12/+12
|\ \ \ | | | | | | | | Rename RayCasts collision_layer to collision_mask
| * | | Rename RayCasts collision_layer to collision_maskPedro J. Estébanez2017-10-212-12/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The point is that `RayCast`s are checked against objects' `collision_layer`(s), but they themselves are considered no to _belong_ to any layer. Therefore, the correct name for their property is `collision_mask`, rather than `collision_layer`. Only renaming is needed since the behavior was already the right one, only that it wasn't matching what users would expect from the name and description of the property. Fixes #7589, where it's also discussed.
* | | | Bind unbound enums, rearrange some by valuePoommetee Ketson2017-10-224-6/+6
|/ / /
* | | Merge pull request #12260 from bojidar-bg/11975-navpoly-freezeRémi Verschelde2017-10-201-1/+1
|\ \ \ | | | | | | | | | | | | | | | | Fix adding a NavigationPolygonInstance to a Node2D freezing the editor [ci skip]
| * | | Fix adding a NavigationPolygonInstance to a Node2D freezing the editorBojidar Marinov2017-10-201-1/+1
| | | | | | | | | | | | | | | | Fixes #11975
* | | | Tweaks ParallaxBackground to work better with zoom. Ensures a Parallax Layer ↵Sofox2017-10-181-1/+1
|/ / / | | | | | | | | | with a (1,1) motion scale synchs perfectly with a regular stationary sprite that is outside the ParallaxBackground, regardless of the zoom level and movement of the camera.
* | / Fix AnimatedSprite frame property slider in editorHiroshi Ogawa2017-10-111-3/+1
| |/ |/|
* | Renamed fixed_process to physics_processAndreaCatania2017-09-306-26/+26
| |
* | Fix: CollisionObject shape owner indexing is inconsistentdamarindra2017-09-241-1/+1
| |
* | Rename get_position => get_playback_position and seek_pos => seek on audio ↵Marcelo Fernandez2017-09-232-4/+4
| | | | | | | | classes
* | Changed get_audio_bus and set functions to get_audio_bus_name and setMarcelo Paez2017-09-223-8/+8
| | | | | | | | and edited docs for Area2D due to renaming o get_audio_bus and set_audio_bus
* | Rename pos to position in user facing methods and variablesletheed2017-09-2012-36/+36
| | | | | | | | | | | | | | | | | | | | | | Rename user facing methods and variables as well as the corresponding C++ methods according to the folloming changes: * pos -> position * rot -> rotation * loc -> location C++ variables are left as is.
* | Merge pull request #11230 from maxim-sheronov/fix_enum_bindingsThomas Herzog2017-09-157-56/+70
|\ \ | | | | | | Fix enums bindings
| * | Fix enums bindingsMaxim Sheronov2017-09-137-56/+70
| | | | | | | | | | | | | | | Add missed bindings for enums Move some enums to class to have correct output of api.json
* | | Merge pull request #11069 from aroncds/masterRémi Verschelde2017-09-132-106/+170
|\ \ \ | | | | | | | | KinematicBody2D api most friendlier
| * | | Added to kinematicbody2d the copy and paste of the API friendler of ↵Aron de Castro2017-09-102-106/+170
| | | | | | | | | | | | | | | | KinematicBody
* | | | Renamed play to playing property, but now playing and is_playing is the ↵Juan Linietsky2017-09-131-1/+1
| | | | | | | | | | | | | | | | same, to avoid confusing. Closes #11211
* | | | Fixed issues with surround sound on audio serverMarcelo Fernandez2017-09-121-38/+18
| |/ / |/| |
* | | Merge pull request #10908 from hpvb/fix-unused-variablesRémi Verschelde2017-09-121-1/+0
|\ \ \ | | | | | | | | Fix unused variable warnings
| * | | Fix unused variable warningsHein-Pieter van Braam2017-09-081-1/+0
| |/ / | | | | | | | | | The forth in my quest to make Godot 3.x compile with -Werror on GCC7
* | | Merge pull request #11026 from hpvb/fix-assign-in-ifRémi Verschelde2017-09-121-1/+2
|\ \ \ | | | | | | | | Remove assignment and declarations in if statements
| * | | Remove assignment and declarations in if statementsHein-Pieter van Braam2017-09-081-1/+2
| |/ / | | | | | | | | | | | | | | | After discussing with @reduz and @akien-mga it was decided that we do not allow assignments or declarations in if statements. This PR removes the instances of this I could find by automated means.
* | | Merge pull request #11057 from hpvb/fix-various-warningsRémi Verschelde2017-09-121-25/+30
|\ \ \ | | | | | | | | Fix various assorted warnings
| * | | Fix various assorted warningsHein-Pieter van Braam2017-09-081-25/+30
| |/ / | | | | | | | | | | | | Fix various warnings that don't have enough instances to merit individual commits. Also fixes a potential bug in audio_server.cpp.
* | | Merge pull request #11041 from hpvb/fix-clang-format-errorRémi Verschelde2017-09-121-3/+0
|\ \ \ | | | | | | | | | | | | | | | | Fix serveral recent new clang-format errors [ci skip]
| * | | Fix serveral recent new clang-format errorsHein-Pieter van Braam2017-09-081-3/+0
| |/ /
* / / Updated Area2D docs and added enum constants to scriptingWill Nations2017-09-111-1/+7
|/ /
* | Renamed playing property of audiostreams to play, to make it clearer. Fixes ↵Juan Linietsky2017-09-061-3/+5
| | | | | | | | | | | | #10730 Also disabled the auto shut down of the property when stream ends, to make it easier to animate
* | Automatically redraw when shaders using TIME are visible, fixes #10554Juan Linietsky2017-09-051-0/+1
| |
* | Merge pull request #10858 from letheed/add-shadow_filter-variantRémi Verschelde2017-09-022-1/+2
|\ \ | | | | | | add shadow_filter variant PCF7
| * | add shadow_filter variant PCF7letheed2017-09-012-1/+2
| | |
* | | Fix use of unitialized variablesHein-Pieter van Braam2017-09-021-1/+1
| | | | | | | | | | | | The second in my quest to make Godot 3.x compile with -Werror on GCC7
* | | Fix freeze on exit on audiostreamplayers when setting invalid stream, closes ↵Juan Linietsky2017-09-011-1/+3
|/ / | | | | | | #10093
* | Merge pull request #10378 from RandomShaper/nav-keep-start-endRémi Verschelde2017-08-301-12/+14
|\ \ | | | | | | Guarantee start & end points are returned by Navigation2D
| * | Guarantee start & end points are returned by Navigation2DPedro J. Estébanez2017-08-171-12/+14
| | | | | | | | | | | | | | | | | | So start and end points are unconditionally added to the returned point list, but first and last middle points are checked against them to avoid duplicates. `CMP_EPSILON` was already providing a guarantee, but knowing you will get exactly the endpoints you provided is even better.
* | | Merge pull request #10361 from RandomShaper/tilemap-global-mtlRémi Verschelde2017-08-303-2/+39
|\ \ \ | | | | | | | | Let TileMap apply its material
| * | | Let TileMap apply its materialPedro J. Estébanez2017-08-153-2/+39
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | So when a material is set, every tile will be rendered with that. Quadrants will not be recreated, so a `CanvasItem` will exist per material per quadrant regardless a global material is set. This makes also __Use parent material__ work for `TileMap`s. Closes #9996.
* | | | Merge pull request #10745 from neikeq/fix-docdata-and-stuffJuan Linietsky2017-08-291-1/+1
|\ \ \ \ | |_|_|/ |/| | | DocData and virtual method type hints fixes
| * | | DocData and type hints fixesIgnacio Etcheverry2017-08-291-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | - Makes vararg methods automatically use PROPERTY_USAGE_NIL_IS_VARIANT on return types - Completely removes the ":type" suffix for method names. Virtual methods must use the MethodInfo constructors that takes Variant::Type or PropertyHint as the first parameter for the return type (with CLASS_INFO as a helper to get the PropertyInfo). Parameters must use PROPERTY_HINT_RESOURCE_TYPE and hint string. - PROPERTY_USAGE_NIL_IS_VARIANT is no longer needed for parameters, because parameters cannot be void. - Adds missing PROPERTY_USAGE_NIL_IS_VARIANT to virtual and built-in methods that return Variant.
* | | | Merge pull request #10622 from letheed/patch-1Rémi Verschelde2017-08-281-1/+1
|\ \ \ \ | |/ / / |/| | | Allow to disable shadow gradients in Light2D
| * | | Allow to disable shadow gradients in Light2D Letheed2017-08-241-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Currently the shadow gradient can't be disabled and always has a minimum value of 1. I'm not sure why though, the default value seems to be 0 and the rasterizer checks for 0 [here](https://github.com/godotengine/godot/blob/8fc6bb8f771c520c15320c3b4be561abc648d65d/drivers/gles3/rasterizer_canvas_gles3.cpp#L1284) before enabling it. Feels like a bug to me, but if there's a reason for that let me know. As a side effect, this edit effectively changes the default value from 1 to 0 for new projects.
* | | | Dead code tells no talesRémi Verschelde2017-08-274-91/+1
| | | |
* | | | Use HTTPS URL for Godot's website in the headersRémi Verschelde2017-08-2764-64/+64
| | | |
* | | | added finished signals to audio stream players, fixes #9928Juan Linietsky2017-08-251-0/+4
| | | |
* | | | Removed old fp_adjust code that conflicts with clipped rects, fixes #9925Juan Linietsky2017-08-251-4/+2
| | | |
* | | | Convert Object::cast_to() to the static versionHein-Pieter van Braam2017-08-2419-108/+82
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Currently we rely on some undefined behavior when Object->cast_to() gets called with a Null pointer. This used to work fine with GCC < 6 but newer versions of GCC remove all codepaths in which the this pointer is Null. However, the non-static cast_to() was supposed to be null safe. This patch makes cast_to() Null safe and removes the now redundant Null checks where they existed. It is explained in this article: https://www.viva64.com/en/b/0226/
* | | Change order of Null check for ParallaxLayerHein-Pieter van Braam2017-08-221-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The change in #10524 subtly changes the behavior of set_motion_scale() and set_motion_offset() if the ParallaxLayer does not have a parent node. Previously it would still set the corresponding property, but after this change the property change would be discarded. I'm not entirely sure if this actually matters as there doesn't appear to be any code that picks up this change if the ParallaxLayer gets re-parented later, but it's better to not change behavior regardless.