Bastiaan Olij
b2b112d703
Sort data exported to the api.json file for GDNative
...
(cherry picked from commit 0d2f3f4f50
)
2019-05-02 14:40:03 +02:00
Rémi Verschelde
a485d862f1
doc: Sync classref with current source
2019-04-25 14:00:31 +02:00
Ignacio Etcheverry
3445984901
Replace a few #if/#elif with #ifdef and "#elif defined"
...
(cherry picked from commit ad2127a3e8
)
2019-04-20 20:13:07 +02:00
Rémi Verschelde
53d73f59eb
doc: Drop unused <demos> tag
...
(cherry picked from commit 6af69f851a
)
2019-04-19 13:10:25 +02:00
Bastiaan Olij
6226be9595
Fix where json exported empty types
2019-04-07 17:33:35 +10:00
thomas.herzog
3e0fc6906e
[GDNative] fix NativeScript leak in editor
...
(cherry picked from commit 5fff7f741a
)
2019-04-01 11:23:31 +02:00
thomas.herzog
cf8bd34941
[GDNative] remove spam at editor unfocus when using NativeScript
...
(cherry picked from commit 0e5b2b16ed
)
2019-04-01 11:23:26 +02:00
karroffel
03d00ca36b
fix GDNative binding generation for object types
...
(cherry picked from commit 197d642014
)
2019-04-01 11:18:51 +02:00
Anish
bd22b1cbe6
Fixes segfault on opening incompatible files.
...
If a file cannot be opened by the plugin connected, the engine
would crash. This has been fixed by quitting the open_file() method
early.
2019-03-11 16:41:30 +05:30
karroffel
9786b51601
[GDNative] fix crash at shutdown when using singleton libraries and NativeScript
...
When a singleton library was exposing NativeScript functionality,
the NativeScriptLanguage would attempt to terminate the library at
shutdown.
Since the GDNative module itself handles singleton libraries,
it closes all singleton libraries at shutdown as well. This double free
could cause a crash, since the library referenced would no longer be alive.
2019-03-09 18:01:08 +01:00
Anish
978c2a604a
Fixed crash on loading GDNative videos.
...
Fixed issue with loading a resource supported by the gdnative videodecoders
that does not exist.
2019-03-06 22:56:36 +01:00
Rémi Verschelde
426a6fdc17
Merge pull request #26134 from marxin/fix-Wsign-compare
...
Fix -Wsign-compare warnings.
2019-02-27 09:22:47 +01:00
marxin
e5f665c718
Fix -Wsign-compare warnings.
...
I decided to modify code in a defensive way. Ideally functions
like size() or length() should return an unsigned type.
2019-02-27 07:45:57 +01:00
Eric Rybicki
c9de8a6e68
Fix "No loader found for resource: res://" spam when NativeScript script_class_name is not empty.
...
fixes #26275
2019-02-26 17:07:53 +01:00
Fabio Alessandrelli
f112f5785b
Fixing C compatiblity for GDNative NET module
...
Also add net interfaces to gdnative_api.json
2019-02-24 21:23:23 +01:00
Rémi Verschelde
726f31e992
Merge pull request #26132 from marxin/fix-Wignored-qualifiers
...
Fix warnings seen with -Wignored-qualifiers.
2019-02-22 09:55:27 +01:00
marxin
c11e7ffd0e
Fix warnings seen with -Wignored-qualifiers.
2019-02-21 20:24:29 +01:00
karroffel
56bb22c988
added godot_dictionary_get_with_default to GDNative
...
Recently, Dictionary::get() was introduced, which acts like a index
operator but allows the caller to specify a default value to return
instead of issuing an error.
This commit adds a new GDNative function that includes the default value.
2019-02-21 20:12:57 +01:00
marxin
8d51618949
Add -Wshadow=local to warnings and fix reported issues.
...
Fixes #25316 .
2019-02-20 19:44:12 +01:00
marxin
66a43898d4
Make direct casting among Error and godot_error enums ( #23015 ).
2019-02-18 10:26:22 +01:00
Rémi Verschelde
55ca2a7c88
Merge pull request #25821 from akien-mga/sync-class-and-filenames
...
Ensure classes match their header filename
2019-02-13 08:49:39 +01:00
Rémi Verschelde
322fad70bd
Fix copyright year in VideoStreamGDNative
2019-02-12 23:05:30 +01:00
Rémi Verschelde
c5dcbeb160
Scene: Ensure classes match their header filename
...
Also drop some unused files.
Renamed:
- `scene/2d/navigation2d.h` -> `navigation_2d.h`
- `scene/2d/screen_button.h` -> `touch_screen_button.h`
- `scene/3d/scenario_fx.h` -> `world_environment.h`
- `scene/audio/audio_player.h` -> `audio_stream_player.h`
- `scene/resources/bit_mask.h` -> `bit_map.h`
- `scene/resources/color_ramp.h` -> `gradient.h`
- `scene/resources/shape_line_2d.h` -> `line_shape_2d.h`
- `scene/resources/scene_format_text.h` -> `resource_format_text.h`
- `scene/resources/sky_box.h` -> `sky.h`
Dropped:
- `scene/resources/bounds.h`
2019-02-12 17:21:48 +01:00
Rémi Verschelde
75dae1b9a9
Drivers, main, servers: Ensure classes match their header filename
...
Renamed:
- `drivers/alsamidi/alsa_midi.h` -> `midi_driver_alsamidi.h`
(same for `coremidi` and `winmidi`)
- `main/timer_sync.h` -> `main_timer_sync.h`
- `servers/visual/visual_server_global.h` -> `visual_server_globals.h`
2019-02-12 14:39:47 +01:00
Rémi Verschelde
b7cc2bb1e2
Core: Ensure classes match their header filename
...
Also drop some unused files.
Renamed:
- `core/dvector.h` -> `pool_vector.h`
- `core/io/resource_import.h` -> `resource_importer.h`
- `core/sort.h` -> `sort_array.h`
- `core/string_db.h` -> `string_name.h`
Dropped:
- `core/allocators.h`
- `core/os/shell.h`
- `core/variant_construct_string.cpp`
2019-02-12 13:34:25 +01:00
Aaron Franke
3f837d5cc5
[Core] Rename Matrix3 file to Basis
...
The code already referred to "Basis", it's just the file name that was different for some reason.
2019-02-09 14:42:23 -05:00
Karroffel
682bc07035
Fix generating GDNative API struct for 1.1
...
Fixes #25425 .
2019-02-08 19:28:40 +01:00
Rémi Verschelde
2211d73300
Workaround GCC 6 & 7 ICE on armv7hl
...
Fixes #16100 .
2019-01-26 14:37:36 +01:00
Anish
8c1677fc3f
Fixed infinite loop at end of video.
...
A missing condition caused infinite looping, despite
the video playing flag being set to false.
Small change to fix.
Fixes : #20552
2019-01-12 00:51:59 +05:30
Rémi Verschelde
9eb9335608
doc: Sync classref with current source + AUTHORS edit
2019-01-10 14:34:29 +01:00
Rémi Verschelde
e5f1d19352
Consistency in resource format saver/loader de-registration
...
Some used 'is_valid()' checks, others not. Validity is already checked in 'unref()',
and 'remove_resource_format_*()' has an ERR_FAIL condition on 'is_null()' already
(which shouldn't happen since we're only unregistering things that we previously
registered.
Also add missing GDCLASS statement in ResourceFormatLoaderVideoStreamGDNative,
missed in #20552 which was last amended before #19501 was merged.
2019-01-10 12:45:57 +01:00
Marcin Zawiejski
7860b74b0f
Remove vsgdnative loader on exit
2019-01-10 07:19:16 +01:00
Rémi Verschelde
fe8cdafbf4
Merge pull request #20552 from KidRigger/gsoc-peer
...
Added interface for GDNative Videodecoder.
2019-01-09 17:30:09 +01:00
Rémi Verschelde
b16c309f82
Update copyright statements to 2019
...
Happy new year to the wonderful Godot community!
2019-01-01 12:58:10 +01:00
Rémi Verschelde
830232f130
Merge pull request #23615 from buresu/pluginscript-new
...
PluginScript: Add support for the new() method
2018-12-18 09:29:04 +01:00
Rémi Verschelde
9c7bc127b9
Merge pull request #24385 from hpvb/reduce-string-coew
...
Reduce String CoW
2018-12-16 19:13:35 +01:00
Hein-Pieter van Braam
4e25e5066b
Reduce String CoW
...
By introducing an intermediate proxy class for the array subscript
operator for String and CharString we can control better when CowData
will actually CoW.
This should improve performance of String usage for most cases.
2018-12-16 16:51:38 +01:00
Marc Gilleron
065e2670af
Added basic support for custom resource savers and loaders
2018-12-15 05:34:53 +00:00
Rémi Verschelde
72feccf205
Adapt GDNative VideoStream to use ResourceFormatLoader
...
Same logic as used for Webm and Theora support in #19937 and #21084 ,
fixing issues when exporting projects.
2018-12-13 15:33:28 +01:00
Rémi Verschelde
012dac9aad
Fix includes and initialization for GDNative Videodecoder
...
Fixes warnings and a crash when running the destructor with an
uninitialized pcm pointer.
2018-12-13 15:31:13 +01:00
Anish
7199b7b5dd
Added interface for GDNative Videodecoder.
...
Interface and callback api added for Videodecoder support.
Should be able to construct any format videodecoder using
only the given interface.
GSoC 2018 project.
2018-12-13 15:19:09 +01:00
Juan Linietsky
3a93499f89
Allow signal connecting even if script is invalid (only when compiled with tools), fixes #17070
2018-11-27 19:55:37 -03:00
Rémi Verschelde
173b342ca7
Remove trailing whitespace
...
With `sed -i $(rg -l '[[:blank:]]*$' -g'!thirdparty') -e 's/[[:blank:]]*$//g'`
(+ manual revert of some thirdparty code under `platform/android`).
2018-11-20 11:15:02 +01:00
Naoto Kondo
3feabd6756
PluginScript: Add support for the new() method
2018-11-10 17:28:30 +09:00
Juan Linietsky
f2e54057ae
-Moved EditorDefaultValue to ClassDB, made it core
...
-Removed one and zero hints for properties, replaced by default value
2018-11-08 11:30:59 -03:00
Rémi Verschelde
5e999414d3
Merge pull request #23355 from buresu/fix-gdnative-loading-on-mac
...
GDNative: Fixes a library path problem after exporting app for OSX
2018-10-29 10:38:55 +01:00
Naoto Kondo
63cba9ba62
GDNative: Fixes a problem that active_library_path is wrong after exporting app for mac
2018-10-28 23:57:51 +09:00
lupoDharkael
2380f320e0
Update GDNantive API
...
Add missing Rect2 methods to GDNative API
Add missing Quat methods to GDNative API
Add missing NodePath methods to GDNative API
Add missing String methods to GDNative API
Add missing Array methods to GDNative API
Add missing Basis methods to GDNative API
Add missing Color methods to GDNative API
Update gdnative_api.json
2018-10-26 17:25:57 +02:00
Maarten Heremans
cf09952b6b
Fixes crash when loading *.escn resources with gdnative #20141
...
The issue is that ResourceFormatLoaderText is a singleton. It was created in a faulty way in
ResourceFormatLoaderNativeScript::load
It was created on the stack, which caused the static singleton pointer to be overwritten. This
causes then segmentation faults if the singleton is used later on.
IMO singleton creation needs to made safer to avoid other similar issues in the future.
2018-10-22 16:45:02 +02:00
Simon Wenner
10718b0961
Fix some cppcheck errors
...
cppcheck: fix broken pre-processor statement
cppcheck: fix Uninitialized struct members in canvas editor plugin
cppcheck: fix uninitialized struct member: method_api.is_virtual
2018-10-04 18:16:04 +02:00