summaryrefslogtreecommitdiff
path: root/scene/2d
AgeCommit message (Collapse)Author
2017-09-05Automatically redraw when shaders using TIME are visible, fixes #10554Juan Linietsky
2017-09-02Merge pull request #10858 from letheed/add-shadow_filter-variantRémi Verschelde
add shadow_filter variant PCF7
2017-09-02Fix use of unitialized variablesHein-Pieter van Braam
The second in my quest to make Godot 3.x compile with -Werror on GCC7
2017-09-01Fix freeze on exit on audiostreamplayers when setting invalid stream, closes ↵Juan Linietsky
#10093
2017-09-01add shadow_filter variant PCF7letheed
2017-08-30Merge pull request #10378 from RandomShaper/nav-keep-start-endRémi Verschelde
Guarantee start & end points are returned by Navigation2D
2017-08-30Merge pull request #10361 from RandomShaper/tilemap-global-mtlRémi Verschelde
Let TileMap apply its material
2017-08-29Merge pull request #10745 from neikeq/fix-docdata-and-stuffJuan Linietsky
DocData and virtual method type hints fixes
2017-08-29DocData and type hints fixesIgnacio Etcheverry
- 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.
2017-08-28Merge pull request #10622 from letheed/patch-1Rémi Verschelde
Allow to disable shadow gradients in Light2D
2017-08-27Dead code tells no talesRémi Verschelde
2017-08-27Use HTTPS URL for Godot's website in the headersRémi Verschelde
2017-08-25added finished signals to audio stream players, fixes #9928Juan Linietsky
2017-08-25Removed old fp_adjust code that conflicts with clipped rects, fixes #9925Juan Linietsky
2017-08-24Allow to disable shadow gradients in Light2D Letheed
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.
2017-08-24Convert Object::cast_to() to the static versionHein-Pieter van Braam
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/
2017-08-22Change order of Null check for ParallaxLayerHein-Pieter van Braam
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.
2017-08-22Add null check to ParallaxLayer get_parent() callsHein-Pieter van Braam
This fixes #10515
2017-08-22Merge pull request #10340 from Rubonnek/remove-unnecessary-assignmentsRémi Verschelde
Removed unnecessary assignments
2017-08-21Merge pull request #10351 from neikeq/enums-are-for-the-weakJuan Linietsky
ClassDB: Provide the enum name of integer constants
2017-08-21Removed unnecessary assignmentsWilson E. Alvarez
2017-08-20ClassDB: Provide the enum name of integer constantsIgnacio Etcheverry
2017-08-20Merge pull request #10319 from neikeq/pr-engine-editor-hintJuan Linietsky
Adds Engine::is_editor_hint() method
2017-08-19Added polygon antialiasing, but it does not work on nvidia. Will have to try ↵Juan Linietsky
something else..
2017-08-19Removes editor_hint from SceneTreeIgnacio Etcheverry
2017-08-17Guarantee start & end points are returned by Navigation2DPedro J. Estébanez
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.
2017-08-16Synchronize parameter names in definition and declarationTwistedTwigleg
Fixes #10244.
2017-08-16Fix double point in Navigation2DPedro J. Estébanez
Fixes #10324.
2017-08-15Let TileMap apply its materialPedro J. Estébanez
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.
2017-08-14Merge pull request #10339 from bojidar-bg/x-fix-scale-conflictIgnacio Etcheverry
Rename Light2D::scale to texture_scale, so it doesn't conflict
2017-08-14Rename Light2D::scale to texture_scale, so it doesn't conflictBojidar Marinov
2017-08-13Merge pull request #10298 from nhold/kinematic-body-2d-_move-fixes-#10107Rémi Verschelde
Fix missing and incorrect values in return value of _move method
2017-08-12Disabling Particles::one_shot restarts emissionZher Huei Lee
Fixes #10181
2017-08-12Fix missing and incorrect values in return value of _move methodNathan Hold
2017-08-11Merge pull request #9987 from Rubonnek/move-members-to-initilization-listRémi Verschelde
Moved member variables from constructor to initialization list
2017-08-10Fixes method definitions with extra number of argumentsIgnacio Etcheverry
2017-08-10Removes type information from method bindsIgnacio Etcheverry
2017-08-08Moved member variables from constructor to initialization listWilson E. Alvarez
2017-08-07Ability to pause particles, closes #3675Juan Linietsky
2017-08-07Merge pull request #10141 from ISylvox/lower_case_godot_apiRémi Verschelde
Makes all Godot API's Methods lower_case
2017-08-07Merge pull request #10109 from eska014/init-particles2d-draw-orderRémi Verschelde
Initialize Particles2D draw order property
2017-08-07Makes all Godot API's methods Lower CaseIndah Sylvia
2017-08-05few bugs fixed thanks to explicit bool constructor and clang.Juan Linietsky
explicit bool constructor has thus now been removed, as it served it's mission!
2017-08-05Merge pull request #10116 from neikeq/prop_method_ambiguitiesJuan Linietsky
Renames properties and methods to avoid ambiguities
2017-08-05Renames properties and methods to avoid ambiguitiesIgnacio Etcheverry
- Method Node2D.scale(Vector2) renamed to Node2D.apply_scale(Vector2) - Property BaseButton.is_pressed renamed to BaseButton.pressed
2017-08-05emit signal properly when frame has changed in autoplay, fixes #7730Juan Linietsky
2017-08-05Properly update frame range after modifying the vframe/hframes, closes #7624Juan Linietsky
2017-08-05Warn about resizing a rigidbody (2D or 3D), covers the most common cases, ↵Juan Linietsky
closes #7615
2017-08-05Initialize Particles2D draw order propertyL. Krause
2017-08-03Merge pull request #10040 from Hassan-A/getCells3.0Rémi Verschelde
Added get_used_cells_by_id method 3.0