Commit graph

9472 commits

Author SHA1 Message Date
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
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
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
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
Gilles Roudiere
b5f29fe073 Add some options and reorganize the 2D editor menus. Makes available forced snapping. 2017-09-18 23:20:18 +02: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
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
Gilles Roudiere
ad1028471c Draw a ghost rect when dragging nodes if it's rotated/scaled 2017-09-17 23:04:30 +02:00
Gilles Roudiere
dbc4dbdec1 Displays margins values when moving the node 2017-09-17 23:04:30 +02:00
Rémi Verschelde
fba938e574 Merge pull request #11313 from deliciousfudge/boxcontainershape-docs
Refactor the docuementation of BoxContainer and BoxShape classes

[ci skip]
2017-09-17 22:50:27 +02:00
Hein-Pieter van Braam
137f8a58a8 Move Variant::evaluate() switch to computed goto
In an effort to make GDScript a little faster replace the double
switch() with a computed goto on compilers that set __GNUC__. For
compilers that don't support computed goto it will fall back to regular
switch/case statements.

In addition disable using boolean values in a mathematical context. Now
boolean values can only be compared with other booleans. Booleans will
also no longer be coerced to integers.

This PR replaces #11308 and fixes #11291
2017-09-17 22:49:23 +02:00
Rémi Verschelde
7655587efb Merge pull request #11251 from toger5/q_e_fix_freelook
swapped up down shortcut for freelook (to fit unreal)
2017-09-17 22:49:13 +02:00
Rémi Verschelde
53bbc046ee Merge pull request #11252 from marcelofg55/fix_noaudio_crash
Fix crash when no audio driver is available
2017-09-17 22:48:22 +02:00
Rémi Verschelde
a00f19a921 Merge pull request #11328 from Paulb23/left_right_arrow_tree_issue_10737
Added Left / Right arrow navigation in tree, issue 10737
2017-09-17 22:45:19 +02:00