Commit graph

10041 commits

Author SHA1 Message Date
Ignacio Etcheverry
0c2e882210 Adds 'exposed' field to ClassInfo
This field represents if the class is exposed to the scripting API.
The value is 'true' if the class was registered manually ('ClassDB::register_*class()'), otherwise it's false (registered on '_post_initialize').
- Added missing registration of classes that are meant to be exposed.
2017-10-09 23:49:17 +02:00
Chris Bradfield
f240cfe5a9 Merge pull request #11921 from mhilbrunner/docs-tree-treeitem
[DOCS] Document Tree & TreeItem
2017-10-09 13:53:30 -07:00
mhilbrunner
b776330cb7 [DOCS] Document Tree 2017-10-09 22:44:27 +02:00
hungrymonkey
5080a9cf21 Fix data alignment issues in get_data() in AudioStreamSample
I am fixing the issue by adding DATA_PAD to the return pointer as
suggested by hi-ogawa

When using set_data in AudioStreamSample in PoolByteArray, the data is set
using a DATA_PAD to pad the pointer to the correct place as such

uint8_t *dataptr = (uint8_t *)data;
copymem(dataptr + DATA_PAD, r.ptr(), datalen);
data_bytes = datalen;
godot/scene/resources/audio_stream_sample.cpp#L473

All I am doing is adding a DATA_PAD to the return pointer to
get_data() in AudioStreamSample to change

godot/scene/resources/audio_stream_sample.cpp#L48
PoolVector<uint8_t>::Write w = pv.write();
copymem(w.ptr(), data, data_bytes);

to

PoolVector<uint8_t>::Write w = pv.write();
uint8_t *dataptr = (uint8_t *)data;
copymem(w.ptr(), dataptr + DATA_PAD, data_bytes);

Please review whether or not set or get is correct.
Because this issue seems to be fixable by removing DATA_PAD in set_data()
instead of adding DATA_PAD to get_data(). I have not tested the latter
fix

Fixes #issue, 11873
2017-10-09 11:34:28 -07:00
Gilles Roudiere
ae94758374 Merge pull request #11019 from poke1024/refactor-polygon-v2
Refactoring of polygon editors to a common code base (v2)
2017-10-09 19:47:54 +02:00
volzhs
dfc717c458 Update freetype to 2.8.1 2017-10-10 01:33:39 +09:00
Ferenc Arn
12596cb5bc Fix anisotropic GGX D function, and introduce and use anistropic GGX G function.
Also fixed isotropic GGX G function with Schlick approximation, and added a commented out version without the approximation.
Added references.
2017-10-09 12:29:05 -04:00
Marius Guggenmos
2f173a67ab Array::sort, sort_custom and invert now return reference to Array to allow chaining of operations 2017-10-09 16:36:09 +02:00
Rémi Verschelde
bf12b45986 Merge pull request #11965 from SaracenOne/navgen_fix
Navmesh Generation Fix

[ci skip]
2017-10-09 15:23:40 +02:00
Rémi Verschelde
438e32d652 Merge pull request #11941 from Paulb23/members_selected_scroll_issue_11648
Consistant scroll when using members overview, issue 11648
2017-10-09 15:19:15 +02:00
Rémi Verschelde
cb7e4aa6d4 Merge pull request #11926 from RameshRavone/patch-11
flatDir support [Android] (Master)

[ci skip]
2017-10-09 15:05:47 +02:00
Rémi Verschelde
11202b8e89 Merge pull request #11922 from Toizi/editor_double_escape
Fixed double escape for quotes in generated about files

[ci skip]
2017-10-09 15:05:30 +02:00
Rémi Verschelde
e515a69916 Merge pull request #11915 from marcelofg55/desc_animation_errors
Added a name/path description when there is an error in the Animation Track
2017-10-09 14:53:39 +02:00
Rémi Verschelde
cbeeba9c03 Merge pull request #11908 from mhilbrunner/docstatus-flagerror
doc_status.py: Error message for unknown CLI flag, shebang change

[ci skip]
2017-10-09 14:52:11 +02:00
Ferenc Arn
8ddbd19777 Apply a few recent chages in Quat and Basis to their respective Mono counterparts. (#11899) 2017-10-09 14:49:53 +02:00
Saracen
70e47996b8 Fix bug in navmesh generation when using meshes with multiple
surfaces.
2017-10-09 13:14:27 +01:00
Thomas Herzog
ea37f44ec8 Merge pull request #11950 from sheepandshepherd/gdnative_property_index
Include property index in GDNative class API
2017-10-09 13:55:36 +02:00
Chris Bradfield
bf0b328197 Added VisualScript* descriptions
[ci skip]
2017-10-09 12:57:21 +02:00
Jérôme GULLY
9e93f5b478 [DOCS] Review and improve 17 classes (#11890) 2017-10-09 12:49:12 +02:00
Rémi Verschelde
cb4830ef5e Merge pull request #11887 from Hinsbart/vs_crash_get_node
VisualScript: Fix crash with get_node().

[ci skip]
2017-10-09 12:47:23 +02:00
Rémi Verschelde
d989479744 Merge pull request #11884 from Noshyaar/pr-fd2
FileDialog: fix select index out of range

[ci skip]
2017-10-09 12:45:00 +02:00
Rémi Verschelde
321ae21d5f Merge pull request #11878 from endragor/gradle-repository-urls
Use additional repositories for gradle build dependencies too

[ci skip]
2017-10-09 12:40:31 +02:00
Rémi Verschelde
1cb4fc1510 Merge pull request #11846 from gabrielformiga/fix-ik-bone-drag
Fix IK Bone Drag on Viewport
2017-10-09 12:30:56 +02:00
Rémi Verschelde
3091cfcebd Merge pull request #11842 from n-pigeon/rotate_gizmo_fix
Fixed rotating in local space using 3D Gizmo.
2017-10-09 12:29:35 +02:00
Rémi Verschelde
9f26733b44 Merge pull request #11827 from hi-ogawa/fix-shader-type-error
Fix type error in subsurface scattering shader code
2017-10-09 12:25:46 +02:00
Rémi Verschelde
7e05d249e6 Merge pull request #11826 from endragor/fix-game-center-player-id
Fix returning Game Center player ID
2017-10-09 12:23:48 +02:00
Rémi Verschelde
ad85acfe31 Merge pull request #11824 from endragor/ios-logging
Fix logging on iOS
2017-10-09 12:23:34 +02:00
Rémi Verschelde
3151b08c48 Merge pull request #11821 from groud/margins_preset_menu
Replaces (and extends) the anchor menu to a Layout one
2017-10-09 12:21:57 +02:00
Rémi Verschelde
e8b9cca614 Merge pull request #11810 from marcelofg55/osx_export_improv
OS X export code improvements
2017-10-09 12:20:39 +02:00
Unknown
17011f5d12 Added documenation for Line2D
[ci skip]
2017-10-09 11:45:41 +02:00
Gilles Roudiere
9e90910142 Merge pull request #11962 from touilleMan/fix-trailing-whitespace-in-project.godot
Fix trailing whitespaces in project settings header comment
2017-10-09 11:36:33 +02:00
Rémi Verschelde
2e0c7bb22a Merge pull request #11718 from poke1024/retina
Fixes some retina problems on multi monitor setups
2017-10-09 11:04:46 +02:00
Rémi Verschelde
8e9b99fe59 Merge pull request #11702 from AndreaCatania/bodyDS
Added new API to get body direct state
2017-10-09 11:01:36 +02:00
Rémi Verschelde
30a4882cf8 Merge pull request #11910 from hoelzl/pr-python3-mono-build
Fix Python 3 incompatibility in Mono build
2017-10-09 11:00:14 +02:00
Chris Bradfield
e4dc1f93d2 Merge pull request #11943 from Nallebeorn/documentation_2
[DOCS] Add documentation for Performance
2017-10-08 23:34:37 -07:00
Emmanuel Leblond
80b15fba1d
Fix trailing whitespaces in project settings header comment 2017-10-09 08:34:32 +02:00
Nathan Lovato
c022a32e63 Merge pull request #11820 from cbscribe/kcc_particles_doc
[DOCS] Update ParticlesMaterial, Particles, Particles2D class ref
2017-10-09 08:08:53 +02:00
Andreas Haas
645884b4db Merge pull request #11961 from authenticate/patch-1
[DOCS] - A minor documentation typo fix.
2017-10-09 06:10:25 +02:00
authenticate
6d2abb4877 A minor documentation typo fix. 2017-10-08 22:59:07 -04:00
Hiroshi Ogawa
1967972f6e Track LightInstance::shadow_atlases so that it will be freed properly 2017-10-09 09:51:10 +09:00
Hiroshi Ogawa
2c966493c5 Fix front face definition 2017-10-09 09:18:32 +09:00
Thomas Herzog
dc6bb74c46 Merge pull request #11952 from touilleMan/fix-crash-gdnative
[GDnative] fix crash at cleanup time when singleton_gdnatives is not empty
2017-10-09 01:24:21 +02:00
Emmanuel Leblond
6363bcf209
[GDnative] fix crash at cleanup time when singleton_gdnatives is not empty 2017-10-09 00:31:25 +02:00
Ignacio Etcheverry
ff28569d16 Fixed IntPtr unboxing (#11949)
- Fix boolean never reset to false
- Fix IntPtr unboxing and cleanup
2017-10-09 00:10:54 +02:00
Rémi Verschelde
e5fcf0ee76 Merge pull request #11947 from eska014/fix-obj-marshalling
Fix exporting projects with custom input event actions
2017-10-09 00:04:28 +02:00
sheepandshepherd
6f3fffecb3 Include property index in GDNative class API
Needed by properties that share set/get functions. Fixes #10329.
2017-10-08 23:57:06 +02:00
Chris Bradfield
c95ba4d7a7 Merge pull request #11938 from brunosxs/docs
[DOCS] File Class method description
2017-10-08 14:07:09 -07:00
brunosxs
22436f6bf1 [DOCS] File Class method description 2017-10-08 17:04:00 -03:00
Thomas Herzog
b9702991a1 Merge pull request #11946 from touilleMan/pluginscript-improve-wrapper-api
[GDnative] create generated include/gdnative_wrapper_code.gen.h
2017-10-08 21:16:27 +02:00
Chris Bradfield
2b6f3bb4db Merge pull request #11944 from Nallebeorn/documentation
[DOCS] Fix a typo in KinematicBody and KinematicBody2D.
2017-10-08 11:56:27 -07:00