summaryrefslogtreecommitdiff
path: root/scene/2d
AgeCommit message (Collapse)Author
2019-12-16Fixed a bug within sprite.cpp that caused nan values to appear when a ↵Tyler Greenwood
texture had zero area
2019-12-10Merge pull request #34040 from qarmin/unused_variable_more_precise_numbersRémi Verschelde
Removed unused variables, add some constants numbers
2019-12-10Removed unused variables, add some constants numbersRafał Mikrut
2019-12-03Merge pull request #33857 from nekomatata/polygon-2d-antialiasingRémi Verschelde
Fixed antialiased option for Polygon2D
2019-12-02Ensure move_and_slide() is consistent between the 2D and 3D versions.Marcel Admiraal
In the 3D version: - Partially revert #20908 that was reverted in the 2D version as part of #21653. This ensures that the Vector returned is always perpendicular to the surface collided with; and not the floor_normal Vector passed to the function when on a floor. - Include an update of the floor velocity before multiplying by the time delta, which was added to the 2D version as part of commit 13a8014. In the 2D version: - Use the Vector2.slide() function instead of Vector2.tangent() to adjust the amount of motion the stop_on_slope undoes to ensure that it is in the right direction. This is a implementation of the 3D approach from #30588. - Combine the !found_collision and motion == Vector2() checks for break. - Other minor formating changes to make the functions look identical. Also renamed some variables to align with their use.
2019-11-30Remove unnecessary bounded_offset from PathFollow2DTomasz Chabora
2019-11-28Fixed antialiased option for Polygon2D / Line2DPouleyKetchoupp
Polygon2D: The property wasn't used anymore after switching from canvas_item_add_polygon() to canvas_item_add_triangle_array() for drawing. Line2D: Added the same property as for Polygon2D & fixed smooth line drawing to use indices correctly. Fixes #26823
2019-11-21Merge pull request #32274 from raphael10241024/fix_sync_physics_jitterRémi Verschelde
fix kinematicBody2D jitters when sync_to_physics is turned on
2019-11-20Fix some overflows and unitialized variablesRafał Mikrut
2019-11-08Revert "Fixed TouchScreenButton::shape_centered having no effect"Rémi Verschelde
This reverts commit 127c2d75ad109fe4a905f9061fcbc25d1e8b0ca9. This was a misunderstanding as #32725 is not a bug but expected behavior. Reverts #32927. Supersedes and closes #33436.
2019-11-07Merge pull request #32477 from aaronfranke/equal-approx-separateRémi Verschelde
Make is_equal_approx separate and make == exact again
2019-10-30Merge pull request #32934 from ajweeks/fix-scale-originRémi Verschelde
Fix 2D scale gizmo placement
2019-10-29Fixed disconnecting not connected signalMikolaj Kaczmarek
2019-10-27Merge pull request #31943 from codecustard/Fixes_invalid_frames_on_reverse_animRémi Verschelde
Fixes Reverse Animation Starting on First Frame
2019-10-26Merge pull request #32657 from ptrojahn/linesRémi Verschelde
Fix draw_rect
2019-10-24Fixed emitting not initialized correctly in cpu particles 2d/3dPouleyKetchoupp
Fixes uninitialized variable caused by PR #32921
2019-10-23Merge pull request #32992 from KoBeWi/AUTOVECTORZRémi Verschelde
Auto-increment frame_coords when keying
2019-10-22Merge pull request #32924 from ajweeks/add-ruler-arcsRémi Verschelde
Draw arcs to indicate angles being measured by ruler
2019-10-22Auto-increment frame_coords when keyingTomasz Chabora
2019-10-22Fix canvas scale gizmo placementAJ Weeks
2019-10-22Merge pull request #32927 from Muller-Castro/ShapeCenteredFixRémi Verschelde
Fixed TouchScreenButton::shape_centered having no effect
2019-10-22Merge pull request #32921 from nekomatata/fix-cpu-particle-delayRémi Verschelde
Fixed delay when CPUParticles & CPUParticles2D start being emitted
2019-10-22Merge pull request #32896 from nekomatata/joint-reset-collisionRémi Verschelde
Properly reset collision exception when releasing Joint2D
2019-10-20Fixed delay when CPUParticles & CPUParticles2D start being emittedPouleyKetchoupp
Particles were processed only on the next frame after the emission started, causing a one frame delay in rendering. Now the first process cycle is started during the same frame, which makes them consistent with Particles & Particles2D. Fixes #32890
2019-10-19Fixed TouchScreenButton::shape_centered having no effectMuller-Castro
The problem was that the shape_centered depended on TouchScreenButton::texture having a Texture
2019-10-19Add arcs to indicate angle being measured by rulerAJ Weeks
2019-10-17Properly reset collision exception when releasing Joint2DPouleyKetchoupp
Now using joint_disable_collisions_between_bodies() to reset the exception, because body_remove_collision_exception() was doing only a part of the work. Fixes #32733
2019-10-16Fixes Reverse Animation Starting on First FrameEmmanuel Barroga
When playing an animation in reverse, the animation initially starts on frame 0. If it loops, it'll play normally by going to the last frame of the animation, but if it does not... it prematurely stops, since it is already on the last frame (for reversed animation) by starting on frame 0.
2019-10-15Correct change made to joints_2d.cpp by 072e403.Marcel Admiraal
2019-10-14Replace vector == and is_zero_approx(distance) with is_equal_approxAaron Franke
Internal changes only
2019-10-13Fixes Sprite frame_coordsGilles Roudiere
2019-10-11Fix draw_rectPaul Trojahn
OpenGL uses the diamond exit rule to rasterize lines. If we don't shift the points down and to the right by 0.5, the line can sometimes miss a pixel when it shouldn't. The final fragment of a line isn't drawn. By drawing the lines clockwise, we can avoid a missing pixel in the rectangle. See section 3.4.1 in the OpenGL 1.5 specification. Fixes #32279
2019-10-08Fix crash in TileMap::update_cell_bitmaskqarmin
2019-10-07Merge pull request #32351 from nekomatata/texture-rect-size-updateRémi Verschelde
Update TextureRect when its Texture is modified directly
2019-10-05Update TextureRect and Sprite when their Texture is modified directly.PouleyKetchoupp
Modified Sprite to use "changed" signal instead of _changed_callback to make it work when tool is disabled (change receptors are editor only). Fixes #32349
2019-10-05Fix crash in TileMap::fix_invalid_tilesqarmin
2019-10-02Revert "Fixes CPUParticles2D not making use of AtlasTextures"Rémi Verschelde
2019-10-02Merge pull request #32459 from bitstopper/masterRémi Verschelde
Fixes CPUParticles2D not making use of AtlasTextures
2019-10-01Fixes CPUParticles2D not making use of AtlasTexturesbitstopper
Fixes CPUParticles2D not making use of AtlasTextures #2
2019-09-30Altered rotation_degrees rangeSoumya Lahiri
2019-09-26Fix TileMap world_to_map rounding issue for negative integersbob
The previous code would fail for negative integer values like -3.0 (would return -4 instead of -3). Fixes #31468.
2019-09-25Merge pull request #32119 from Calinou/unify-axis-colorsRémi Verschelde
Use the same axis colors consistently in the 2D and 3D editors
2019-09-25Merge pull request #32051 from qarmin/some_error_explanationRémi Verschelde
Added some obvious errors explanations
2019-09-25Added some obvious errors explanationsqarmin
2019-09-24Merge pull request #32309 from clayjohn/particles_tex_scaleRémi Verschelde
Fix particles scale randomization
2019-09-24fix particles scale randomizationclayjohn
2019-09-23fix kinematicBody2D jitters when sync_to_physics is turned on, closes #28181RaphaelHunter
2019-09-22Changed some code found by Clang Tidy and Coverityqarmin
2019-09-19Fix misc. source comment typosluz.paz
Found using `codespell -q 3 -S ./thirdparty,*.po -L ang,ba,cas,dof,doubleclick,fave,hist,leapyear,lod,nd,numer,ois,paket,seeked,sinc,switchs,te,uint -D ~/Projects/codespell/codespell_lib/data/dictionary.txt `
2019-09-13Use the same axis colors consistently in the 2D and 3D editorsHugo Locurcio