summaryrefslogtreecommitdiff
path: root/scene/2d
AgeCommit message (Collapse)Author
2017-09-24Fix: CollisionObject shape owner indexing is inconsistentdamarindra
2017-09-23Rename get_position => get_playback_position and seek_pos => seek on audio ↵Marcelo Fernandez
classes
2017-09-22Changed get_audio_bus and set functions to get_audio_bus_name and setMarcelo Paez
and edited docs for Area2D due to renaming o get_audio_bus and set_audio_bus
2017-09-20Rename pos to position in user facing methods and variablesletheed
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.
2017-09-15Merge pull request #11230 from maxim-sheronov/fix_enum_bindingsThomas Herzog
Fix enums bindings
2017-09-13Fix enums bindingsMaxim Sheronov
Add missed bindings for enums Move some enums to class to have correct output of api.json
2017-09-13Merge pull request #11069 from aroncds/masterRémi Verschelde
KinematicBody2D api most friendlier
2017-09-13Renamed play to playing property, but now playing and is_playing is the ↵Juan Linietsky
same, to avoid confusing. Closes #11211
2017-09-12Fixed issues with surround sound on audio serverMarcelo Fernandez
2017-09-12Merge pull request #10908 from hpvb/fix-unused-variablesRémi Verschelde
Fix unused variable warnings
2017-09-12Merge pull request #11026 from hpvb/fix-assign-in-ifRémi Verschelde
Remove assignment and declarations in if statements
2017-09-12Merge pull request #11057 from hpvb/fix-various-warningsRémi Verschelde
Fix various assorted warnings
2017-09-12Merge pull request #11041 from hpvb/fix-clang-format-errorRémi Verschelde
Fix serveral recent new clang-format errors [ci skip]
2017-09-11Updated Area2D docs and added enum constants to scriptingWill Nations
2017-09-10Added to kinematicbody2d the copy and paste of the API friendler of ↵Aron de Castro
KinematicBody
2017-09-08Fix unused variable warningsHein-Pieter van Braam
The forth in my quest to make Godot 3.x compile with -Werror on GCC7
2017-09-08Remove assignment and declarations in if statementsHein-Pieter van Braam
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.
2017-09-08Fix various assorted warningsHein-Pieter van Braam
Fix various warnings that don't have enough instances to merit individual commits. Also fixes a potential bug in audio_server.cpp.
2017-09-08Fix serveral recent new clang-format errorsHein-Pieter van Braam
2017-09-06Renamed playing property of audiostreams to play, to make it clearer. Fixes ↵Juan Linietsky
#10730 Also disabled the auto shut down of the property when stream ends, to make it easier to animate
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