aboutsummaryrefslogtreecommitdiff
path: root/platform/javascript/api/api.cpp (unfollow)
Commit message (Collapse)AuthorFilesLines
2018-04-01Mesh: fix crash when creating mesh outline from QuadMeshPoommetee Ketson2-0/+6
Since create_outline can only make outline for PRIMITIVE_TRIANGLES, when QuadMesh (which is PRIMITIVE_TRIANGLE_FAN) is used to create outline, will leave `arrays` empty, and crash when it is being indexed for "indices" subarray. This PR shows error when there's only one surface and it is not TRIANGLES. Also prevent the crash if it has more than one surface and none of them are TRIANGLES (and any other cases that could leave `arrays` empty) by checking the size of `arrays` == 8 before indexing it, since the method seems to expect `arrays` to be of that size.
2018-03-31Fix UpdatePowerInfo method implementation in PowerIphone classIgors Vaitkus1-1/+1
2018-03-31[GDNative] fixed issue with library unloading orderkarroffel1-13/+25
2018-03-31[GDNative] added GDCALLINGCONV to instance binding functionskarroffel1-3/+3
2018-03-30Added missing end points for brief descriptions in the docs.Michael Alexsander Silva Dias9-9/+9
2018-03-30README: Use HTTPS URL for image. (#17851)Maxwell Paul Brickner1-1/+1
Updated links to use https when possible to avoid redirects.
2018-03-30[DOCS] Some content for InterpolatedCameraMel Collins1-0/+7
2018-03-30Implement missing navgiation polygon debugging in tilemapBenedikt Bär1-0/+55
2018-03-30[DOCS] Typo fix for CollisionShape[2D]mhilbrunner2-2/+2
2018-03-30Fix bug in HTML5 HTTPClient.Fabio Alessandrelli1-1/+1
The URL parameter already has a slash, adding an extra one results in an invalid resource path
2018-03-29WASAPI driver will now resample when the device rate != audio/mix_rateMarcelo Fernandez1-4/+13
2018-03-29Fix UWP build after #17194Fabio Alessandrelli1-0/+2
`uwp/detect.py` was not setting the `env.msvc` variable to true causing scons to pass wrong arguments to `msvc` (using `clang/gcc` options) which in turn break the build due to `-Werror=return-type` not being recognized by ms compiler.
2018-03-29[Docs] fix typosPoommetee Ketson2-8/+8
2018-03-29Detect and configure JavaScript build per Emscripten configuration fileLeon Krause1-5/+15
2018-03-28[DOCS] Node & PackedScene (#17833)Max Hilbrunner2-2/+9
* [DOCS] Node: SceneSaver -> PackedScene * [DOCS] PackedScene: Code example, resolve TODO
2018-03-28[DOCS] Generic6DOFJoint fixesMax Hilbrunner1-7/+7
2018-03-28Fix IPhone and OSX cross compilationFabio Alessandrelli3-2/+8
2018-03-28Enable snapping in 2D when control key pressedChaosus1-9/+11
2018-03-26Simplify CanvasItemEditor anchor drag logicWilson E. Alvarez1-12/+12
2018-03-26Refactor JavaScript platform build scriptLeon Krause9-218/+105
2018-03-26Added wrap functions to C#Chaosus1-0/+12
2018-03-25Added the "GLES2" option for the video-driver in the terminal help.Michael Alexsander Silva Dias1-1/+1
2018-03-24Fix mono basis GetEuler bug and marshalling/unmarshallingCarter Anderson2-86/+110
2018-03-24Fix bug added in PR#17589. Resources couldn't be saved to filesrobfram1-4/+2
This PR fixes the code to avoid saving default environment every time the project is run whitin the editor. Should fix #17727. Sorry for the troubles!
2018-03-23Overhaul the display scaling editor settingsHugo Locurcio3-26/+78
This adds more scaling options, in addition to a custom scaling option which allows any scale between 0.75 and 3.0 to be used.
2018-03-23Revert "Implement OS_OSX::execute"bruvzg2-50/+0
This reverts commit e42576548f2c0ae2c6cb24ce2b0437ffb8978d65.
2018-03-22Replace float with real_t, default Vectors, other misc C# improvementsAaron Franke13-289/+471
Replace float with real_t in most files, defined at the top of each file via using. Objects such as Vector3 now accept doubles as inputs, and convert to real_t internally. I've added default Vectors such as Vector3.Zero. Other misc C# improvements such as Mathf.RoundToInt(). Color continues to use float only because high precision is not needed for 8-bit color math and to keep things simple. Everything seems to compile and work fine, but testing is requested, as this is the first time I've ever contributed to Godot.
2018-03-22Fix for clang warning at distance_toMarcelo Fernandez1-1/+1
2018-03-22Fix dragging window from non-retina to retina display.bruvzg1-0/+1
2018-03-22Fix several in-class initialization clang warningMarcelo Fernandez7-9/+18
2018-03-21Fix missing const in CapsuleShapeSW::get_areaMarcelo Fernandez1-1/+1
2018-03-21Fix compressor audio effect sidechain selectionBenedikt Bär1-1/+1
2018-03-21Prevented external editor from running multiple timesIvan Vodopiviz1-1/+2
Fixes #16923. I'm not a fan of the special case for scripts in editor_node.cpp, but in any case, I made it so it wouldn't make the external editor to re-open just because we switched scenes.
2018-03-21[DOCS] minor ParticlesMaterial docs fix Linear -> RadialPoommetee Ketson1-1/+1
2018-03-21Prevent android to split-screenXavier Sellier1-1/+2
2018-03-21s/2017/2018/g for gles2, websocket, linux appdataPoommetee Ketson37-73/+73
2018-03-21Add --print-fps option to output FPS to stdoutRémi Verschelde2-4/+15
Works both for the editor and games. Projects can still use "debug/settings/stdout/print_fps" to enable it permanently. The --print-fps option takes precedence (so works even if the project setting is disabled). That setting is also no longer redefined on the fly based on the verbose flag, that was a mess.
2018-03-20Updated thekla_atlas to support arm64Brigham Henry Keys2-4/+9
2018-03-20add option to invert y-axisJulien CATINEAU2-2/+13
2018-03-20Fix getting Android device informationvolzhs1-2/+8
Fix #17644
2018-03-20Add RWLockDummy for NO_THREADS buildsLeon Krause7-25/+30
2018-03-19Fix crash in `canvas_item_add_polyline` when passing more points than colorsrobfram1-4/+8
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-19Fix mono build properly!PJB30051-1/+1
Fixes the mistake I made in #17603 to make it require Python > 3.6.
2018-03-19Fix oversampled font artifacts after resizeRuslan Mustakov1-3/+3
Font update after resize relies on the viewport size which was updated after the font was already refreshed, which resulted in artifacts when it was rendered into the actual/new viewport size. Fixes #15173.
2018-03-19Fix possible crash when audio channels changeMarcelo Fernandez2-11/+33
2018-03-19Implement OS_OSX::executebruvzg2-0/+50
2018-03-19Fix animation length from glTF not correctly setPedro J. Estébanez1-4/+3
2018-03-19Fix glTF not accepting VEC3 colorsPedro J. Estébanez1-3/+11
Aside from the colors themselves, the rejection was adding somes issues later in the mesh import process.
2018-03-18Mono: Runtime main args and assembly search fixesIgnacio Etcheverry2-15/+42
- Setup runtime main args during initialization. This must be done manually by embedders who do not call mono_runtime_run_main. Fixes NullReferenceException in System.Environment. - Continue to search the assembly in the rest of the search locations if loading it from one of them failed.
2018-03-18Fixes wrong calculation of gridcontainer's children sizeGilles Roudiere1-2/+2