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
toger5
1a8a80368e
added precision scrolling to spatial editor zoom
2017-09-19 02:34:04 +02:00
Hein-Pieter van Braam
60790c8c5a
Remove more GDScript runtime checks on release
...
As a preparation for other performance enhancements to GDScript:call()
start by removing more of the GDScript runtime checks on release.
This code has been tested with 2d/platformer, 3d/platformer,
3d/materials_test, and goltorus. No regressions were found.
2017-09-19 02:06:47 +02:00
toger5
81245a634b
zoom inertia uses its own setting (not the same then translation)
2017-09-19 01:30:14 +02:00
toger5
8f460bb73d
added editor spacing
2017-09-19 00:37:54 +02:00
SaracenOne
a3b3886029
Drag and drop for meshes directly and fix drop restriction for non-Texture objects in canvas editor.
2017-09-18 22:50:05 +01:00
Gilles Roudiere
b5f29fe073
Add some options and reorganize the 2D editor menus. Makes available forced snapping.
2017-09-18 23:20:18 +02:00
Daniel J. Ramirez
957e85dcac
Fixed a lot of HiDPI metrics.
2017-09-18 14:48:15 -05:00
Marcelo Fernandez
ff1e0a3e2c
Prevent running the crash_handler when a debugger is present on windows
2017-09-18 16:29:23 -03:00
Rémi Verschelde
3d06957f12
Merge pull request #11375 from FigyTuna/rigid_body_docs
...
[DOCS] Modified/Added documentation for RigidBody and RigidBody2D
[ci skip]
2017-09-18 20:05:41 +02:00
Rémi Verschelde
30ba4076cd
Merge pull request #11372 from volzhs/fix-smooth-scroll
...
Fix smooth scrolling in ScrollBar
2017-09-18 20:04:39 +02:00
FigyTuna
ba568456c6
Modified/Added documentation for RigidBody and RigidBody2D
2017-09-18 10:18:05 -07:00
Rémi Verschelde
7db006785c
Merge pull request #11367 from hpvb/refactor-variant-op
...
Move Variant::evaluate() switch to computed goto
2017-09-18 12:57:12 +02:00
Rémi Verschelde
0a5e0b8e39
Merge pull request #11376 from RaTi17/gdscript_doc
...
Added code tags and corrected some lines
[ci skip]
2017-09-18 10:51:42 +02:00
RaTi17
608c2eb3b5
Added code tags and corrected some lines
2017-09-18 10:26:28 +02:00
Rémi Verschelde
cc161dcd6f
Merge pull request #11021 from tuga3d/autocomplete-logic-attempt2
...
autocomplete logic attempt 2, fixes #10695
2017-09-18 08:58:18 +02:00
Rémi Verschelde
aa4694b7b4
Merge pull request #11382 from djrm/pr_fix_metrics
...
Fixed metrics.
2017-09-18 08:12:51 +02:00
Daniel J. Ramirez
4d14097439
Fixed metrics.
2017-09-17 18:58:36 -05:00
Fabio Alessandrelli
72b4a09a14
Do not allow link-local addresses to be used by editor debugger
...
Default editor debugger address is now 127.0.0.1
2017-09-18 00:48:16 +02:00
Gilles Roudiere
ee61d5d04b
Implement smart snapping. Fixes a bug with anchors single-axis move (when they were rotated).
2017-09-17 23:22:13 +02:00
Gilles Roudiere
a6f577a9f2
Avoid grid step to go below zero
2017-09-17 23:19:05 +02:00
Gilles Roudiere
7c24a26bc2
Use shift to move anchors on a single axis
2017-09-17 23:19:05 +02:00
Gilles Roudiere
bf6d7add01
Implement shortcuts to multiply/divide the grid step
2017-09-17 23:19:05 +02:00
Gilles Roudiere
fc52a74ffc
Fusion the lock/unlock and the group/ungroup buttons
2017-09-17 23:19:05 +02:00
Gilles Roudiere
975f7eeec3
Adds keyboards shortcuts
2017-09-17 23:19:05 +02:00
Gilles Roudiere
335688ce78
Implements rulers
2017-09-17 23:19:05 +02:00
Rémi Verschelde
bc005a57d3
Merge pull request #11220 from toger5/bottom_panel_debugger_tabs_fix
...
made tabs visible in debugger fixes : #11212
2017-09-17 23:06:38 +02:00
Gilles Roudiere
72e0a68a81
Fixes axis badly displayed with high zooming values
2017-09-17 23:04:30 +02:00
Gilles Roudiere
71b45614fd
Split some functions to make the code more readable (maybe at the price of a neglibile performance loss)
2017-09-17 23:04:30 +02:00
Gilles Roudiere
f48b76fd8d
Make the shortcuts for setting the pivot editable
2017-09-17 23:04:30 +02:00
Gilles Roudiere
69091d4035
Display draggable anchors only if the parent is not a container
2017-09-17 23:04:30 +02:00
Gilles Roudiere
100c788884
Display width and height when dragging a node side
2017-09-17 23:04:30 +02:00