Benedikt Bär
7792dfe554
Fix compressor audio effect sidechain selection
2018-03-21 22:45:30 +01:00
Rémi Verschelde
a238e53da9
Merge pull request #17637 from robfram/fix-draw_polyline_colors-crash
...
Fix crash in `canvas_item_add_polyline` when passing more points than colors
2018-03-20 11:23:15 +01:00
robfram
8eedb2afe2
Fix crash in `canvas_item_add_polyline` when passing more points than colors
...
When `p_points.size() > p_colors.size()`, it crashed with invalid
array access to `p_colors`. Also, when `p_colors` was an empty
`Vector` it crashed due a missing `else` checking the `size`
condition, as the code handling that special case exists.
This PR fixes the missing `else` for `p_colors.size == 0` and,
following the `canvas_item_add_multiline` spirit, it only uses the
first color for the whole polyline if points and colors differ in
size.
Fix #17621 .
2018-03-19 19:22:38 +01:00
Marcelo Fernandez
87ebdd6041
Fix possible crash when audio channels change
2018-03-19 09:00:11 -03:00
Ivan Vodopiviz
55f79f2e80
Changed debug max distance to avoid overflow
...
Changed it to roughly sqrt(FLT_MAX), it's a little less to account for float inaccuracies.
Fixes #1835
2018-03-17 23:32:07 +01:00
Geoffrey
09c887f38e
Implemented interface for bullet joint motors
2018-03-16 13:37:15 +01:00
Hein-Pieter van Braam
395ecc2235
Merge pull request #16964 from mrcdk/audio_server_bus_changed_fix
...
AudioServer emit bus_layout_changed signal when adding, moving or del…
2018-03-16 00:10:52 +01:00
Hein-Pieter van Braam
009b0bab49
Merge pull request #17248 from Cygon/implement-extra-culling-margin
...
Apply culling margin (fixes issue #16115 )
2018-03-15 23:45:59 +01:00
JFonS
479f531635
Hinted shader uniforms can have a default value
2018-03-15 15:23:40 +01:00
Bastiaan Olij
5356423377
A few fixes on the ARVR Server
2018-03-15 23:31:02 +11:00
Rémi Verschelde
b1ae5ea407
Merge pull request #17040 from AndreaCatania/patch-2
...
Deprecated Godot 3D physics engine
2018-03-13 13:46:08 +01:00
Rémi Verschelde
27a3447790
Merge pull request #17402 from Chaosus/fixmix
...
Fix invalid mix function overload
2018-03-13 08:43:07 +01:00
Wilson E. Alvarez
e9ac87390c
Fixed several leaks in VisualServerScene, RasterizerSceneGLES3 and RasterizerGLES3
2018-03-13 00:22:08 -04:00
Chaosus
2d428a350e
Fix few bugs in shader definitions
2018-03-10 21:00:18 +03:00
Chaosus
97bef8d908
Fix invalid mix function overload
2018-03-10 12:56:43 +03:00
Rémi Verschelde
47addcf9d0
Merge pull request #17354 from SaracenOne/shader_token_name_fix
...
Make the shader token names consistent.
2018-03-09 10:39:22 +01:00
Saracen
b095e21d91
Make the shader token names consistent.
2018-03-07 23:56:47 +00:00
Bernhard Liebl
9d7856620c
Bring back Vector2.cross()
2018-03-07 21:10:31 +01:00
ShyRed
4d6bb43931
Remove disabled shapes from physics
...
Disabling a shape removes it from physics calculations. Enabling a shape adds it back to the physics calculations.
2018-03-07 18:03:44 +01:00
Markus Ewald
fc166f3ee1
Implement VisualServerScene::instance_set_extra_visibility_margin() method to actually apply extra culling margin and mark instance AABB dirty
2018-03-04 14:20:59 +01:00
Chaosus
c6b6af7bb5
Fix floatBitsToUint function
2018-03-03 16:22:36 +03:00
Andrea Catania
134cca0cf2
Fixed physics server typo
2018-02-27 08:42:09 +01:00
Andrea Catania
5de5a4140b
Deprecated Godot 3D physics engine
2018-02-26 12:51:30 +01:00
Poommetee Ketson
eb63f7b071
[DOCS] Sync classref with current source
2018-02-25 15:14:25 +07:00
MrCdK
56dcf4b983
AudioServer emit bus_layout_changed signal when adding, moving or deleting a bus
2018-02-23 23:42:57 +01:00
Juan Linietsky
7cd867c3fe
2D Skeletons WORK IN PROGRESS
2018-02-21 17:24:00 -03:00
luz.paz
612ab4bbc6
Fix typos with codespell
...
Found via `codespell -q 3 --skip="./thirdparty,./editor/translations" -I ../godot-word-whitelist.txt`
Whitelist consists of:
```
ang
doubleclick
lod
nd
que
te
unselect
```
2018-02-21 19:46:06 +01:00
Juan Linietsky
9e3a1e5401
Add base support for 2D meshes in Godot, including Sprite -> Mesh2D conversion.
2018-02-21 09:39:09 -03:00
Rémi Verschelde
497a4e9e25
Merge pull request #16757 from AndreaCatania/kinpush
...
Improved kinematic body, Now can move rigid body
2018-02-20 15:41:10 +01:00
Andrea Catania
6ed392f47a
Improved kinematic body 2D and 3D, Now can move rigid body
2018-02-20 12:43:47 +01:00
Juan Linietsky
4c56edfb83
Revert "Handle single-argument constructors in uniform default values"
2018-02-20 07:28:22 -03:00
Rémi Verschelde
05a8675f82
Merge pull request #15985 from Nallebeorn/uniforms-single-argument-constructors
...
Handle single-argument constructors in uniform default values
2018-02-20 11:26:26 +01:00
Rémi Verschelde
b2aeb02e7d
Merge pull request #16530 from AndreaCatania/rays
...
Improved ray shape (2D and 3D) by addiing the possibility to act as r…
2018-02-19 22:15:49 +01:00
Andrea Catania
ffc3ef8677
Improved ray shape (2D and 3D) by addiing the possibility to act as regular shape
2018-02-19 20:59:57 +01:00
Rémi Verschelde
be67f2e4ba
Merge pull request #16751 from AndreaCatania/moreAPIs
...
Added Physics state APIs
2018-02-19 20:22:18 +01:00
Rémi Verschelde
9130770ec5
Merge pull request #16794 from Chaosus/new_shader_funcs
...
Adds some missing shader built-in functions
2018-02-19 18:30:16 +01:00
Rémi Verschelde
d9f26af533
Merge pull request #16803 from lethiandev/fix-remove-shape2d
...
Fix 2d collision body update on shape remove
2018-02-19 18:22:21 +01:00
Rémi Verschelde
fd92e571ac
Readd VS.sync and VS.draw to keep compatibility
...
Those are deprecated as VS.force_sync and VS.force_draw do the same and more explicitly,
but we cannot remove them without marking them as deprecated before that.
Fixes issue introduced in #15892 .
2018-02-19 10:43:07 +01:00
Konrad Nowakowski
3659df6624
Fix 2d collision body update on shape remove
2018-02-18 20:46:37 +00:00
Chaosus
8f04a13c98
Added missing shader functions
2018-02-18 18:08:18 +03:00
Artem Varaksa
d35e486228
Clean up some bad words from code comments
2018-02-17 16:00:39 +03:00
Andrea Catania
a930797c31
Added Physics state APIs
2018-02-16 17:48:07 +01:00
Rémi Verschelde
574133e4e0
Merge pull request #15892 from Zylann/add_missing_vs_bindings
...
Added all missing VisualServer bindings
2018-02-14 16:05:49 +01:00
Rémi Verschelde
dea5a69693
Merge pull request #16408 from Calinou/remove-debugging-prints
...
Remove a few debugging prints
2018-02-14 11:32:10 +01:00
Andrea Catania
a42765dada
Added physics API in order to enable/disable collisions between rigidbody attached to a joint with bullet physics bullet
...
Fixes #16424
2018-02-05 18:54:07 +01:00
Hugo Locurcio
84267915f5
Remove a few debugging prints
2018-02-05 11:30:50 +01:00
Paolo Perkovic
08d4bfacaf
Fix inconsistencies and typos in argument names
2018-02-01 16:47:20 +01:00
Rémi Verschelde
ff287d8341
Merge pull request #15254 from mrcdk/pitch_scale
...
Added pitch scale property to AudioStreamPlayer, AudioStreamPlayer2D and AudioStreamPlayer3D
2018-02-01 14:26:27 +01:00
Poommetee Ketson
5a26e0786c
AudioEffectReverb: max predelay_feedback to 0.98
2018-01-31 00:19:07 +07:00
Rémi Verschelde
ed6bf28014
Merge pull request #15980 from mrcdk/audio_stream_get_length
...
Expose audio streams get_length()
2018-01-30 13:43:34 +01:00
Marc Gilleron
8dc62bbc96
Fix VisualServer.free conflicting with Object.free
2018-01-25 00:23:31 +01:00
Benjamin
311e69aa1e
Handle single-argument constructors in shaders.
...
Expand these (fill vectors, fill matrix diagonals) in _reduce_expression() so they're handled properly even as uniform default values (where they previously caused a crash).
2018-01-22 22:32:35 +01:00
MrCdK
8a9f1c2a5d
Expose audio streams get_length()
2018-01-22 20:35:33 +01:00
Marc Gilleron
e415fd05bb
Added all missing VisualServer bindings
...
- Added bindings for multimesh, immediate, skeleton, light, reflection probe, gi probe, lightmap, particles, camera, environment, scenario, instance
- Removed draw and sync, were duplicates of force_* equivalents
- Bumped binders max arguments from 11 to 13
- Wrote some wrappers as not all methods were variant-friendly
2018-01-20 16:59:26 +01:00
Ariel Manzur
e2b50e1abb
improves portability with some compilers
2018-01-18 19:16:34 -03:00
Rémi Verschelde
9f479f096c
Fix typos in code and docs with codespell
...
Using v1.11.0 from https://github.com/lucasdemarchi/codespell
2018-01-18 22:01:42 +01:00
binbitten
bccb4840c8
Fix wrong viewport transparent-bg
2018-01-18 19:11:07 +01:00
Unknown
5876457410
modify default param names in couple of signals
...
'name' default param should not be used since there is problem with name shadowing
2018-01-12 15:45:29 +01:00
Bojidar Marinov
9b8e8b2220
Bind many more properties to scripts
...
Notable potentially breaking changes:
- PROPERTY_USAGE_NOEDITOR is now PROPERTY_USAGE_STORAGE | PROPERTY_USAGE_NETWORK, without PROPERTY_USAGE_INTERNAL
- Some properties were renamed, and sometimes even shadowed by new ones
- New getter methods (some virtual) were added
2018-01-12 00:58:14 +02:00
Juan Linietsky
bfeaf27a3e
Properly dispose of instance capture data, fixes #14795
2018-01-06 19:06:04 -03:00
Rémi Verschelde
e4213e66b2
Add missing copyright headers and fix formatting
...
Using `misc/scripts/fix_headers.py` on all Godot files.
Some missing header guards were added, and the header inclusion order
was fixed in the Bullet module.
2018-01-05 01:22:23 +01:00
Duy-Nguyen TA
322cb08dd9
Fix macOS and other builds after #15299
...
Commit ammended by @akien-mga to fix more platforms.
2018-01-04 19:48:05 +01:00
Rémi Verschelde
0b07d453f7
Merge pull request #15251 from binbitten/fix-assign-vardecl
...
Fix premature declaration of shader variables created with assignment
2018-01-04 15:17:10 +01:00
firefly2442
f066991aa7
found via cppcheck:
...
remove code that will never run
make definition and declaration names for parameters match
change floats that were being set to bool values
remove pointer that is never used
2018-01-03 21:23:48 -07:00
Rémi Verschelde
f9f6f250e6
Merge pull request #15191 from Jerome67000/z_renaming
...
renames "z" Node2D property to "z_index"
2018-01-04 00:41:45 +01:00
Razah
e3c9a7ed4f
Fix broken Info.plist after copyright update
...
Fixes #15293 .
+ related misc fixes by @akien-mga.
2018-01-03 17:10:07 +01:00
Jerome67000
42ae3525a3
#15078 renamed "z" -> "z_index" property in Node2D
2018-01-03 13:02:26 +01:00
binbitten
f141bafba3
Fix premature declaration of shader variables created with assignment
2018-01-03 07:23:04 +01:00
MrCdK
5bc010e8ee
Added pitch scale property to AudioStreamPlayer, AudioStreamPlayer2D and AudioStreamPlayer3D
2018-01-01 22:23:16 +01:00
Rémi Verschelde
b50a9114b1
Update copyright statements to 2018
...
Happy new year to the wonderful Godot community!
2018-01-01 14:40:47 +01:00
Noshyaar
52deb679df
Merge pull request #15153 from poke1024/fix12112
...
Delete AudioServer buses after driver shutdown
2018-01-01 18:49:03 +07:00
binbitten
9b2283382e
Fixed wrong highlighted line when erroring and using single-line comments, fixes #15167
2017-12-29 19:32:21 +01:00
Bernhard Liebl
d5ed266078
Delete AudioServer buses after driver shutdown
2017-12-29 11:22:56 +01:00
Noshyaar
5c636875e4
Merge pull request #14971 from mrcdk/particles_emitting
...
Set particles emitting to false when particles finish emitting with one-shot enabled
2017-12-27 10:45:36 +07:00
Noshyaar
ab444a8ca9
Merge pull request #14996 from neikeq/enums-mono
...
Mono: Make the bindings generator output enums
2017-12-27 10:29:00 +07:00
Juan Linietsky
2b31155baa
Fix sidedness check in material. Also remove SIDE built-in.
2017-12-26 11:09:52 -03:00
Ignacio Etcheverry
0a0a44da8d
Mono: Make the bindings generator output enums
...
- Switch to PascalCase for constants names
2017-12-24 04:20:41 +01:00
MrCdK
1f609b7a82
Set particles emitting to false when particles finish emitting with one-shot enabled
2017-12-23 05:23:41 +01:00
Rémi Verschelde
7d9b7f9c47
Merge pull request #14897 from BastiaanOlij/arvr_tweaks
...
Few small tweaks for ARVR
2017-12-23 00:59:09 +01:00
Bastiaan Olij
6fd51b6a1b
Reserved controller ids 1 and 2 for left and right hand controllers and added new center on hmd option
2017-12-22 01:21:23 +11:00
Juan Linietsky
045f81023b
Properly silence buffer while not in use, fixes #14866
2017-12-20 13:55:58 -03:00
Hein-Pieter van Braam
139daf0e03
Don't try to mix a sample that has already ended
...
On short samples the sample may finish playing before the mixer is done.
This fills the remaining time with zeros and ends mixing. This fixes the
users getting the following error logged:
::_mix_internal: Condition ' !active ' is true.
2017-12-18 00:53:51 +01:00
Rémi Verschelde
8f25a2dc11
Cleanup some #if 0'd code
2017-12-17 15:40:24 +01:00
Enzo Nocera
8e2a1ffd6e
Shader Language: Add in-for declared variables within for-block scope.
2017-12-17 01:43:59 +01:00
Juan Linietsky
652c98a7be
Add epic hack so vsync can be toggled in run-time from script. Fixes #14458 .
...
Call needs to be routed via visual server to reach the proper thread.
2017-12-16 17:11:02 -03:00
Rémi Verschelde
d03f35f1bc
Bind TextEdit.deselect and update documentation
2017-12-16 21:08:31 +01:00
Juan Linietsky
e946fb8cb0
Made built-in identifiers properly constant in shaders. Fixes #14449 , closes #14629
2017-12-15 18:24:30 -03:00
Juan Linietsky
f3ad14224e
-Add lightmapper
...
-Fixes to unwrapper (remove degenerates), makes Thekla not crash
-Added optional cancel button in EditorProgress
-Added function to force processing of events (needed for cancel button)
2017-12-14 09:01:27 -03:00
AndreaCatania
5dee44bbc1
Implemented physics linear and angular lock
2017-12-10 17:21:14 +01:00
Przemyslaw Czarnota
c3c1d119ec
Fix #14429 GIProbe does not work with SpotLights
2017-12-09 20:57:28 +01:00
Juan Linietsky
65fb961b8b
-Ability to and unwrap lightmap coordinates on import
...
-Added unwrap functionality to Mesh
-Ability to display and debug mesh UVs
-Added multiline draw, so it's easier and faster to draw UVs
-Many fixes to SurfaceTool
-Fixes to Thekla Unwrap, but it's a piece of ass and it keeps crashing. Will have to go away
2017-12-09 14:18:14 -03:00
Rémi Verschelde
ccef401700
Merge pull request #13341 from scayze/interp_v2
...
Added interpolation qualifiers to shaderlang
2017-12-09 18:12:14 +01:00
Rémi Verschelde
25b36f18d3
Merge pull request #12756 from Stratos695/master
...
Allowing double-axis lock in RigidBody & KinematicBody (Fixes #12500 )
2017-12-09 13:01:41 +01:00
Rémi Verschelde
13c2ff9320
Style: Apply new clang-format 5.0 style to all files
2017-12-07 08:02:00 +01:00
Juan Linietsky
0bc573635c
Fixes to some thread safety situations to avoid GIProbe from freezing on save. Fixes #13338
2017-12-06 18:06:34 -03:00
Juan Linietsky
431dfc1458
Attempt to see if this can solve the problem with #13338
2017-12-06 16:41:19 -03:00
Juan Linietsky
d438ac0aed
-Implemented Proxy Textures (needed to solve the problem with ViewportTexture)
...
-Properly use hierarchy to initialize resources local to scene (solves problem of GUI in 3D)
2017-12-04 15:56:17 -03:00
Rhody Lugo
a65c0939fd
disable caching for targets using helper functions
2017-11-28 23:24:12 -04:00
Rhody Lugo
a4a222d62d
use the same cache for all branches for appveyor
2017-11-28 03:23:33 -04:00
Rémi Verschelde
cb4c0c630f
doc: Sync classref with current source
2017-11-27 23:37:47 +01:00