Commit Graph

8394 Commits

Author SHA1 Message Date
Pedro J. Estébanez 6ea233434a Remove ANDROID define
Fixes GDNative build error on Android.

It's also discouraged by Google to rely on it. In case someone needs to check, use ``__ANDROID__`` instead, provided by the very same compiler.
2017-07-25 11:08:52 +02:00
Rémi Verschelde 303370d03d Merge pull request #9702 from groud/canvas_editor_update
[WIP] Canvas editor code clean-up (and improvements)
2017-07-25 08:40:39 +02:00
Rémi Verschelde e00630bfca Merge pull request #8217 from bojidar-bg/gdscript-fix-keyword-call
Make GDScript allow some keywords as identifiers
2017-07-25 08:18:10 +02:00
Rémi Verschelde 5a251d0d5c Merge pull request #9833 from RandomShaper/fix-node-crash
Fix Node::move_child() crash if moving to the end plus one
2017-07-25 08:12:21 +02:00
Rémi Verschelde f981829749 Merge pull request #9830 from RandomShaper/fix-9692
Fix crash in Space2DSW::test_body_motion()
2017-07-25 08:11:17 +02:00
Rémi Verschelde 233baf9208 Merge pull request #9827 from sowfelicity/master-clipboard
Workaround to allow pasting unicode characters from X selection.
2017-07-25 08:09:56 +02:00
Ruslan Mustakov 3b88476130 Add a way to retrieve stack bottom of the main thread
I'm working on Nim bindings and Nim GC needs to know the stack
boundaries to check whether certain pointers are located on the stack
or in the heap. This commit adds godot_get_stack_bottom procedure
to gdnative module which returns pointer to the stack bottom of the
main thread. Later on this may be improved to return stack bottom of
the current thread.
2017-07-25 10:53:31 +07:00
Pedro J. Estébanez 6c1b7fd899 Fix Node::move_child() crash if moving to the end plus one
Fixes #9820.
2017-07-25 05:20:30 +02:00
Pedro J. Estébanez ac2c5e8dcd Add missing initializers 2017-07-25 04:45:01 +02:00
Pedro J. Estébanez bc1d58c50d Extend check for same space to all 2D/3D bodies/shapes 2017-07-25 04:45:01 +02:00
Pedro J. Estébanez 507b48179f Fix 2D broadphase remove-while-iterating logic 2017-07-25 04:45:01 +02:00
Pedro J. Estébanez fa1049b46b Fix early-accepting area-area match when masks don't match 2017-07-25 04:45:01 +02:00
Pedro J. Estébanez b4129df96c Fix crash in Space2DSW::test_body_motion()
Fixes #9692.
2017-07-25 03:57:11 +02:00
Jia Wang 2f5b7f8777 Workaround to allow pasting unicode characters from X selection.
Fixes #2491.
Fixes #9787.
2017-07-25 08:00:48 +08:00
Pedro J. Estébanez 27637b9e7f Improve/add atomics
- Remove use of non-builtin overloaded `InterlockedExhangeSubtract()` for Windows. Moreover, it was wrongly being used as if it hadn't a 64-bit version instead of being overloaded.
- Implement exchange-if-greater (as a CAS loop).
2017-07-25 01:49:22 +02:00
BastiaanOlij 3bfdc583cb Fixed setting our system_fbo framebuffer 2017-07-25 08:29:48 +10:00
Thomas Herzog 91bb4952e4 Merge pull request #9822 from karroffel/nativescript-doublefree
[NativeScript] bound ` to ClassDB
2017-07-25 00:27:21 +02:00
Karroffel 3f1e75e89c [NativeScript] bound `new` to ClassDB 2017-07-25 00:26:37 +02:00
Juan Linietsky e15a0c5243 Merge pull request #9712 from BastiaanOlij/fix_checking_framebuffer
add missing framebuffer check
2017-07-24 18:37:14 -03:00
Rémi Verschelde bf8119f966 Merge pull request #9746 from Noshyaar/label
Label: add auto_height
2017-07-24 23:05:05 +02:00
Thomas Herzog 4b3fd59951 Merge pull request #9821 from karroffel/nativescript-doublefree
[GDNative] basic OS detection
2017-07-24 22:48:04 +02:00
Karroffel 5e1abaf348 [GDNative] basic OS detection 2017-07-24 22:43:32 +02:00
Rémi Verschelde 0a74fb625e Merge pull request #9791 from bojidar-bg/6087-add-global-local-conv
Add .to_local/.to_global methods on Node2D and Spatial
2017-07-24 22:24:34 +02:00
Rémi Verschelde e6336a52a8 Merge pull request #9808 from MednauN/master
Fix switching SRGB extension happen before binding of texture
2017-07-24 22:22:06 +02:00
Rémi Verschelde 95c49b61b5 Merge pull request #9819 from kubecz3k/collisionobj-shape-api
expose missing CollisionShape API for CollisionObject
2017-07-24 22:13:27 +02:00
Jakub Grzesik 567cbfcceb expose missing CollisionShape API for CollisionObject 2017-07-24 20:29:49 +02:00
Thomas Herzog be578a1b3e Merge pull request #9817 from RameshRavone/patch-2
GDNative register_property
2017-07-24 20:09:26 +02:00
Ramesh Ravone 75b66146ae
GDNative register_property 2017-07-24 22:30:07 +05:30
Thomas Herzog 008b20bd8f Merge pull request #9814 from karroffel/nativescript-doublefree
[NativeScript] forgot to uncomment userdata return
2017-07-24 17:25:57 +02:00
Karroffel 41eb8a0279 [NativeScript] forgot to uncomment userdata return 2017-07-24 16:36:26 +02:00
Thomas Herzog d0f1940534 Merge pull request #9809 from karroffel/nativescript-doublefree
[NativeScript] fix double free but on exit
2017-07-24 14:37:39 +02:00
Karroffel a1a76bbde4 [NativeScript] fix double free but on exit 2017-07-24 14:07:39 +02:00
Evgeny Zuev 4ed6e4a70e Fix switching SRGB extension happen before binding of texture
Previously, texture parameter `_TEXTURE_SRGB_DECODE_EXT` was changed
before the call of `glBindTexture`, which caused modification of previously
bound texture instead of desired one. Now it's changed after `glBindTexture`.
2017-07-24 18:25:55 +07:00
Rémi Verschelde 042bfabd8f Merge pull request #9807 from Noshyaar/pr-df
EditorNode: fix missing distraction-free tooltip
2017-07-24 08:30:13 +02:00
Poommetee Ketson 24329155eb EditorNode: fix missing distraction-free tooltip 2017-07-24 13:07:53 +07:00
Rémi Verschelde 374cffaa11 Merge pull request #9764 from Noshyaar/pr-fix2
Add object type hint for docs
2017-07-24 08:07:32 +02:00
Rémi Verschelde 574ec97b8b Merge pull request #9802 from vnen/fix-uwp-build
UWP: Fix build issue caused by atomic operations
2017-07-24 08:07:08 +02:00
Thomas Herzog b31973b64d Merge pull request #9804 from karroffel/gdnative-rewrite
[GDNative] new GDNative API
2017-07-24 04:51:34 +02:00
Karroffel 534d62d2f4 [GDNative] new GDNative API
This adds GDNative as a separate class type.
It can be used to interface with native libraries by
using "native calls", which can be registered by modules
(and in future other GDNative libraries?).

It also reworks the currently called "GDNativeScript" into a
"NativeScript" that just makes use of the new GDNative instead
of it being the component that implements that functionality.
2017-07-24 04:23:37 +02:00
George Marques f514fabf61
UWP: Fix build issue caused by atomic operations 2017-07-23 21:29:01 -03:00
Juan Linietsky 85aa0adeef small grammar fix 2017-07-23 18:55:08 -03:00
Juan Linietsky 66009706c9 -Ability to set default import presets for type
-More presets for scene importer
-Option in scene importer to export root nodes as separate scenes
-Fixed MeshInstance preview
2017-07-23 18:50:25 -03:00
Bojidar Marinov 1936e1d2be
Make GDScript allow some keywords as identifiers
Fixes #8085
Added some comments around the use of is_token_literal, as discussed.
2017-07-23 23:34:31 +03:00
Rémi Verschelde 380eae2cc0 Merge pull request #9795 from marcelofg55/master
Fix Right-Click (Ctrl-Click) on OS X
2017-07-23 18:26:21 +02:00
Rémi Verschelde 380e2b9692 Merge pull request #9794 from Noshyaar/pr-impd
Suppress get_edited_scene_root error
2017-07-23 18:23:06 +02:00
Marcelo Fernandez 2c27501c3f Fix Right-Click (Ctrl-Click) on OS X 2017-07-23 12:45:59 -03:00
Juan Linietsky cf286ed287 Requesting for dictionary keys also respects insertion order, closes #9161 2017-07-23 12:24:03 -03:00
Poommetee Ketson a572eb6453 Suppress get_edited_scene_root error 2017-07-23 22:11:34 +07:00
Thomas Herzog 9e483604a5 Merge pull request #9718 from endragor/ptrcall-fixes
Use specific size for numeric types in ptrcall
2017-07-23 16:35:10 +02:00
Poommetee Ketson 2777f81d29 Add object type hint for docs 2017-07-23 18:57:03 +07:00