Hein-Pieter van Braam
cacced7e50
Convert Object::cast_to() to the static version
...
Currently we rely on some undefined behavior when Object->cast_to() gets
called with a Null pointer. This used to work fine with GCC < 6 but
newer versions of GCC remove all codepaths in which the this pointer is
Null. However, the non-static cast_to() was supposed to be null safe.
This patch makes cast_to() Null safe and removes the now redundant Null
checks where they existed.
It is explained in this article: https://www.viva64.com/en/b/0226/
2017-08-24 23:08:24 +02:00
Rémi Verschelde
df590fc2d3
Merge pull request #10340 from Rubonnek/remove-unnecessary-assignments
...
Removed unnecessary assignments
2017-08-22 00:58:12 +02:00
Juan Linietsky
2cc8309249
Merge pull request #10351 from neikeq/enums-are-for-the-weak
...
ClassDB: Provide the enum name of integer constants
2017-08-21 19:56:08 -03:00
Wilson E. Alvarez
738d2ab969
Removed unnecessary assignments
2017-08-21 15:15:55 -04:00
Ignacio Etcheverry
32dd9a9f66
ClassDB: Provide the enum name of integer constants
2017-08-20 22:07:43 +02:00
Juan Linietsky
834112772b
property validate assignment condition in new variables, fixes #9411
2017-08-20 16:15:46 -03:00
Juan Linietsky
7e5890d23d
-Fix all shadow and culling related issues, fixes #9330
2017-08-19 20:07:21 -03:00
Juan Linietsky
588ffbc08a
Fixed wrong usage of has_no_area function, closes #10434
2017-08-19 14:54:04 -03:00
Juan Linietsky
8fc6bb8f77
Added polygon antialiasing, but it does not work on nvidia. Will have to try something else..
2017-08-19 13:14:38 -03:00
Juan Linietsky
cbcf40bd31
-Volume sliders, mute, solo and fx bypass are functional, closes #9021
...
-Fixed tree reselect, makes reselecting an audio bux FX work
2017-08-18 18:21:53 -03:00
Juan Linietsky
72be8876ea
Properly manage drawing of primitives when they lack an area, fixes #8930
2017-08-18 15:12:48 -03:00
Marcelo Fernandez
eab850524e
Add closest_power_of_2 func and implement mix_rate/latency on OS X
2017-08-17 19:51:13 -03:00
Rémi Verschelde
44a550421c
Shader: Fix typo in "facefordward"
...
Fixes #10399 .
2017-08-17 18:15:16 +02:00
TwistedTwigleg
00f6c85928
Synchronize parameter names in definition and declaration
...
Fixes #10244 .
2017-08-16 17:22:23 +02:00
Rémi Verschelde
5422585db6
Merge pull request #10373 from RandomShaper/remove-physics-check
...
Remove needless check in motion test
2017-08-16 17:06:54 +02:00
Rémi Verschelde
035d74f54a
Rename cull_AABB to cull_aabb
...
Part of #8830 .
2017-08-16 17:01:05 +02:00
Pedro J. Estébanez
e1bdf81008
Remove needless check in motion test
...
Since now one-way collision is at shapes, the removed if was unneeded.
2017-08-16 12:36:26 +02:00
Rémi Verschelde
0f23c4a3c0
Merge pull request #10177 from bojidar-bg/9832-fix-infinite-loop
...
Fix freeze on close of game using 2D physics introduced by #9832
2017-08-11 10:37:51 +02:00
Ignacio Etcheverry
78619a5866
Fixes method definitions with extra number of arguments
2017-08-10 07:17:51 +02:00
Ignacio Etcheverry
2f290038d6
Removes type information from method binds
2017-08-10 07:17:50 +02:00
Juan Linietsky
df573f5c3a
-Restored Sprite3D to working function, fixes #2061 , fixes #9738
...
-Restored an alpha scissor property in Material
2017-08-08 17:23:44 -03:00
Bojidar Marinov
fe1c3349e5
Fix freeze on close of game using 2D physics introduced by #9832
...
Additionally, port the fix to 3D physics, just in case
2017-08-08 23:17:11 +03:00
Juan Linietsky
2a6cdfaf91
-Fixed BoneAttachment delay, closes #3966
...
-Fixed skeleton crash, probably fixes other issues
2017-08-07 22:18:12 -03:00
Juan Linietsky
539fbad919
Restored black bars and custom images instead of black bars, closes #1571
2017-08-07 18:09:13 -03:00
Rémi Verschelde
3121b3a4f4
Merge pull request #10141 from ISylvox/lower_case_godot_api
...
Makes all Godot API's Methods lower_case
2017-08-07 14:59:39 +02:00
Indah Sylvia
5ae78fdf6a
Makes all Godot API's methods Lower Case
2017-08-07 18:24:35 +07:00
Rémi Verschelde
2bb8ab7b89
Merge pull request #10045 from marcelofg55/audioserver_finish
...
Fix double finalisation of audio drivers
2017-08-07 11:11:03 +02:00
BastiaanOlij
e7aed24add
Added ARVRAnchor support and a few small enhancements
2017-08-03 18:58:05 +10:00
Marcelo Fernandez
1ca107a057
Fix double finalisation of audio drivers
2017-08-02 11:45:19 -03:00
Marcelo Fernandez
3180827387
Fix AudioServer::finish not getting called while quitting
2017-08-01 18:09:52 -03:00
Rémi Verschelde
7c860a7d4f
Merge pull request #9832 from RandomShaper/port-physics-fixes
...
Port physics fixes
2017-08-01 22:23:59 +02:00
Pedro J. Estébanez
7264716e86
Improve cleanup of physics constraints
...
Don't abort the loop when one is already released
Remove warning on already-released constraint
Clean up area's contraints as well
Clear the constraint data as well
Do the cleanup as soon as the space changes
2017-08-01 01:39:40 +02:00
Rémi Verschelde
62464839ad
Merge pull request #8567 from BastiaanOlij/ar_vr_server
...
AR/VR base classes and position tracker support
2017-07-31 13:29:18 +02:00
ISylvox
357bcfcc97
Update SCsub file for /servers/ folder
2017-07-29 15:11:11 +07:00
Juan Linietsky
b276d92c8a
Few small GI Probe fixes
2017-07-29 00:04:29 -03:00
BastiaanOlij
d2ba2d0873
Adding base classes and structures for ARVR support
...
Added ArVrScriptInterface
Added ARVRCamera, ARVRController and ARVROrigin helper objects
2017-07-28 10:39:15 +10:00
Poommetee Ketson
0154098531
Fix various property not found errors
2017-07-26 20:03:13 +07:00
Pedro J. Estébanez
ac2c5e8dcd
Add missing initializers
2017-07-25 04:45:01 +02:00
Pedro J. Estébanez
bc1d58c50d
Extend check for same space to all 2D/3D bodies/shapes
2017-07-25 04:45:01 +02:00
Pedro J. Estébanez
507b48179f
Fix 2D broadphase remove-while-iterating logic
2017-07-25 04:45:01 +02:00
Pedro J. Estébanez
fa1049b46b
Fix early-accepting area-area match when masks don't match
2017-07-25 04:45:01 +02:00
Pedro J. Estébanez
b4129df96c
Fix crash in Space2DSW::test_body_motion()
...
Fixes #9692 .
2017-07-25 03:57:11 +02:00
Rémi Verschelde
374cffaa11
Merge pull request #9764 from Noshyaar/pr-fix2
...
Add object type hint for docs
2017-07-24 08:07:32 +02:00
Poommetee Ketson
2777f81d29
Add object type hint for docs
2017-07-23 18:57:03 +07:00
Rémi Verschelde
38c471bef6
Merge pull request #9765 from Noshyaar/pr-clang
...
Clang-formatting *.cpp and *.h (some files excluded)
2017-07-23 13:16:48 +02:00
Juan Linietsky
772485cdb3
Several changes to better run in mobile.
2017-07-22 14:08:17 -03:00
Poommetee Ketson
c7c65ca6ba
Clang-formatting *.cpp and *.h (some files excluded)
2017-07-22 18:14:08 +07:00
Juan Linietsky
25678b1876
-Renamed GlobalConfig to ProjectSettings, makes more sense.
...
-Added system for feature overrides, it's pretty cool :)
2017-07-19 17:06:03 -03:00
Poommetee Ketson
49c7620326
Add object type hint for docs
2017-07-19 02:03:34 +07:00
Juan Linietsky
bbada82f80
-Reorganized all properties of project settings (Sorry, Again).
...
(Lot's of bloat accumulated, so it was time for clean up.)
-Made EditorSettings and ProjectSettings search more useful (search in sections too)
2017-07-17 22:18:58 -03:00