Commit graph

18908 commits

Author SHA1 Message Date
Ignacio Etcheverry
9df44c2d2c Use script instance binding for objects constructed from C#
Only possible if the object class is a "native type". If the object class is a user class (that derives a "native type") then a script is needed.
Since CSharpLanguage does cleanup of script instance bindings when finished, cases like #25621 will no longer cause problems.

Fixed ~Object() trying to free script instance bindings after the language has already been removed, which would result in a NULL dereference.
2019-02-09 00:32:18 +01:00
Ignacio Etcheverry
16d402147b
Merge pull request #25593 from neikeq/whatwasithinking
Fix OS_Unix::set_environment
2019-02-04 01:03:10 +01:00
Ignacio Etcheverry
9bd9d21358 Fix OS_Unix::set_environment 2019-02-04 00:44:37 +01:00
Ignacio Etcheverry
919fa75803
Merge pull request #25574 from neikeq/ss
Mono: Lifetime fixes for CSharpInstance and instance binding data
2019-02-03 07:36:33 +01:00
Ignacio Etcheverry
248dbb2517
Merge pull request #25576 from neikeq/tt
Mono: Fix default debugger agent argument never being used
2019-02-03 07:33:01 +01:00
Ignacio Etcheverry
d8593747e0 Mono: Fix default debugger agent argument never being used 2019-02-03 06:51:07 +01:00
Ignacio Etcheverry
3233083f63 Mono: Lifetime fixes for CSharpInstance and instance binding data
Avoid CSharpInstance from accessing its state after self destructing (by deleting the Reference owner).
It's now safe to replace the script instance without leaking or crashing.

Also fixed godot_icall_Object_weakref return reference being freed before returning.
2019-02-03 06:47:25 +01:00
Ignacio Etcheverry
4e4e889c75
Merge pull request #25478 from neikeq/rr
Mono: Fix MonoPosixHelper not being found
2019-02-03 06:31:52 +01:00
Ignacio Etcheverry
065828d159 Mono: Fix MonoPosixHelper not being found 2019-02-03 05:38:47 +01:00
Ignacio Etcheverry
41873ffa88 Added set_environment to OS class 2019-02-03 05:38:47 +01:00
Ignacio Etcheverry
d3c51a5dfb Mono: Cleanup 2019-02-03 05:38:40 +01:00
Rémi Verschelde
869887641f
Merge pull request #25547 from hpvb/fix-25507
When an animationplayer sets a property on itself recreate the caches
2019-02-01 16:32:45 +01:00
Hein-Pieter van Braam
37aa06bf8a When an animationplayer sets a property on itself recreate the caches
this fixes #25507
2019-02-01 16:15:39 +01:00
Rémi Verschelde
58de384978
Merge pull request #25540 from JFonS/remove_gizmo_errors
Fix gizmo errors on "Align with view"
2019-02-01 14:12:37 +01:00
JFonS
2232d3336e Fix gizmo errors on "Align with view" 2019-02-01 12:16:05 +01:00
Rémi Verschelde
463123a661
Merge pull request #25494 from RandomShaper/fix-21677
Let memory stat functions return uint64_t
2019-01-31 10:33:18 +01:00
Rémi Verschelde
6225b17d5f
Merge pull request #25493 from bojidar-bg/21601-astar-segfault
Fix AStar crashing with large (>1e30) estimated values
2019-01-31 10:32:22 +01:00
Bojidar Marinov
e34a4c63a7
Fix AStar crashing with large (>1e30) estimated values
Fixes #21601
2019-01-30 20:22:08 +02:00
Pedro J. Estébanez
496d8f19fc Let memory stat functions return uint64_t 2019-01-30 19:07:46 +01:00
Rémi Verschelde
c21ca98e4c
Merge pull request #25469 from ankitpriyarup/master
Fixes error when new name contains only unallowed characters
2019-01-30 12:05:35 +01:00
Rémi Verschelde
629ac20a14
Merge pull request #25489 from AndreaCatania/assert
Avoid inertia calculation for empty shape - Bullet
2019-01-30 11:02:50 +01:00
Andrea Catania
5a26c7e0e5 Avoid inertia calculation for empty shape - Bullet 2019-01-30 10:33:33 +01:00
Ankit Priyarup
ee560dd987 Invalid node name should check if new_name is empty then cancel rename, fixes 25226 2019-01-29 22:21:50 +05:30
Rémi Verschelde
35bb52011a
Merge pull request #25391 from hpvb/fix-dri-prime-detect
Properly detect when to use DRI_PRIME
2019-01-29 10:11:49 +01:00
Rémi Verschelde
9007202a13
Merge pull request #25441 from WolfgangSenff/patch-1
Fix non-compiling typo in Expression.xml example
2019-01-29 09:03:29 +01:00
Rémi Verschelde
308e66442e
Merge pull request #25439 from YeldhamDev/color_picker_toggle_fixup
Small fixup on button toggle behaviour in ColorPicker
2019-01-29 08:57:45 +01:00
Rémi Verschelde
faad3a013a
Merge pull request #25443 from BastiaanOlij/fix_vsync_osx
Using DisplayLink to emulate vsync on OSX
2019-01-29 08:34:27 +01:00
Bastiaan Olij
b53f2d1d59 Using DisplayLink to emulate vsync on OSX 2019-01-29 17:00:35 +11:00
Kyle Szklenski
fb61080812
Fix non-compiling typo in Expression.xml example
Slight typo in Expression.xml prevented compilation when copy/pasted.
2019-01-28 16:38:13 -05:00
Rémi Verschelde
f32c826924
Merge pull request #25429 from akien-mga/cleanup-shadercompiler-gles23
Cleanup and identify ShaderCompilerGLES[23] differences
2019-01-28 21:33:29 +01:00
Rémi Verschelde
de6a80ee3a
Merge pull request #25430 from torshid/master
Binding for get_frustum() method of camera class
2019-01-28 21:29:31 +01:00
Yusuf
a7e6a31d7f binding for get_frustum() of camera class 2019-01-28 21:43:59 +03:00
Rémi Verschelde
20aec40757
Merge pull request #25426 from volzhs/twice-get_singleton
Remove unnecessary call VS::get_singleton() twice
2019-01-28 19:36:40 +01:00
Rémi Verschelde
b77b536582 Cleanup and identify ShaderCompilerGLES[23] differences 2019-01-28 19:28:00 +01:00
Rémi Verschelde
c4c517e13d
Merge pull request #25423 from akien-mga/gles2-spatialshader-light
GLES2: Define LIGHT Spatial shader builtin
2019-01-28 19:26:35 +01:00
volzhs
1c14da3273 Remove unnecessary call VS::get_singleton() twice 2019-01-29 02:55:13 +09:00
Michael Alexsander Silva Dias
8d3ae29e8f Small fixup on button toggle behaviour in ColorPicker 2019-01-28 15:51:57 -02:00
Rémi Verschelde
188a711c4f
Merge pull request #25420 from akien-mga/godotphysics-is-back
Revert " Deprecated Godot 3D physics engine"
2019-01-28 17:45:25 +01:00
Rémi Verschelde
1148a33b20 GLES2: Define LIGHT Spatial shader builtin
Fixes #25421.
2019-01-28 17:27:20 +01:00
Hein-Pieter van Braam
9c308023bb Properly detect when to use DRI_PRIME
We fork off twice once with and once without DIR_PRIME=1 set. We
then use the vendor string to determine what GPU to use.

We prefer (in order)
1) AMDGPU/AMDGPU-PRO/NVidia non-free driver
2) Intel driver
3) Nouveau
4) Software rendering

If a driver can't be detected it will default to DRI_PRIME=0
2019-01-28 16:21:07 +00:00
Rémi Verschelde
5876c3f089 Revert " Deprecated Godot 3D physics engine"
This reverts commit 5de5a4140b.

@reduz still intends to rework it in the future, and it's convenient to
test if issues are specific to Bullet or not, so we keep it around for
the time being.
2019-01-28 16:51:03 +01:00
Rémi Verschelde
ac01aef9e3
Merge pull request #25417 from akien-mga/svg-max-size
Prevent upscaled SVG from exceeding Image bounds
2019-01-28 16:44:13 +01:00
Rémi Verschelde
cc0842f9a6 Prevent upscaled SVG from exceeding Image bounds
Also expose Image MAX_WIDTH and MAX_HEIGHT.

Fixes #24455.
2019-01-28 16:00:15 +01:00
Rémi Verschelde
89e7c2cb13
Merge pull request #25415 from akien-mga/recursive-resource-assignments
Fix recursive assignment of Textures and other resources
2019-01-28 15:31:43 +01:00
Rémi Verschelde
402cfa983d Fix recursive assignment of Textures and BitMapFont
Fixes #24213.
2019-01-28 15:10:34 +01:00
Rémi Verschelde
70689ebffd Remove unused iostream includes 2019-01-28 12:16:22 +01:00
Rémi Verschelde
7fe66bc70f
Merge pull request #25401 from capnm/capnm-cleanup
Cleanup unused header file
2019-01-28 09:53:16 +01:00
Rémi Verschelde
de1c3f3c89
Merge pull request #25379 from Faless/net/ws/mp_docs
Update docs and errors for WebSocket module
2019-01-28 09:35:05 +01:00
Rémi Verschelde
cee84d1ed8
Merge pull request #25402 from AndreaCatania/sp_ce
Fixed Rigidbody first frame center spawn
2019-01-28 09:11:12 +01:00
Andrea Catania
8d4617439c Fixed Rigidbody first frame center spawn 2019-01-28 08:30:26 +01:00