Commit graph

18709 commits

Author SHA1 Message Date
Rémi Verschelde
5bf8bdc971
Merge pull request #24884 from Xrayez/fix-#24881
Fix broken encrypted scripts during export
2019-01-10 13:12:33 +01:00
Andrii Doroshenko (Xrayez)
c0cc032799 Fix broken encrypted scripts during export
Use temporary cache directory instead of editor settings directory
in order to resolve encrypted file access needed for encrypting scripts
on all platforms.
2019-01-10 13:53:12 +02:00
Rémi Verschelde
e5f1d19352 Consistency in resource format saver/loader de-registration
Some used 'is_valid()' checks, others not. Validity is already checked in 'unref()',
and 'remove_resource_format_*()' has an ERR_FAIL condition on 'is_null()' already
(which shouldn't happen since we're only unregistering things that we previously
registered.

Also add missing GDCLASS statement in ResourceFormatLoaderVideoStreamGDNative,
missed in #20552 which was last amended before #19501 was merged.
2019-01-10 12:45:57 +01:00
Rémi Verschelde
940a2c5ec3
Merge pull request #24878 from dragmz/patch-5
Remove vsgdnative loader on exit
2019-01-10 12:28:21 +01:00
Rémi Verschelde
ebfd78ad7f
Merge pull request #24871 from groud/fix_bones_selection
Fixes 2D bones selection
2019-01-10 12:09:24 +01:00
Marcin Zawiejski
7860b74b0f
Remove vsgdnative loader on exit 2019-01-10 07:19:16 +01:00
Ignacio Etcheverry
ea85ff0dc2 Fix properties being lost when reloading placeholder GDScript instance
During reloading in `GDScriptLanguage::reload_all_scripts` a placeholder instance that must remain so is replaced with a new placeholder instance. The state is then restored by calling `ScriptInstance::set` for each property. This does not work if the script is missing the properties due to build/parse failing.
The fix for such cases is to call `placeholder_set_fallback` instead of `set` on the script instance.

I took this chance to move the `build_failed` flag from `PlaceHolderScriptInstance` to `Script`. That improves the code a lot. I also renamed it to `placeholder_fallback_enabled` which is a much better name (`build_failed` could lead to misunderstandings).
2019-01-10 01:58:50 +01:00
Rémi Verschelde
f7d2750844 Update AUTHORS and DONORS list
New contributors added to AUTHORS:
@clayjohn, @lupoDharkael, @supagu, @timoschwarzer, @Xrayez

Thanks to all contributors and donors for making Godot possible!

[ci skip]
2019-01-09 21:04:28 +01:00
groud
c48f92e394 Fixes 2D bones selection 2019-01-09 20:55:04 +01:00
Rémi Verschelde
382f0991ee
Merge pull request #24865 from guilhermefelipecgs/hide_error_label
[Regression] Hides error_label of state machine on the first time.
2019-01-09 18:48:25 +01:00
Guilherme Felipe
c7d4807b7b Hides error_panel of state machine on the first time. 2019-01-09 15:16:41 -02:00
Rémi Verschelde
fe8cdafbf4
Merge pull request #20552 from KidRigger/gsoc-peer
Added interface for GDNative Videodecoder.
2019-01-09 17:30:09 +01:00
Rémi Verschelde
7d46dbb553
Merge pull request #24826 from bojidar-bg/24755-fix-ysort-bug
Fix a nested ysort invalid memory read again
2019-01-09 14:15:06 +01:00
Rémi Verschelde
99757591c4
Merge pull request #24863 from akien-mga/travis-osx-scons-pip
Travis: Use pip to install SCons on OSX
2019-01-09 14:02:28 +01:00
Rémi Verschelde
ffc0792798 Travis: Use pip to install SCons on OSX
Not sure why we switched from homebrew to scons-local anymore,
but pip should work just fine and is recommended by upstream.

Downloads of scons-local from SourceForge were quite iffy, so
this should help avoid CI errors due to not having downloaded
SCons successfully.

Setting Python's user binary PATH seems necessary on Travis/OSX
as per travis-ci/travis-ci#5030 (confirmed that 'scons' is not
in PATH without it).
2019-01-09 13:39:46 +01:00
Bojidar Marinov
d1406bfeb4
Fix a nested ysort invalid memory read again
Fixes #24755
2019-01-09 14:22:54 +02:00
Rémi Verschelde
5f0e3b6849
Merge pull request #24858 from volzhs/animation-transition
AnimationNodeTransition name begins from 0
2019-01-09 13:06:45 +01:00
Rémi Verschelde
26606dd0fa
Merge pull request #24857 from x2f/patch-1
Fix "Whole Words" and "Match Cases" checkbox behavior in "Find in Files"
2019-01-09 13:02:41 +01:00
Rémi Verschelde
bdfbe58ea6
Merge pull request #24851 from bruvzg/ime_focus_fix
Update IME text only for focused input controls.
2019-01-09 12:13:54 +01:00
Rémi Verschelde
e8f73d8c4c
Merge pull request #24842 from volzhs/fix-node-name-serial
Fix strip out spaces while generating serial number for node name
2019-01-09 12:13:06 +01:00
Rémi Verschelde
08fe57dcee
Merge pull request #24855 from hpvb/disable-ffast-math
Don't use -ffast-math or other unsafe math optimizations
2019-01-09 10:49:41 +01:00
volzhs
153a3146d0 AnimationNodeTransition name begins from 0
and added "state" string for default name not to confuse it as number
2019-01-09 14:44:41 +09:00
x2f
b50fa06c6d
Fix for issue #24810 (find in files logic)
Match case check box was used for whole words as well as match case.
2019-01-09 00:23:46 -05:00
Hein-Pieter van Braam
e5b335d367 Don't use -ffast-math or other unsafe math optimizations
Godot supports many different compilers and for production releases we
have to support 3 currently: GCC8, Clang6, and MSVC2017. These compilers
all do slightly different things with -ffast-math and it is causing
issues now. See #24841, #24540, #10758, #10070. And probably other
complaints about physics differences between release and release_debug
builds.

I've done some performance comparisons on Linux x86_64. All tests are
ran 20 times.

Bunnymark: (higher is better)
(bunnies)    min    max  stdev average
fast-math   7332   7597    71     7432
this pr     7379   7779   108     7621 (102%)

FPBench (gdscript port http://fpbench.org/) (lower is better)
(ms)
fast-math  15441  16127   192    15764
this pr    15671  16855   326    16001  (99%)

Float_add (adding floats in a tight loop) (lower is better)
(sec)
fast-math   5.49   5.78  0.07     5.65
this pr     5.65   5.90  0.06     5.76  (98%)

Float_div (dividing floats in a tight loop) (lower is better)
(sec)
fast-math  11.70  12.36  0.18    11.99
this pr    11.92  12.32  0.12    12.12  (99%)

Float_mul (multiplying floats in a tight loop) (lower is better)
(sec)
fast-math  11.72  12.17  0.12    11.93
this pr    12.01  12.62  0.17    12.26  (97%)

I have also looked at FPS numbers for tps-demo, 3d platformer, 2d
platformer, and sponza and could not find any measurable difference.

I believe that given the issues and oft-reported (physics) glitches on
release builds I believe that the couple of percent of tight-loop
floating point performance regression is well worth it.

This fixes #24540 and fixes #24841
2019-01-09 02:06:13 +01:00
Juan Linietsky
e46f28e02d Removed splits in Polygon editor, replace by internal vertices and polygon support. 2019-01-08 19:11:08 -03:00
bruvzg
55bc004a73
Update IME text only for focused input controls. 2019-01-08 22:52:56 +02:00
volzhs
799ed2b989 Fix strip out spaces while generating serial number for node name 2019-01-08 22:37:45 +09:00
Rémi Verschelde
d8c40bccbb
Merge pull request #24831 from clayjohn/fix_nested_docs_tooltip
Make tooltips display for nested resources
2019-01-08 09:11:03 +01:00
Rémi Verschelde
d23bce3ef2
Merge pull request #24828 from Calamander/patch-1
RandomPCG randf/randd functions typos fix
2019-01-08 09:04:58 +01:00
clayjohn
9d162f9fbe make tooltips display for subinspectors 2019-01-07 20:38:03 -08:00
Hein-Pieter van Braam
f7de2c0cb3
Merge pull request #24830 from hpvb/fix-24752v2
Use 'release_debug' for mono export templates
2019-01-08 01:48:12 +01:00
Hein-Pieter van Braam
ee0c4a97b3 Use 'release_debug' for mono export templates
This fixes the previously wrong PR

Because we don't actually ship 'debug' templates to users make sure
the mono exporter picks the correct 'data' directory for export
templates.

This fixes #24752
2019-01-08 01:44:54 +01:00
Calamander
64e584a97e
Update random_pcg.h
little fix to function types
2019-01-07 23:13:16 +01:00
Rémi Verschelde
e4b02513fe
Merge pull request #24301 from marcelofg55/default_device_pulseaudio
PulseAudio driver will now change the device if the default system device changes
2019-01-07 20:10:50 +01:00
Rémi Verschelde
270eae0a05
Merge pull request #24823 from ibrahn/fix-string-lrstrip-2
Repair String lstrip and rstrip.
2019-01-07 19:58:36 +01:00
Hein-Pieter van Braam
f8eaa2fc59
Merge pull request #24824 from hpvb/fix-24752
Use 'release_debug' for mono export templates
2019-01-07 19:49:22 +01:00
Hein-Pieter van Braam
dd766bae78 Use 'release_debug' for mono export templates
Because we don't actually ship 'debug' templates to users make sure
the mono exporter picks the correct 'data' directory for export
templates.

This fixes #24752
2019-01-07 18:19:35 +00:00
Ibrahn Sahir
cbb396c006 Repair String lstrip and rstrip.
Background: lstrip and rstrip were broken by changes to String in:
0e29f7974b
which removed it's access to Vector::find(CharType).

Moved Vector's find up into CowData so it can be shared by Vector and String.
Added String::find_char using CowData::find.
Implemented rstrip and lstrip using find_char.
Added a few tests for String rstrip and lstrip.
2019-01-07 17:34:44 +00:00
Rémi Verschelde
bcecf56267 Bump version to 3.1-beta
Release freeze is now active, only major bug fixes will be considered.
2019-01-07 17:13:59 +01:00
Rémi Verschelde
ac8ae09bc3 i18n: Sync translation template with current source
Misc fixes to source strings.
2019-01-07 16:57:52 +01:00
Rémi Verschelde
d2b17d8d60 i18n: Sync translations with Weblate 2019-01-07 16:42:05 +01:00
Rémi Verschelde
db33b03f49
Merge pull request #24814 from YeldhamDev/animtree_editor_statemach_scrolls
Move scrolls in the StateMachine editor inside the panel
2019-01-07 15:11:05 +01:00
Rémi Verschelde
2e8ca4710a
Merge pull request #24807 from guilhermefelipecgs/fix_state_machine_scroll
Fix state machine scroll
2019-01-07 15:10:53 +01:00
Rémi Verschelde
dab650fcaa
Merge pull request #24740 from OBKF/update-bullet-physics
Update Bullet physics to commit 126b676
2019-01-07 15:08:41 +01:00
Juan Linietsky
a3a537c2cf Fix background color rendering on GLES2 (linear should not be used) 2019-01-07 10:52:24 -03:00
Oussama
22b7c9dfa8 Update Bullet to the latest commit 126b676 2019-01-07 12:30:35 +01:00
clayjohn
a6722cf362 clarified and filled out particles material doc 2019-01-07 12:26:36 +01:00
Rémi Verschelde
a15620c83e doc: Fix wrong references found by Sphinx and new makerst.py 2019-01-07 12:15:01 +01:00
Rémi Verschelde
698728f1c2
Merge pull request #24640 from PJB3005/18-12-28-makerst-2
makerst.py refactor.
2019-01-07 10:11:54 +01:00
Rémi Verschelde
26fddb77be doc: Fix wrong references found by new makerst.py
Thanks @PJB3005
2019-01-07 10:06:12 +01:00