Juan Linietsky
71e4fae3a1
Merge pull request #11437 from hpvb/allow-compare-to-null
...
Allow equality checks between null and arbitrary types
2017-09-20 17:49:18 -03:00
Hein-Pieter van Braam
6565cf3360
Allow equality checks between null and arbitrary types
...
Uninitialzed values in GDScript are of type NIL so not allowing null
comparisons did end up breaking some code.
This commit reenables NULL equality checks for all types. We're going to
have to figure out how to make this fast for the compiler later.
2017-09-20 22:14:38 +02:00
Rémi Verschelde
4820dfc570
Let queue_free() work on nodes which are not in the scene tree
...
In practice such nodes could directly be free()'ed, but this little change
prevents users from leaking memory by mistake.
Closes #9074 .
2017-09-20 21:49:56 +02:00
Marcelo Fernandez
1a8b324545
Add missing NULL checks on CanvasItemEditor
2017-09-20 16:28:16 -03:00
Cradmon
0a1db473fb
Refactor core/set.h
2017-09-20 18:52:40 +01:00
SaracenOne
3cecd0c6dc
Box selection for MeshInstances and subscene nodes.
2017-09-20 14:04:18 +01:00
Rémi Verschelde
e3617cb187
Merge pull request #11409 from MarufSarker/PR-core-math-is_nan
...
Verbose and Platform-specific implementation for is_nan
2017-09-20 14:29:01 +02:00
Rémi Verschelde
372cdc2070
Merge pull request #11153 from letheed/rename-pos
...
Rename pos/rot/loc/scl
2017-09-20 13:22:47 +02:00
letheed
5ad9be4c24
Rename pos to position in user facing methods and variables
...
Rename user facing methods and variables as well as the corresponding
C++ methods according to the folloming changes:
* pos -> position
* rot -> rotation
* loc -> location
C++ variables are left as is.
2017-09-20 13:11:10 +02:00
Rémi Verschelde
ecd226c6a7
Merge pull request #11422 from poke1024/fixsourcefontsize2
...
Better script code font size rescaling on retina displays
2017-09-20 09:32:49 +02:00
Rémi Verschelde
f5c15018ac
Merge pull request #11434 from endragor/disable-recast-android
...
Do not compile Recast for Android
[ci skip]
2017-09-20 09:31:03 +02:00
Rémi Verschelde
96882c7224
Merge pull request #11432 from endragor/min-sdk-version-18
...
Set Android minSdkVersion to 18
[ci skip]
2017-09-20 09:30:46 +02:00
Rémi Verschelde
46c28a0aca
Merge pull request #11431 from endragor/game-center-player-id
...
Return player ID after connecting to Game Center
[ci skip]
2017-09-20 09:30:16 +02:00
Rémi Verschelde
a650908cf4
Merge pull request #11435 from volzhs/remove-show-button-name-on-off
...
Show button name always in main toolbar
[ci skip]
2017-09-20 09:29:08 +02:00
volzhs
cd81ef4d38
Show button name always in main toolbar
2017-09-20 16:03:52 +09:00
Ruslan Mustakov
52cb4ec232
Do not compile Recast for Android
...
At least this makes Godot compile for Android until there is a better
solution.
2017-09-20 12:57:33 +07:00
Ruslan Mustakov
ea7223d181
Set Android minSdkVersion to 18
...
It's the minimum version where GLES 3 API is available. It is already
the version Godot binary is compiled with for Android, but the config
files were not updated in time.
2017-09-20 11:49:46 +07:00
Ruslan Mustakov
a84093559c
Return player ID after connecting to Game Center
2017-09-20 11:48:10 +07:00
Evgeny Zuev
521280ec44
Fix duplication of node with script
...
When duplicating node with script, properties of script
weren't copied sometimes.
It happened because properties were copied in arbitrary
order, and properties of the script were setted before the
"script" property itself, i.e. while script is sill NULL.
Also, DUPLICATE_SCRIPTS flag wasn't working - script was
always copied because `_duplicate` looked for
"script/script" property while it should be just "script".
Now "script" property is being set before all others,
and "script/script" changed to
`CoreStringNames::get_singleton()->_script`.
2017-09-20 10:56:31 +07:00
ABU MD. MARUF SARKER
7744bb153f
verbose and platform specific implementation for is_nan
2017-09-20 08:20:08 +06:00
Rémi Verschelde
cd2ffdc672
Merge pull request #11309 from djrm/pr_hack_font
...
Changed Mononoki font to Hack font
2017-09-20 01:30:16 +02:00
Rémi Verschelde
593511b2b8
Merge pull request #10748 from Cradmon/fixCoreSet
...
Refactor core/set.h
2017-09-19 23:47:39 +02:00
Rémi Verschelde
752a116847
Merge pull request #11256 from djrm/pr_visual_improvements
...
Visual improvements and new look for VS
2017-09-19 23:44:09 +02:00
Rémi Verschelde
dc7b3c309a
Merge pull request #11310 from djrm/pr_mono_font_in_log
...
Use code font in editor log
2017-09-19 23:38:37 +02:00
Rémi Verschelde
01e4d2672c
Merge pull request #11327 from SaracenOne/drag_meshes
...
Drag and drop for meshes directly.
2017-09-19 23:38:10 +02:00
Rémi Verschelde
865be2768b
Merge pull request #11378 from Faless/ipv6_no_linklocal
...
Do not allow link-local addresses to be used by editor debugger
2017-09-19 23:37:21 +02:00
Rémi Verschelde
b03a6e55e0
Merge pull request #11396 from djrm/pr_fix_metrics
...
Fixed a lot of HiDPI metrics.
2017-09-19 23:36:33 +02:00
Rémi Verschelde
27fb329c82
Merge pull request #11208 from kitsune/hex-color-shortcuts
...
Adds 3 and 4 digit html shortcuts to Color
2017-09-19 23:33:25 +02:00
Rémi Verschelde
2785444f89
Merge pull request #10437 from groud/2d_editor_enhancements
...
Some 2d editor enhancements
2017-09-19 23:24:17 +02:00
poke1024
d2536a0cf1
better script code font size rescaling on retina displays
2017-09-19 19:51:38 +02:00
Leon Krause
d1ecc25db4
Fix mouse button state in HTML5 platform
...
Regression from 844c5e12e6
2017-09-19 19:27:52 +02:00
Rémi Verschelde
d58b0a5c9a
Merge pull request #11388 from hpvb/fix-missing-return-fail
...
Be type-strict checking on equality checks
2017-09-19 19:03:25 +02:00
Hein-Pieter van Braam
833c3917b2
Allow booleanization of all types
...
We now allow booleanization of all types. This means that empty versions
of all types now evaluate to false. So a Vector2(0,0), Dictionary(),
etc.
This allows you to write GDScript like:
if not Dictionary():
print("Empty dict")
Booleanization can now also no longer fail. There is no more valid flag,
this changes Variant and GDNative API.
2017-09-19 18:55:31 +02:00
Rémi Verschelde
67aa409f59
Merge pull request #11405 from karroffel/new-hashmap
...
added OAHashMap type
2017-09-19 16:57:58 +02:00
Rémi Verschelde
92031747aa
Merge pull request #11418 from marcelofg55/fix_ch_compilelinux
...
Fix crash handler not including stdlib.h
[ci skip]
2017-09-19 16:57:31 +02:00
Karroffel
add040d381
added OAHashMap type
2017-09-19 16:48:53 +02:00
Marcelo Fernandez
9a0aa45d5c
Fix crash handler not including stdlib.h
2017-09-19 11:21:45 -03:00
Hein-Pieter van Braam
85641c545b
Be type-strict checking on equality checks
...
After a short discussion with @reduz and @karroffel we decided to make
all non number/number comparisons return type errors on comparisons.
Now bool == bool is allowed but Vector2 == Vector3 is a type error and
no longer 'not equal'. The same has been done for the != operators.
In addition I forgot to add some failures to some Object operators
meaning that there was a potential for a crasher.
2017-09-19 16:00:19 +02:00
Rémi Verschelde
33e1716f13
Merge pull request #11402 from hpvb/remove-gdscript-checks-on-release
...
Various GDScript performance tweaks
2017-09-19 15:48:14 +02:00
Hein-Pieter van Braam
d05965963d
Don't call Variant::reference() unnecessarily
...
operator= does not need to call reference() if the new value is of the
same type as the old. This saves us zeroing the Variant, This speeds
up reuse of a Variant in a loop by roughly 50%.
2017-09-19 15:27:57 +02:00
Rémi Verschelde
ba4439c491
Merge pull request #11386 from kosz78/fix-msvc-compile-errors
...
Fix MSVC compilation errors
2017-09-19 14:58:19 +02:00
Hein-Pieter van Braam
36e8bee752
Fix accidental cast to Vector3 for Vector2 iter
2017-09-19 14:18:12 +02:00
Rémi Verschelde
861f1d3490
Merge pull request #11412 from ISylvox/seperate-to-separate
...
Fix Typo: 'Seperate' to 'Separate'
[ci skip]
2017-09-19 13:15:36 +02:00
Hein-Pieter van Braam
24c76f177e
Merge pull request #11395 from marcelofg55/fix_crashhandler_win
...
Prevent running the crash_handler when a debugger is present on windows
2017-09-19 11:16:47 +02:00
Indah Sylvia
13b630eb0c
Fixed Typo: 'Seperate' to 'Separate'
2017-09-19 15:51:00 +07:00
Zher Huei Lee
2ca82225b7
Added support for FT_PIXEL_MODE_MONO in FreeType
2017-09-19 14:00:00 +08:00
Konstantin Zaitsev
28dc30cd59
Change structure order for godot nim compatibility
2017-09-19 11:35:51 +07:00
Konstantin Zaitsev
c386a02654
Fix MSVC compilation errors
2017-09-19 10:33:07 +07:00
toger5
f328a356ae
settings 'editors/3d' organized, sorted, new_defaults
2017-09-19 02:44:26 +02:00
toger5
117eb16adb
update inertia/freelook settings values + renamed free_orbit... to
...
oribit...
2017-09-19 02:34:44 +02:00