Commit graph

8150 commits

Author SHA1 Message Date
Thomas Herzog
3c53b3560f Merge pull request #9907 from karroffel/nativescript-init-call
NativeScript changes and OS symbol lookup optional error handling
2017-07-27 13:03:10 +02:00
Karroffel
135c2112ad added an optional parameter to OS symbol lookup
When looking up a symbol from a library, previously an error was
shown when the symbol did not exist. That caused confusion when the
lookup was completely optional.
This adds a new parameter to that method so that those errors can
be handled manually if needed.
2017-07-27 11:13:21 +02:00
Karroffel
a2795e9531 [NativeScript] call _init on instance creation
This also adds basic locking for the set of owners
to avoid threading problems
2017-07-27 11:12:49 +02:00
Poommetee Ketson
8350e4853e ThemeEditor: fix broken dialog 2017-07-27 14:17:02 +07:00
bruvzg
3220fee6b2 Fix is_window_fullscreen() and set_window_fullscreen() behaviour after window has entered/left full-screen mode via green zoom button.
Fix get/set_current_screen & set_window_maximized.
2017-07-27 10:05:33 +03:00
bruvzg
f98a203377 Add macOS main menu 2017-07-27 10:05:29 +03:00
Rémi Verschelde
411f09a512 Merge pull request #9887 from StraToN/power-fix-x11
Fix power management on x11 platform and removes explicit NULL pointer dereference
2017-07-27 08:53:27 +02:00
Rémi Verschelde
6645c7cc18 Merge pull request #9872 from bruvzg/3.0-num-enter-fix
Remove duplicate keycode constant for Numpad Enter key (3.0)
2017-07-27 08:52:52 +02:00
Rémi Verschelde
7c4a5f1392 Merge pull request #9870 from Noshyaar/pr-fixsave
Fix !save_each_scene saving scenes with no filename
2017-07-27 08:52:34 +02:00
Rémi Verschelde
a6d67b89b0 Merge pull request #9869 from BastiaanOlij/add_features_ios
Added export features for image formats
2017-07-27 08:52:20 +02:00
Rémi Verschelde
f5c3ee595d Merge pull request #9852 from groud/canvas_editor_update
Some more CanvasItemEditor improvements
2017-07-27 08:52:07 +02:00
Rémi Verschelde
fec5157df5 Merge pull request #9904 from Noshyaar/pr-off
PropertyEditor: display "Off" if property is false
2017-07-27 08:46:44 +02:00
Poommetee Ketson
5adb94e726 PropertyEditor: display "Off" if property is false 2017-07-27 13:12:28 +07:00
Rémi Verschelde
c8c9bcb451 Merge pull request #9900 from Zylann/fix_freelook_shortcuts
Initialize freelook shortcuts properly
2017-07-27 07:56:34 +02:00
Marc Gilleron
754679da0a Initialize freelook shortcuts properly 2017-07-27 04:00:23 +02:00
Pedro J. Estébanez
9aecc83cda Merge pull request #9892 from RandomShaper/fix-err-format
Fix misplaced quote in error messsage
2017-07-27 01:29:22 +02:00
Pedro J. Estébanez
748240b090 Fix misplaced quote in error messsage 2017-07-27 01:26:30 +02:00
Julian Murgia
71dcb7fcc4 Fixes power management on x11 platform and removes explicit NULL pointer dereference. 2017-07-26 23:29:51 +02:00
Thomas Herzog
18e23ad4dc Merge pull request #9882 from endragor/nativescript-refcount
Forward refcount changes to NativeScriptInstance
2017-07-26 21:29:26 +02:00
Rémi Verschelde
88bd18244b Merge pull request #9883 from bojidar-bg/8217-fixup-get_node-shortcut
Fix $a/b being parsed as division
2017-07-26 18:17:51 +02:00
Bojidar Marinov
a5fb82c28c
Fix $a/b being parsed as division 2017-07-26 18:51:03 +03:00
Ruslan Mustakov
db9dcbddbc Forward refcount changes to NativeScriptInstance
This also changes Reference::unreference() to always invoke
refcount_decremented. Previously it was not invoked until the count
reached zero due to short-circuit evalution of boolean expressions.
2017-07-26 22:36:57 +07:00
Pedro J. Estébanez
1619aabfe1 Fix mutating project.godot
Namely:
- comment block lost on first save;
- config_version doubled as 3 and null on second save;
- format change on first save.
2017-07-26 16:13:38 +02:00
Thomas Herzog
2b99bd492b Merge pull request #9867 from endragor/nativescript-threading
Support multithreading for NativeScriptLanguage
2017-07-26 16:01:43 +02:00
Thomas Herzog
9caf9fa76f Merge pull request #9720 from endragor/stack-bottom
Add a way to retrieve stack bottom of the main thread
2017-07-26 15:30:04 +02:00
bruvzg
1c1565d0f9 Improved macOS window resizing behaviour. 2017-07-26 16:29:48 +03:00
Rémi Verschelde
668f4f437f Merge pull request #9873 from Noshyaar/pr-prop
Fix various property not found errors
2017-07-26 15:20:15 +02:00
Poommetee Ketson
0154098531 Fix various property not found errors 2017-07-26 20:03:13 +07:00
Ruslan Mustakov
7f32023a1a Support multithreading for NativeScriptLanguage
Godot may call property setters from non-main thread when an object is
loaded in the edtior. This means NativeScriptLanguage could be accessed
from different threads, but it was not designed for thread-safety.
Besides, previous behaviour made it so that godot_nativescript_init and
godot_gdnative_init could be invoked from non-main thread, while
godot_gdnative_thread is always invoked on the main thread. This may
not be expected by the binding library.

This commit defers native library initialization to the main thread and
adds godot_nativescript_thread_enter and godot_nativescript_thread_exit
callbacks to make a binding library aware of foreign threads.
2017-07-26 19:39:10 +07:00
Poommetee Ketson
dd6cb0b404 Fix !save_each_scene saving scenes with no filename
When save_each_scene is false, only scenes that have been saved at
least once are saved. But EditorNode tries to save scenes with no
filename too (they're never saved), so it crashes.
2017-07-26 18:57:34 +07:00
bruvzg
7de7ca8ae4 Remove duplicate keycode constant for Numpad Enter key. 2017-07-26 14:43:02 +03:00
Rémi Verschelde
ccb17c2b27 Merge pull request #9868 from StraToN/docs403-extends-is
Corrects usage of 'is' instead of 'extends' for testing node inheritance

[ci skip]
2017-07-26 13:29:58 +02:00
Julian Murgia
61572a57e9 Corrects usage of 'is' instead of 'extends' for testing node inheritance. 2017-07-26 13:12:44 +02:00
BastiaanOlij
20502d9180 Added features for image formats 2017-07-26 21:01:48 +10:00
Rémi Verschelde
5c3f05a680 Merge pull request #9862 from ISylvox/tagents-to-tangents
Renames tagents to tangents
2017-07-26 10:46:48 +02:00
ISylvox
cefc02a4f9 tagents --> tangents 2017-07-26 15:14:52 +07:00
Rémi Verschelde
f55211ae0d Merge pull request #9823 from BastiaanOlij/ios_fix_framebuffer_order
Fixed setting our system_fbo framebuffer
2017-07-26 07:51:20 +02:00
Rémi Verschelde
8e87d2e32f Merge pull request #9858 from GodotExplorer/pr-fix-texture-button-resize-mode
Fix the resize mode of TextureButton for resource saving
2017-07-26 07:48:09 +02:00
Geequlim
407c082810 Fix the resize mode of TextureButton cannot be saved into resource files. 2017-07-26 13:39:14 +08:00
Rémi Verschelde
edacc986d6 Merge pull request #9857 from marcelofg55/master
Fix cvs files freezing the editor when a double quote is not closed
2017-07-26 07:36:18 +02:00
Juan Linietsky
f5277e347d Fixes to glow and auto exposure, closes #9797, closes #9106 2017-07-26 00:40:32 -03:00
Marcelo Fernandez
2144093fe6 Fix cvs files freezing the editor when a double quote is not closed 2017-07-25 22:38:28 -03:00
Thomas Herzog
d2d48e2a7a Merge pull request #9855 from sheepandshepherd/nativesetter
Fix typo in NativeScript property getter
2017-07-25 23:12:08 +02:00
sheepandshepherd
bdf2e8c615 Fix typo in NativeScript property getter 2017-07-25 23:03:39 +02:00
Rémi Verschelde
be5adec286 Temporarily disable the Asset Library
Currently it features only plugins for Godot 2.1.x, we need #7147 fixed
to be able to propose only 3.0-compatible plugins in the Asset Library.
2017-07-25 22:29:42 +02:00
Gilles Roudiere
ffe2072741 Change the grid offset when the snap is set as relative 2017-07-25 21:10:43 +02:00
Rémi Verschelde
b6665c6c93 Merge pull request #9690 from 648trindade/classref-edit
Improved math functions descriptions and added many AStar descriptions
2017-07-25 21:08:34 +02:00
Rémi Verschelde
a931052c79 Merge pull request #9731 from Xrayez/gdscript-completion
Update GDScript completion names for Pool*Arrays
2017-07-25 21:05:42 +02:00
Rémi Verschelde
e4fe194fe5 Add newline after config_version and fix custom_features hint
Fixes #9818.
2017-07-25 21:02:38 +02:00
Rémi Verschelde
9f768cb519 Make MinGW test less verbose on non-Bash shells
The &> construct seems to be Bash-specific.
Supersedes #9755.
2017-07-25 20:44:44 +02:00