summaryrefslogtreecommitdiffstats
path: root/modules
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #24877 from neikeq/issue-24280Rémi Verschelde2019-01-104-22/+39
|\ | | | | Fix properties being lost when reloading placeholder GDScript instance
| * Fix properties being lost when reloading placeholder GDScript instanceIgnacio Etcheverry2019-01-104-22/+39
| | | | | | | | | | | | | | During reloading in `GDScriptLanguage::reload_all_scripts` a placeholder instance that must remain so is replaced with a new placeholder instance. The state is then restored by calling `ScriptInstance::set` for each property. This does not work if the script is missing the properties due to build/parse failing. The fix for such cases is to call `placeholder_set_fallback` instead of `set` on the script instance. I took this chance to move the `build_failed` flag from `PlaceHolderScriptInstance` to `Script`. That improves the code a lot. I also renamed it to `placeholder_fallback_enabled` which is a much better name (`build_failed` could lead to misunderstandings).
* | doc: Sync classref with current source + AUTHORS editRémi Verschelde2019-01-103-0/+46
| |
* | Merge pull request #24883 from akien-mga/resourceformat-unregisterRémi Verschelde2019-01-106-29/+16
|\ \ | | | | | | Consistency in resource format saver/loader de-registration
| * | Consistency in resource format saver/loader de-registrationRémi Verschelde2019-01-106-29/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | Merge pull request #24884 from Xrayez/fix-#24881Rémi Verschelde2019-01-101-1/+1
|\ \ \ | |/ / |/| | Fix broken encrypted scripts during export
| * | Fix broken encrypted scripts during exportAndrii Doroshenko (Xrayez)2019-01-101-1/+1
| | | | | | | | | | | | | | | | | | Use temporary cache directory instead of editor settings directory in order to resolve encrypted file access needed for encrypting scripts on all platforms.
* | | Remove vsgdnative loader on exitMarcin Zawiejski2019-01-101-5/+5
|/ /
* | Merge pull request #20552 from KidRigger/gsoc-peerRémi Verschelde2019-01-0910-0/+802
|\ \ | | | | | | Added interface for GDNative Videodecoder.
| * | Adapt GDNative VideoStream to use ResourceFormatLoaderRémi Verschelde2018-12-135-160/+55
| | | | | | | | | | | | | | | Same logic as used for Webm and Theora support in #19937 and #21084, fixing issues when exporting projects.
| * | Fix includes and initialization for GDNative VideodecoderRémi Verschelde2018-12-136-22/+32
| | | | | | | | | | | | | | | Fixes warnings and a crash when running the destructor with an uninitialized pcm pointer.
| * | Added interface for GDNative Videodecoder.Anish2018-12-1312-0/+897
| | | | | | | | | | | | | | | | | | | | | | | | Interface and callback api added for Videodecoder support. Should be able to construct any format videodecoder using only the given interface. GSoC 2018 project.
* | | Don't use -ffast-math or other unsafe math optimizationsHein-Pieter van Braam2019-01-091-5/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Godot supports many different compilers and for production releases we have to support 3 currently: GCC8, Clang6, and MSVC2017. These compilers all do slightly different things with -ffast-math and it is causing issues now. See #24841, #24540, #10758, #10070. And probably other complaints about physics differences between release and release_debug builds. I've done some performance comparisons on Linux x86_64. All tests are ran 20 times. Bunnymark: (higher is better) (bunnies) min max stdev average fast-math 7332 7597 71 7432 this pr 7379 7779 108 7621 (102%) FPBench (gdscript port http://fpbench.org/) (lower is better) (ms) fast-math 15441 16127 192 15764 this pr 15671 16855 326 16001 (99%) Float_add (adding floats in a tight loop) (lower is better) (sec) fast-math 5.49 5.78 0.07 5.65 this pr 5.65 5.90 0.06 5.76 (98%) Float_div (dividing floats in a tight loop) (lower is better) (sec) fast-math 11.70 12.36 0.18 11.99 this pr 11.92 12.32 0.12 12.12 (99%) Float_mul (multiplying floats in a tight loop) (lower is better) (sec) fast-math 11.72 12.17 0.12 11.93 this pr 12.01 12.62 0.17 12.26 (97%) I have also looked at FPS numbers for tps-demo, 3d platformer, 2d platformer, and sponza and could not find any measurable difference. I believe that given the issues and oft-reported (physics) glitches on release builds I believe that the couple of percent of tight-loop floating point performance regression is well worth it. This fixes #24540 and fixes #24841
* | | Use 'release_debug' for mono export templatesHein-Pieter van Braam2019-01-082-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This fixes the previously wrong PR Because we don't actually ship 'debug' templates to users make sure the mono exporter picks the correct 'data' directory for export templates. This fixes #24752
* | | Use 'release_debug' for mono export templatesHein-Pieter van Braam2019-01-071-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | Because we don't actually ship 'debug' templates to users make sure the mono exporter picks the correct 'data' directory for export templates. This fixes #24752
* | | doc: Fix wrong references found by Sphinx and new makerst.pyRémi Verschelde2019-01-071-1/+1
| | |
* | | doc: Fix wrong references found by new makerst.pyRémi Verschelde2019-01-075-6/+6
| | | | | | | | | | | | Thanks @PJB3005
* | | Fix code completion on nodes in current sceneTimo Schwarzer2019-01-051-1/+1
| | |
* | | Merge pull request #24741 from ↵Rémi Verschelde2019-01-041-2/+6
|\ \ \ | | | | | | | | | | | | | | | | timoschwarzer/24697-fix-autocomplete-segfault-in-inner-classes Fix segfault when trying to autocomplete in inner classes
| * | | Fix segfault when trying to autocomplete in inner classesTimo Schwarzer2019-01-031-2/+6
| | | | | | | | | | | | | | | | Fixes #24697
* | | | Merge pull request #24582 from Xrayez/script-encryptRémi Verschelde2019-01-041-5/+59
|\ \ \ \ | | | | | | | | | | Bring back script encryption in export preset
| * | | | Bring back script encryption in export presetAndrii Doroshenko (Xrayez)2018-12-241-5/+59
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Retrieved working implementation from 2.1 branch and adapted to existing export preset system. Added Script tab in export preset to export script as raw text, compiled, or encrypted (same as in 2.1). The script encryption key is visually validated. The script export mode and the key is saved per per preset in `export_presets.cfg`, so it makes sense to ignore this file in version control system. Each custom exporting procedure can retrieve an export preset set during project exporting. Refactored project export dialog a bit to allow easier code comprehension.
* | | | | Merge pull request #24688 from Supatier/add-additional-vscode-nameRémi Verschelde2019-01-031-9/+12
|\ \ \ \ \ | |_|/ / / |/| | | | Add code-oss, vscode-oss, and visual-studio-code-oss to vscode path
| * | | | Add code-oss, vscode-oss, and visual-studio-code-oss to vscode pathsupatier2019-01-021-9/+12
| | | | |
* | | | | Update copyright statements to 2019Rémi Verschelde2019-01-01403-806/+806
| | | | | | | | | | | | | | | | | | | | Happy new year to the wonderful Godot community!
* | | | | Fix missing/malformed license headersRémi Verschelde2019-01-0134-5/+92
|/ / / /
* | | | Merge pull request #24506 from JFonS/expose_gizmosRémi Verschelde2018-12-301-1/+1
|\ \ \ \ | | | | | | | | | | Expose the new gizmo plugin system to scripting
| * | | | Expose the new gizmo plugin system to scriptingJFonS2018-12-211-1/+1
| | | | |
* | | | | Merge pull request #24545 from akien-mga/osxcross-monoRémi Verschelde2018-12-302-5/+7
|\ \ \ \ \ | | | | | | | | | | | | SCons: Allow building Mono module with OSXCross
| * | | | | SCons: Allow building Mono module with OSXCrossRémi Verschelde2018-12-222-5/+7
| | |/ / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | Improve the test logic to only assume that we're building for macOS if OSXCROSS_ROOT is defined *and* we requested p=osx. Supersedes #24480.
* | | | | Fix loading EXR with alpha channelRémi Verschelde2018-12-301-3/+3
| | | | | | | | | | | | | | | | | | | | Fixes #24659.
* | | | | SCons: Drop ios_sim option forcing x86, simulator needs x86_64Rémi Verschelde2018-12-271-1/+1
| | | | |
* | | | | doc: Sync classref with current sourceRémi Verschelde2018-12-271-1/+1
| | | | | | | | | | | | | | | | | | | | Fix various code formatting issues and argument names.
* | | | | Fix size in HeightMapShapeBullet::set_dataRémi Verschelde2018-12-271-1/+1
| | | | |
* | | | | Merge pull request #24622 from Supatier/fix-vscode-w-uncommon-exec-nameIgnacio Etcheverry2018-12-271-0/+8
|\ \ \ \ \ | | | | | | | | | | | | Fix: Cannot find code editor: VSCode; although installed on linux
| * | | | | Fix Godot unable to find VSCode binarySupatier2018-12-271-0/+8
| | | | | | | | | | | | | | | | | | VSCode's executable name is not uniform and godot only search for "code".
* | | | | | Merge pull request #24610 from Faless/emws_buf_size_fixesRémi Verschelde2018-12-271-2/+2
|\ \ \ \ \ \ | |/ / / / / |/| | | | | Fix HTML5 WebSocket client buffers size.
| * | | | | Fix HTML5 WebSocket client buffers size.Fabio Alessandrelli2018-12-261-2/+2
| |/ / / /
* | | | | Merge pull request #24561 from KellyThomas/fix-antiquewhiteRémi Verschelde2018-12-271-1/+1
|\ \ \ \ \ | | | | | | | | | | | | fix capitalization for antiquewhite
| * | | | | fix capitalization for antiquewhiteKelly Thomas2018-12-231-1/+1
| |/ / / /
* / / / / `GodotRestInfoContactResultCallback::addSingleResult` now returns normalDaniel Abbott2018-12-221-0/+1
|/ / / / | | | | | | | | | | | | | | | | `PhysicsDirectSpaceState.get_rest_info()` now provides normals in result Addresses issue 24558
* | | | [Mono] Color - add ColorN(), Colors - add named color propertiesKelly Thomas2018-12-212-7/+319
| | | |
* | | | Merge pull request #24499 from akien-mga/android-thirdpartyRémi Verschelde2018-12-201-0/+3
|\ \ \ \ | | | | | | | | | | Android: Better identify thirdparty C/C++ code
| * | | | Android: Better identify thirdparty C/C++ codeRémi Verschelde2018-12-201-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - The `cpu-features.{c,h}` code was only used by chance by the webm (libvpx) code, so I moved it there. It was actually introduced before that and wasn't in use, and libvpx just happened to be able to compile thanks to it being bundled. It could potentially be compiled on the fly from the Android NDK, but since we plan to replace the webm module by a GDNative plugin in the near future, I went the bundling route. - `ifaddrs_android.h` is already provided in the Android NDK as `ifaddrs.h`, same as on other Unixes. Yet we cannot use it until we up the min API level to 24, where `getifaddrs` is first defined. I moved the files to `thirdparty/misc` and synced them with upstream WebRTC (only indentation changes and removal of `static` qualifiers). Also removes dropped thirdparty files from COPYRIGHT.txt after changes in #24105 and #24145.
* | | | | doc: Add missing commas after "If true/false"Rémi Verschelde2018-12-204-6/+6
|/ / / /
* | | | Merge pull request #23615 from buresu/pluginscript-newRémi Verschelde2018-12-183-13/+85
|\ \ \ \ | | | | | | | | | | PluginScript: Add support for the new() method
| * | | | PluginScript: Add support for the new() methodNaoto Kondo2018-11-103-13/+85
| | | | |
* | | | | Merge pull request #24385 from hpvb/reduce-string-coewRémi Verschelde2018-12-164-4/+4
|\ \ \ \ \ | | | | | | | | | | | | Reduce String CoW
| * | | | | Reduce String CoWHein-Pieter van Braam2018-12-164-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | | | | Merge pull request #19501 from Zylann/custom_loadersRémi Verschelde2018-12-1625-57/+104
|\ \ \ \ \ \ | | | | | | | | | | | | | | Added basic support for custom resource savers and loaders