Bojidar Marinov
583f7adb51
Allow ColisionObject2D to get shapes from tilemaps
...
Fixes #4454 and likely resolves #22285
2019-06-27 21:16:54 +03:00
Rémi Verschelde
0636f709af
Merge pull request #29937 from clayjohn/particles-one-shot-bug
...
Update emitting status on one-shot particles
2019-06-27 17:29:40 +02:00
Bojidar Marinov
0c4c36d823
Add default values to the editor help, docs, and generated RST
...
Also, make spacing of "=" in the editor help a bit more consistent.
Closes #16086
2019-06-27 18:29:35 +03:00
Rémi Verschelde
eaaff9da31
Merge pull request #29941 from qarmin/redundant_code_and_others
...
Remove redundant code, possible NULL pointers and others
2019-06-27 01:05:18 +02:00
Tomasz Chabora
00b15c19b7
Add a Direction property to ParticlesMaterial
2019-06-26 20:37:39 +02:00
qarmin
4e5310cc60
Some code changed with Clang-Tidy
2019-06-26 15:08:25 +02:00
clayjohn
d59dbda24f
update emitting status on one-shot particles
2019-06-25 22:07:29 -07:00
Rémi Verschelde
f34c8015cb
Area2D: Fix argument type of body_* signals
...
Those signals receive either a PhysicsBody2D or a TileMap object,
and what the emitting method checks internally is only that the
object is a Node. In theory any Node could go through these signals
if they talk directly to the PhysicsServer2D.
Also updated docs.
Fixes #27076 .
Might need further (compat breaking) improvement as this API is a
bit confusing, cf. #24739 .
2019-06-24 21:40:31 +02:00
Rémi Verschelde
25022a1d89
Merge pull request #29974 from clayjohn/particles_restart
...
Properly set emitting when particles restart
2019-06-24 13:48:56 +02:00
clayjohn
64ecc8a5a3
properly set emitting when particles restart
2019-06-21 22:33:11 -07:00
Rémi Verschelde
b3fe249e94
CPUParticles: Set linear velocity to 0, like GPU Particles
2019-06-21 15:23:48 +02:00
Rémi Verschelde
fae3df1204
Particles: Properly initialize angular velocity parameter
...
Right now it would take garbage values when loading scenes,
which could end up written to the scene file.
2019-06-21 15:23:10 +02:00
Rémi Verschelde
5c66771e3e
Merge pull request #29283 from qarmin/fix_some_always_same_values
...
Remove always true/false values
2019-06-20 21:10:10 +02:00
qarmin
072e40368e
Fix always true/false values
2019-06-20 16:59:48 +02:00
Tristan Grespinet
14f8ed3317
Added a Width Curve to Line2D + UVs fix
2019-06-19 15:44:07 +02:00
JohnJLight
38d3bfe971
Made use of semicolons more consitent, fixed formatting
2019-06-19 15:24:31 +02:00
clayjohn
7d1ee6d3c3
change emit shape circle to sphere in CPUParticles2D
2019-06-17 11:59:31 -07:00
Hugo Locurcio
c0b3e20ca7
Tweak some editor property hints to be more flexible and consistent
...
This partially addresses #19242 .
2019-06-16 23:52:16 +02:00
Rémi Verschelde
9d3342545d
Merge pull request #29700 from clayjohn/cpuparticles_transform_bug
...
Fix CPU particles bug with local_coords and transform
2019-06-16 10:49:30 +02:00
Rémi Verschelde
68735d2a88
Fix compilation warnings in JS and Windows builds
...
Warnings raised by Emscripten 1.38.0 and MinGW64 5.0.4 / GCC 8.3.0.
JS can now build with `werror=yes warnings=extra`.
MinGW64 still has a few warnings to resolve with `warnings=extra`,
and only one with `warnings=all`.
Part of #29033 and #29801 .
2019-06-15 14:40:45 +02:00
clayjohn
52696e98b4
fix CPU particles bug with local_coords and transform
2019-06-14 13:22:19 -07:00
Rémi Verschelde
52dd0f8751
Implement missing orbit velocity for CPUParticles and CPUParticles2D
...
The relevant code was copied from (GPU) ParticlesMaterial but commented
out initially, and never ported.
Closes #29580 .
2019-06-13 11:35:07 +02:00
Rémi Verschelde
84d969a42a
Cleanup some unecessary editor/ includes in scene/
...
Part of #29730 , handles false positives.
2019-06-12 22:48:43 +02:00
Rémi Verschelde
971b5160c6
Merge pull request #29306 from qarmin/small_code_fixes
...
Small fixes to unrechable code, possibly overflows, using NULL pointers
2019-06-12 12:49:21 +02:00
Rémi Verschelde
f160c81f68
Merge pull request #29696 from akien-mga/cpuparticles-randomness
...
CPUParticles: Do randomness ratio computations in phase instead of time
2019-06-12 10:54:02 +02:00
Rémi Verschelde
fd66a45f32
Merge pull request #29685 from akien-mga/cpuparticles-tangential-accel
...
CPUParticles: Fix inconsistent tangential acceleration
2019-06-12 10:53:31 +02:00
Rémi Verschelde
d0c2005da1
CPUParticles: Do randomness ratio computations in phase instead of time
...
The original shader code uses a phase (ratio from 0 to 1 for the particle
lifetime) for the randomness ratio computations, and this code was ported
over but converted to time computations.
The seeding/cycle logic was thus invalid, so we're going back to phase
for these computations, thus fixing the previous non-working time/emission
randomness property.
Part of #29692 . Follow-up to #26859 .
2019-06-11 23:40:56 +02:00
Rémi Verschelde
9206bcabaa
CPUParticles: Fix inconsistent tangential acceleration
...
The tangential acceleration for both CPUParticles2D and CPUParticles had been
badly converted from their GPU counterpart (ParticlesMaterial).
This fixes it and ensures that both GPU and CPU particles behave the same with
regard to tangential acceleration.
2019-06-11 18:56:07 +02:00
Rémi Verschelde
6d16f2f053
Fix error macro calls not ending with semicolon
...
It's not necessary, but the vast majority of calls of error macros
do have an ending semicolon, so it's best to be consistent.
Most WARN_DEPRECATED calls did *not* have a semicolon, but there's
no reason for them to be treated differently.
2019-06-11 14:49:34 +02:00
Rémi Verschelde
7b883d7d50
Merge pull request #29558 from SamSindt/fix-lifetime-reversed-CPUParticles2D
...
Reversed operator in SortLifetime fixing #29440
2019-06-11 12:14:26 +02:00
Rémi Verschelde
227b5d20ee
Merge pull request #29519 from Ranoller/master
...
Make tilemap texture origin point top-left.
2019-06-11 12:05:13 +02:00
qarmin
37c2595526
Fix crash when frames are empty
2019-06-10 08:36:28 +02:00
SamSindt
6a23eff748
Reversed operator in SortLifetime fixing #29440
2019-06-06 12:49:48 -07:00
qarmin
2621131549
Fix 2D Line crash
2019-06-06 21:09:37 +02:00
Ranoller
f26e9daab5
Make tilemap texture origin point top-left.
...
Fix https://github.com/godotengine/godot/issues/29487 . In this commit: https://github.com/godotengine/godot/pull/28896 bad offset of textures and shapes was fixed, but a center of texture was added too, and this seems not dessired by default because breaks too much compatibility with demos and user projects. A future Check box for center texture can be added
2019-06-05 23:23:36 +02:00
qarmin
8245db869f
Small fixes to unrechable code, possibly overflows, using NULL pointers
2019-06-03 21:52:50 +02:00
clayjohn
2b8b1d7c46
added MultiMeshInstance2D node for using MultiMesh in 2D
2019-06-03 12:11:54 -07:00
Michael Alexsander Silva Dias
962652f14b
Properly add "texture_changed" signal to MeshInstance2D
...
Fixes #29410 .
2019-06-02 23:51:44 -03:00
Rémi Verschelde
449395716f
Merge pull request #28390 from KoBeWi/smaller_bigger_gizmo
...
Allow to change Position2D gizmo size
2019-06-02 00:06:28 +02:00
Tomasz Chabora
662c8f95ec
Allow to change Position2D gizmo size
2019-06-01 12:33:24 +02:00
Rémi Verschelde
4b399034aa
Merge pull request #24560 from guilhermefelipecgs/fix_24549
...
Add EDITMODE_PRIORITY for ATLAS_TILE
2019-06-01 09:49:18 +02:00
Rémi Verschelde
586539d867
Fix wrong property binding for NavigationPolygon::vertices
2019-05-29 17:28:22 +02:00
Rémi Verschelde
84331549db
Merge pull request #28896 from Ranoller/master
...
Fix tilemap displaced textures and shapes
2019-05-28 22:25:18 +02:00
Tomasz Chabora
f3c5db662d
Don't allow PathFollow offset outside bounds
2019-05-25 18:27:22 +02:00
Tomasz Chabora
5e9400b2e3
Don't modulate canvas on invisible color change
2019-05-24 13:10:21 +02:00
Pedro J. Estébanez
88153fbb61
Fix 2D bones ignored by onion skinning
...
Fixes #27819 .
2019-05-22 20:40:57 +02:00
Rémi Verschelde
e0574e1d98
Fix typos with codespell
...
Using codespell 1.15.0.
Method:
```
$ cat > ../godot-word-whitelist.txt << EOF
ang
curvelinear
doubleclick
leapyear
lod
merchantibility
nd
numer
ois
ony
que
seeked
synching
te
uint
unselect
webp
EOF
$ codespell -w -q 3 -I ../godot-word-whitelist.txt --skip="./thirdparty,*.po"
$ git diff // undo unwanted changes
```
2019-05-19 13:10:35 +02:00
Ranoller
7a8e4f64b8
Fix tilemap displaced textures and shapes with origin point BOTTOM_LEFT and CENTER and other casuistry
...
This commit fix https://github.com/godotengine/godot/issues/22989 fixing displaced textures and not coincident shapes in tilemap. Fix too: https://github.com/godotengine/godot/issues/15249 , https://github.com/godotengine/godot/issues/28206 , https://github.com/godotengine/godot/issues/28610 and probably others
2019-05-15 04:14:27 +02:00
Colin Redman
359d7f178c
Fix ParallaxBackground breaking when moving it out the scene tree
2019-05-04 17:09:33 -07:00
Rémi Verschelde
f40c62fa29
Merge pull request #27371 from ShyRed/fixdisabled2dcollisions
...
Allow adding disabled shapes
2019-04-30 11:43:11 +02:00
Rémi Verschelde
6e1b8b07b9
Merge pull request #27805 from Kanabenki/line2d-add-point-idx
...
Add optional position argument for add_point in Line2D
2019-04-30 11:02:47 +02:00
Rémi Verschelde
ac0369e9ff
Merge pull request #27845 from samdze/master
...
Make TileMap overridable "set_cell" function called on undo/redo
2019-04-30 10:55:53 +02:00
Rémi Verschelde
18e88c8563
Merge pull request #18992 from aaronfranke/mono-equal-approx
...
[Core] [Mono] Improve and use approximate equality methods
2019-04-29 10:16:46 +02:00
Samuele Zolfanelli
e2dd0c101e
Make TileMap overridable "set_cell" function called on undo/redo
2019-04-27 17:20:32 +02:00
Juan Linietsky
60eec47077
Revert "Fix AudioStreams::stop possibly causing a small noise"
2019-04-27 12:17:54 -03:00
Aaron Franke
b659e1eb2b
Use approximate equallity methods in many places
2019-04-25 13:20:29 -04:00
ShyRed
a9d4cde0f5
Allow adding disabled shapes
...
Adds the ability to directly add disabled shapes to a collision object. Before this commit a shape has always been assumed to be enabled and had to be disabled in an extra step.
2019-04-23 18:06:48 +02:00
Hein-Pieter van Braam
5c28296efe
Merge pull request #24489 from mateusfccp/18264_wrong_animation_error
...
Make AnimatedSprite.animation complain when invalid animation name
2019-04-23 06:36:32 +03:00
Rémi Verschelde
a342131eba
Merge pull request #27673 from qarmin/small_fixes
...
Small fixes, mostly duplicated code
2019-04-22 12:00:34 +02:00
Rémi Verschelde
6d8b209fc5
Merge pull request #27448 from avencherus/light2d-height
...
Light2D height range expanded to -2048 to 2048.
2019-04-21 20:06:14 +02:00
Juan Linietsky
04847ef5f9
Added ability for multiple images to be imported as an atlas
...
This adds support for groups in the import system, which point to a single file.
Add property hint for saving files in file field
2019-04-19 15:56:34 -03:00
Rémi Verschelde
f7b5fa8cf2
Merge pull request #28038 from CatThingy/area-error-fix
...
Removed unnecessary error from _area_inout
2019-04-16 10:35:29 +02:00
Michael Alexsander Silva Dias
87e42e4f66
Merge pull request #24171 from YeldhamDev/occluder_polygon_grab
...
Make OccluderPolygon2D draggable in the editor
2019-04-15 16:10:48 -03:00
CatThingy
8166f8d3c8
Removed unnecessary error from _area_inout
...
The error was previously removed from _body_inout
for the same reason. Fixes #28022 .
2019-04-15 09:19:30 -07:00
Juan Linietsky
e33764744c
Added generator audio stream, and spectrum analyzer audio effect
...
Made AudioFrame and Vector2 equivalent for casting.
Added ability to obtain the playback object from stream players.
Added ability to obtain effect instance from audio server.
2019-04-10 12:58:06 -03:00
Rémi Verschelde
c8994b56f9
Style: Apply new changes from clang-format 8.0
...
It seems to stay compatible with formatting done by clang-format 6.0 and 7.0,
so contributors can keep using those versions for now (they will not undo those
changes).
2019-04-09 17:09:48 +02:00
Rémi Verschelde
918de768a5
Merge pull request #27711 from neikeq/ifdef-clang-tidy
...
Replace a few #if/#elif with #ifdef and "#elif defined"
2019-04-08 12:24:30 +02:00
Kanabenki
714953b3ac
Add optional position argument for add_point in Line2D
2019-04-08 11:29:13 +02:00
qarmin
856a8226a5
Small fixes, mostly dupicated code
2019-04-08 11:03:37 +02:00
Ignacio Etcheverry
2f3328a039
Fix wrong method binds and registered class
2019-04-06 16:12:59 +02:00
Ignacio Etcheverry
ad2127a3e8
Replace a few #if/#elif with #ifdef and "#elif defined"
2019-04-05 23:41:51 +02:00
Rémi Verschelde
a61ad365f5
Merge pull request #27677 from akien-mga/Wimplicit-fallthrough
...
Fix -Wimplicit-fallthrough warnings from GCC 8
2019-04-05 16:12:45 +02:00
Rémi Verschelde
9d4093a21d
Merge pull request #27153 from YeldhamDev/animsprite_backwards
...
Make AnimatedSprite able to play backwards
2019-04-05 15:47:30 +02:00
Rémi Verschelde
434b73bc57
Merge pull request #27240 from Chaosus/clear_line_points
...
Added method to clear all points in Line2D
2019-04-05 15:44:14 +02:00
Juan Linietsky
19a6a6286a
Ability to make CanvasLayers have pseudo 3D depth.
2019-04-05 10:25:51 -03:00
Rémi Verschelde
fc370b3feb
Fix -Wimplicit-fallthrough warnings from GCC 8
...
Adds `FALLTHROUGH` macro to specify when a fallthrough is intentional.
Can be replaced by `[[fallthrough]]` if/when we switch to C++17.
The warning is now enabled by default for GCC on `extra` warnings level
(part of GCC's `-Wextra`). It's not enabled in Clang's `-Wextra` yet,
but we could enable it manually once we switch to C++11. There's no
equivalent feature in MSVC for now.
Fixes #26135 .
2019-04-05 15:14:53 +02:00
Mariano Javier Suligoy
bfc3ba5af0
Merge pull request #27365 from Byteron/tile_map_negative_offset
...
TileMap, negative Y and X Offset
2019-04-05 09:24:32 -03:00
Aaron Winter
63e0fd7675
added negative X and negative Y offset to TileMap
...
clang-format
added negative X and negative Y offset to TileMap
2019-04-05 10:37:35 +02:00
Jared
307bc16523
Light2D height range expanded to -2048 to 2048.
2019-04-05 07:44:05 +03:00
Rémi Verschelde
f6bbb08ae1
Merge pull request #27080 from YeldhamDev/tilemap_remove_rect_dirty
...
Make size cache dirty when removing tiles in 'TileMap'
2019-04-01 10:08:49 +02:00
Daeil Kim
24b7f08892
Ensure non-emitting particles not processed on entering tree
...
Also removed non-active CPUParticles(3d) from render list
Fixes #27066
2019-03-20 21:54:00 +09:00
Chaosus
61b22beeae
Added method to clear all points in Line2D
2019-03-19 20:32:10 +03:00
Kanabenki
3f64215a43
Add missing check for 2d physics bounce and friction setters
...
The override check was already present for 3d physics but missing for 2d
2019-03-18 15:30:26 +01:00
Michael Alexsander Silva Dias
4a2c433028
Make AnimatedSprite able to play backwards
2019-03-17 04:03:23 -03:00
Michael Alexsander Silva Dias
be5f35dfa0
Make size cache dirty when removing tiles in 'TileMap'
2019-03-15 00:58:30 -03:00
JFonS
c13ac398f6
Fix resetting of CPUParticles (2D and 3D)
2019-03-10 00:33:08 +01:00
Rémi Verschelde
362b42787b
Merge pull request #26784 from humblers/fix-cpuparticles2d
...
Prevent invisible/inactive cpupparticles2d to redraw
2019-03-09 16:28:34 +01:00
Daeil Kim
608af1a786
Prevent invisible/inactive cpupparticles2d to redraw
2019-03-08 16:05:00 +09:00
Gilles Roudière
a6c229bbfd
Fixes bad gizmo alignment for textures with odd size
2019-03-07 21:05:23 +01:00
Mariano Suligoy
078b869d9a
TileSet/TileMap: Decompose solid non-convex polygons into convexes. Real fix for #24003
2019-03-04 21:03:10 -03:00
Juan Linietsky
4f041d3afa
Specifically error when users try to use sync to physics and move and slide, closes #26545
2019-03-04 09:53:02 -03:00
Juan Linietsky
1b8f56c099
Clean up and fix some situations where triangulation may fail, closes #26366
2019-03-02 12:04:24 -03:00
Juan Linietsky
b84b015225
Make query checks less agressive, fixes #24694
2019-03-02 08:48:47 -03:00
Juan Linietsky
6cd4006fb3
Do not crash on empty path, closes #23701
2019-02-23 20:07:16 -03:00
Juan Linietsky
9dfe3b6d9e
Ensure move and slide snap respects stop on slope, fixes #26180
2019-02-23 10:24:21 -03:00
Juan Linietsky
edbf1d0ea4
Check that area is inside tree besides checking that queries are flushed, fixes #26148
2019-02-22 09:05:34 -03:00
Juan Linietsky
87b303aa95
Fixed bugs in test body motion and removed unnecesary test in move_and_slide. Fixes #25968
2019-02-21 17:21:36 -03:00
marxin
8d51618949
Add -Wshadow=local to warnings and fix reported issues.
...
Fixes #25316 .
2019-02-20 19:44:12 +01:00
Rémi Verschelde
0fa3b80850
Merge pull request #26025 from clayjohn/particles_lifetime
...
Allowing setting particles lifetime greater than 600
2019-02-18 21:20:24 +01:00
clayjohn
0fec83bc92
allowing setting particles lifetime greater than 600
2019-02-18 10:46:41 -08:00