summaryrefslogtreecommitdiff
path: root/scene/2d
AgeCommit message (Collapse)Author
2018-07-27Fix PhysicsBody build with deprecated=noRémi Verschelde
Fixes #20483.
2018-07-26doc: Sync classref with current sourceRémi Verschelde
Fix various missing arguments in bindings.
2018-07-26Reduce unnecessary COW on Vector by make writing explicitHein-Pieter van Braam
This commit makes operator[] on Vector const and adds a write proxy to it. From now on writes to Vectors need to happen through the .write proxy. So for instance: Vector<int> vec; vec.push_back(10); std::cout << vec[0] << std::endl; vec.write[0] = 20; Failing to use the .write proxy will cause a compilation error. In addition COWable datatypes can now embed a CowData pointer to their data. This means that String, CharString, and VMap no longer use or derive from Vector. _ALWAYS_INLINE_ and _FORCE_INLINE_ are now equivalent for debug and non-debug builds. This is a lot faster for Vector in the editor and while running tests. The reason why this difference used to exist is because force-inlined methods used to give a bad debugging experience. After extensive testing with modern compilers this is no longer the case.
2018-07-25Merge pull request #20404 from TigerCaldwell/masterRémi Verschelde
Ensured consistency between RigidBody, PhysicsDirectBodyState, PhysicsServers and their 2D counterparts
2018-07-24Merge pull request #20252 from RandomShaper/fix-canvas-searchRémi Verschelde
Fix CanvasItem's search for a CanvasLayer
2018-07-24Modified RigidBody, PhysicsDirectBodyState, PhysicsServer, and their ↵Tiger Caldwell
respective 2D counterparts to be more consistent and to include more useful methods. RigidBody: - Added add_central_force - Added add_force - Added add_torque - Added apply_central_impulse RigidBody2D: - Added add_central_force - Added add_torque - Added apply_central_impulse - Added apply_torque_impulse PhysicsDirectBodyState: - Added apply_central_impulse Physics2DDirectBodyState: - Added add_central_force - Added add_force - Added add_torque - Added apply_central_impulse - Added apply_impulse - Added apply_torque_impulse PhysicsServer: - Added body_add_force - Added body_add_torque - Added body_add_central_force - Added body_apply_central_impulse Physics2DServer: - Added body_add_torque - Added body_add_central_force - Added body_apply_central_impulse - Added body_apply_torque_impulse Also fixed some small bugs along the way
2018-07-24Removed unnecessary assignmentsWilson E. Alvarez
2018-07-23Merge pull request #12403 from AndreaCatania/phymatJuan Linietsky
Physics material
2018-07-22Defer TileMap::update_dirty_quadrants once again.Pieter-Jan Briers
This fixes #20323. #11077 is now technically re-broken, but you can now call update_dirty_quadrants as workaround.
2018-07-18Fix CanvasItem search for a CanvasLayerPedro J. Estébanez
This fixes the situation where a `CanvasItem` descendant of a `Viewport` which in turn is a descendant of a `CanvasLayer` prefers the more outer `CanvasLayer` rather than the `Vierport`'s. Because of that, `CanvasItem`s inside a `Viewport` inside a `CanvasLayer` were being rendered to the main `Viewport` instead of the render target of the innermost one.
2018-07-17Merge pull request #19087 from danvalho/masterMax Hilbrunner
SpriteFrames: expose method to get array containing animation names
2018-07-17Further fixes to KinematicBody2D API, support for sync motion in moving objectsJuan Linietsky
2018-07-17Merge pull request #20191 from jvdnbus/line2d-stretchMax Hilbrunner
Line2D texture stretch mode
2018-07-16Changes to how snap works (I think this makes more sense now)Juan Linietsky
2018-07-16-Added support for raycast in KinematicBody2DJuan Linietsky
-Added support for snapping in KinematicBody2D
2018-07-16Line2D texture stretch modeJorn Van denbussche
Prototype for stretching the texture across the whole line. Fixed end cap tile mode.
2018-07-16More accurate UV round begin capJorn Van denbussche
2018-07-10Fix possible bug with AudioStreamPlayer2D audio positionMarcelo Fernandez
2018-07-09Improved stream paused fade codeMarcelo Fernandez
2018-07-05Merge pull request #19646 from chanon/fix-audiostream-cant-set-null-streamMax Hilbrunner
Fix can't set AudioStreamPlayer stream to null
2018-07-03Merge pull request #18634 from groud/fix_control_child_of_node2dMax Hilbrunner
Fixes the bad calculation of margin & anchors when child of Node2D
2018-07-03Merge pull request #19205 from marcelofg55/audio_stream_pauseMax Hilbrunner
Pause AudioStreamPlayer when SceneTree pauses
2018-06-27Changes to how node paths are selected from property, allowing setting a hint.Juan Linietsky
2018-06-26Merge pull request #19164 from marcelofg55/tilemap_undo2Rémi Verschelde
Improve TileMap undo operations, second try
2018-06-26Optimize _recreate_quadrantsMarcelo Fernandez
2018-06-22fix can't set AudioStreamPlayer stream to nullchanon
2018-06-08Merge pull request #19343 from bojidar-bg/x-fix-tilemap-shape-rotationRémi Verschelde
Fix bugs related to bad handling of rotated/translated shapes in tilemap
2018-06-08Merge pull request #19314 from Jellonator/masterRémi Verschelde
Added autotile override
2018-06-07Fixes the bad calculation of margin & anchors when child of Node2Dgroud
2018-06-05SpriteFrames: expose method to get array containing animation namesdanvalho
2018-06-05Revert "Prevent visibility notification from being called twice in object ↵Rémi Verschelde
creation"
2018-06-03Pause AudioStreamPlayers when SceneTree pausesMarcelo Fernandez
2018-06-03Fix bugs related to bad handling of rotated/translated shapes in tilemapBojidar Marinov
Fixup #18529 and #12870
2018-06-02Added autotile overrideJames Beedie
2018-05-31Revert "Revert "Prevent visibility notification been called twice in object ↵Rémi Verschelde
creation"" This reverts commit 4d277b96ad581358f63870ae051dc73b69c82cd7. Woops, this wasn't meant to be committed. I just reverted it locally to test something, nothing wrong with the original commit :)
2018-05-31Revert "Prevent visibility notification been called twice in object creation"Rémi Verschelde
This reverts commit d42b17607ef14aeb72036f8747eb4d5c64979872.
2018-05-31Style: Apply clang-format (5.0) to some missed filesRémi Verschelde
2018-05-29Improve TileMap undo operations, second tryMarcelo Fernandez
2018-05-17Merge pull request #18960 from isaacremnant/autotile_3x3_minimalMariano Javier Suligoy
Restore support for minimal 3x3 autotile sets
2018-05-17Restore support for minimal 3x3 autotile setsisaacremnant
2018-05-17Fix missing return on Navigation2D::get_closest_point_ownerMarcelo Fernandez
2018-05-16Merge pull request #15909 from authenticate/tilemap_fixMariano Javier Suligoy
TileMap Navigation Fixes
2018-05-16Add missing copyright headersGuilherme Felipe
2018-05-16Allow editing of some unbound properties when hinted (or no range hinted)Juan Linietsky
2018-05-15Fixing a bug where tilemap navigation would not be accurate after a tilemap ↵James
exits and then re-enters the tree. Fixing a bug where deleting a tile and then querying navigation would result in an incorrect path if both happened within the same frame.
2018-05-16Fix Camera2D drag margin property is affected by zoom property #18912Anthony Rey
2018-05-15-New inspector.Juan Linietsky
-Changed UI resizing code, gained huge amount of speed. -Reorganized timer sync to clean up behavior (sorry forgot commit this before) -
2018-05-14Merge pull request #18851 from groud/fix_animatedspriteRémi Verschelde
Updates frame timeout when changing speed scale
2018-05-14Fixed some warnings found with Cppcheck.Michael Alexsander Silva Dias
2018-05-13Updates frame timeout when changing speed scalegroud