Thomas Herzog
1536cc4381
Merge pull request #9633 from ducdetronquito/gdnative_string_api
...
[GDNative] Implement String API.
2017-08-09 04:44:22 +02:00
ducdetronquito
0b55363a82
Implemented String C API.
2017-08-08 23:42:54 +02:00
Marcelo Fernandez
077ed98c92
Fix crash when running a game with the profiler enabled
2017-08-08 18:02:45 -03:00
Juan Linietsky
8a4bce6ebd
Ability to set a function as sequenced, so when called you can choose not to use sequence ports. Fixes #6346
2017-08-08 13:14:36 -03:00
Juan Linietsky
95f10c620d
push variable later when created, to avoid self-referencing as a valid case, closes #6111
2017-08-08 11:44:49 -03:00
Juan Linietsky
fab75bce3f
Properly rename visual script functions, fixed #6076
2017-08-08 11:32:09 -03:00
Juan Linietsky
c6120e77a8
Implement len() gdscript built-in function for python users, closes #1960
2017-08-07 18:38:47 -03:00
Indah Sylvia
5ae78fdf6a
Makes all Godot API's methods Lower Case
2017-08-07 18:24:35 +07:00
Juan Linietsky
37adf936ab
few bugs fixed thanks to explicit bool constructor and clang.
...
explicit bool constructor has thus now been removed, as it served it's mission!
2017-08-05 21:43:10 -03:00
Karroffel
76ce18c290
[GDNative] fixed double variant call
...
This bug got discovered thanks to clang!
2017-08-06 02:04:06 +02:00
Juan Linietsky
cfe4b30941
renamed node path, closes #5691
2017-08-05 09:13:59 -03:00
Ruslan Mustakov
d71171026f
Dont call nativescript callbacks if lib is not initialized
2017-08-04 21:17:33 +07:00
Thomas Herzog
211dfa6602
Merge pull request #10072 from karroffel/gdnative-header-include-paths
...
[GDNative] fixed a bug with ambiguous include paths
2017-08-04 04:06:54 +02:00
Karroffel
ab3b1e67c7
[GDNative] fixed a bug with ambiguous include paths
...
fixes #10071 . The problem is that the json.h file includes the
local variant.h instead of the "absolute" core/variant.h
2017-08-04 03:26:32 +02:00
Thomas Herzog
056b5f9e56
Merge pull request #10060 from endragor/nativescript-frame
...
Forward frame call to GDNative libraries
2017-08-03 13:52:44 +02:00
Ruslan Mustakov
aaf84129db
Forward frame call to GDNative libraries
2017-08-03 14:04:04 +07:00
Karroffel
c143f86968
[GDNative/NativeScript] fix -rdynamic and removed _init call
...
The _init call was buggy anyway and in the end shouldn't be a
thing that's called via ClassDB, it should be something that's
language specific, so we leave this out for the bindings.
In the commit 66a7763
the SCsub file for GDNative was changed to
use a cloned environment, that bricked -rdynamic which needs to be
passed down to the linker, which didn't happen with the new env.
2017-08-02 14:21:12 +02:00
Karroffel
880048377d
[GDNative] better header include paths
...
The old include paths caused some problems on some compilers, for
example including "string.h" was ambiguous.
2017-08-02 03:50:33 +02:00
Rémi Verschelde
93c226f7a3
Merge pull request #9964 from supagu/audio_fix
...
Fixed AudioStreamPlaybackOGGVorbis::_mix_internal getting stuck in in…
2017-07-30 20:59:45 +02:00
Karroffel
fc9f5d59b5
[NativeScript] fix signals from base class not being accessible
...
https://github.com/GodotNativeTools/cpp_bindings/issues/26
2017-07-30 15:04:00 +02:00
Fabian Mathews
207f596e69
Fixed AudioStreamPlaybackOGGVorbis::_mix_internal getting stuck in infinite loop causing audio to freeze
2017-07-29 18:59:51 +09:30
Ruslan Mustakov
3193460c4a
Pass GDNativeLibrary pointer to library init
2017-07-28 22:43:23 +07:00
Rémi Verschelde
204ec5459b
Merge pull request #9932 from djrm/vs_fixes
...
Do not allow multiple data connections to the same data input slot, f…
2017-07-28 11:15:56 +02:00
Daniel J. Ramirez
707bb96fa8
Do not allow multiple data connections to the same data input slot, fixes #6357.Improved curve rendering when nodes are close.
2017-07-27 16:39:53 -05:00
Karroffel
3185c9c374
[NativeScript] fixed optional _init call
...
In 3c53b35
a call to an "_init" function was introduced,
that however was only executed in the `_new` function,
also it *required* that such a function exists.
With this patch the "_init" function will be optionally called on
every instance creation.
2017-07-27 15:30:39 +02:00
Karroffel
aae8accadd
[NativeScript] fix mutex double lock
...
In 3c53b35
a bug got introduced where a mutex gets locked twice
instead of locked and then unlocked.
This path fixes that.
2017-07-27 14:56:47 +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
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
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
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
sheepandshepherd
bdf2e8c615
Fix typo in NativeScript property getter
2017-07-25 23:03:39 +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
Karroffel
5319098aef
fix a regression (GDScript) from e00630b
...
This removes `not` from the variable safe list of
keywords.
Before that this was a valid expression:
self.!(some_arg)
The other fix is just a forgotten boolean negation.
2017-07-25 20:01:19 +02:00
Thomas Herzog
497411aa12
Merge pull request #9844 from karroffel/nativescript-double-init-fix
...
[NativeScript] fix double initialization in editor
2017-07-25 18:42:18 +02:00
Karroffel
cdf1212bee
[NativeScript] fix double initialization in editor
2017-07-25 18:18:36 +02:00
Andrii Doroshenko (Xrayez)
72436956dd
Update GDScript completion names for Pool*Arrays
...
Notice: GDScript tokenizer used the old PoolFloatArray name.
Renamed PoolFloatArray to PoolRealArray.
Moved "project_settings.h" down one line to comply with the clang-format rules.
Fixes #9638
Closed pull request #9714 because I messed up with commits, sorry!
2017-07-25 12:14:40 +03: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
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
Karroffel
3f1e75e89c
[NativeScript] bound new
to ClassDB
2017-07-25 00:26:37 +02:00
Karroffel
5e1abaf348
[GDNative] basic OS detection
2017-07-24 22:43:32 +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
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
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
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
Poommetee Ketson
2777f81d29
Add object type hint for docs
2017-07-23 18:57:03 +07:00
Rémi Verschelde
38c471bef6
Merge pull request #9765 from Noshyaar/pr-clang
...
Clang-formatting *.cpp and *.h (some files excluded)
2017-07-23 13:16:48 +02:00
Rémi Verschelde
5fbe4c130d
Merge pull request #9758 from vnen/fix-vs-return
...
VS: Fix return value for user-defined functions
2017-07-23 13:09:12 +02:00
Rémi Verschelde
c669107626
Merge pull request #9741 from vnen/fix-vs-customnode
...
Fix issues with custom nodes in visual script
2017-07-23 13:06:03 +02:00
Rémi Verschelde
e3aa9b5191
Merge pull request #9706 from djrm/theme_fixes
...
Icons can now be added inside line edits (Search icon).
2017-07-23 13:03:53 +02:00
Poommetee Ketson
c7c65ca6ba
Clang-formatting *.cpp and *.h (some files excluded)
2017-07-22 18:14:08 +07:00
George Marques
effceee6ea
VS: Fix return value for user-defined functions
2017-07-22 01:15:55 -03:00
George Marques
19ca9e7810
Update a VS custom node when its script changes
2017-07-21 23:45:57 -03:00
Ramesh Ravone
af8a40e554
gdnative bug fix in get (return null check)
2017-07-22 06:39:03 +05:30
George Marques
3fdf8663f7
Fix issues with custom nodes in visual script
...
- Doesn't crash anymore.
- Inputs are properly transferred.
2017-07-21 00:05:56 -03:00
Juan Linietsky
25678b1876
-Renamed GlobalConfig to ProjectSettings, makes more sense.
...
-Added system for feature overrides, it's pretty cool :)
2017-07-19 17:06:03 -03:00
Daniel J. Ramirez
95f55c8f0d
Icons can now be added inside line edits (Search icon).
...
Fixed window title bar margins.
fixed compilation error
2017-07-19 13:23:16 -05:00
Thomas Herzog
45b498c4e0
Merge pull request #9699 from RameshRavone/master
...
[gdnative] `Object::_get` return type and dynamic property
2017-07-19 13:07:06 +02:00
Ramesh Ravone
535290d2e7
[GDNative] dynamic properties
2017-07-19 05:41:56 +05:30
Poommetee Ketson
49c7620326
Add object type hint for docs
2017-07-19 02:03:34 +07:00
Ramesh Ravone
826c51c70e
_get return type fix
2017-07-18 21:09:46 +05:30
Juan Linietsky
bbada82f80
-Reorganized all properties of project settings (Sorry, Again).
...
(Lot's of bloat accumulated, so it was time for clean up.)
-Made EditorSettings and ProjectSettings search more useful (search in sections too)
2017-07-17 22:18:58 -03:00
Rémi Verschelde
2b8342e308
Merge pull request #9652 from djrm/theme_fixes
...
Improvements and fixes for the default theme.
2017-07-17 22:36:00 +02:00
Daniel J. Ramirez
a3c2d9a6bd
Improvements and fixes for the default theme.
...
Added customizable border size and window highlight.
2017-07-16 13:23:59 -05:00
Juan Linietsky
3da3a36034
Many fixes to improve GI Probe quality
2017-07-15 23:24:37 -03:00
sheepandshepherd
914a68723f
Expose Dictionary::next to GDNative
2017-07-15 23:02:19 +02:00
Rémi Verschelde
e64b82ebfc
Some more typo fixes for "threshold"
...
Looks like @reduz really does not like that word.
2017-07-15 12:01:46 +02:00
ducdetronquito
074801e7a9
[ #7212 ] Fixed missing 'Variant' return values in documentation.
2017-07-11 13:25:51 +02:00
Rémi Verschelde
a5d500f023
Merge pull request #8573 from neikeq/gdfs-completed
...
Adds "completed" signal to GDFunctionState
2017-07-11 11:14:22 +02:00
Juan Linietsky
12a8fedfe6
Some changes to dual paraboloid envmap generation, fixes somme bleeding
2017-07-05 19:39:45 -03:00
Rémi Verschelde
e54c7d5715
Merge pull request #9457 from TwistedTwigleg/Fixed_Vector3_snap
...
Fixed syntax inconsistency in Vector3.snap and Vector3.snapped
2017-07-03 23:43:33 +02:00
TwistedTwigleg
44ecfb028d
Fixed syntax inconsistency in Vector3.snap and Vector3.snapped
2017-07-03 16:29:03 -04:00
Juan Linietsky
2a3e00c8c7
-Many fixes to VisualScript, fixed property names, etc.
...
-Added ability to set/get a field in GetSet, as well as assignment ops
-Added a Select node
-Fixed update bugs related to variable list and exported properties, closes #9458
2017-06-30 21:35:05 -03:00
Rémi Verschelde
cb59236ce9
Disable etc2comp and tinyexr modules on non-tools build
...
They are not necessary in such configuration, and require C++11
and (on Android) the STL.
Fixes #9273 .
2017-06-30 18:16:38 +02:00
Rémi Verschelde
72bf46649e
Merge pull request #9360 from GodotExplorer/pr-external-editor-language-check
...
Better user experience with external text editors.
2017-06-27 08:15:54 +02:00
geequlim
6687484958
Better user expirence with external text editors.
...
Implements open_in_external_editor for subclasses of ScriptLanguage.
Add option 'Debug with external editor' to debug menu to control the behavoir of script opened by editor.
2017-06-27 12:55:16 +08:00
Juan Linietsky
3ce046ee0c
-Fixed SCREEN_TEXTURE and other related 2D shader parameters.
...
-Fixded BackBuffercopy object
2017-06-26 22:58:46 -03:00
Rémi Verschelde
a50fb2f729
Revert "Revert "Fixed RegEx::search missing return type hint""
2017-06-26 22:38:11 +02:00
Juan Linietsky
340c0ba0a0
Revert "Fixed RegEx::search missing return type hint"
2017-06-26 17:36:42 -03:00
Rémi Verschelde
0db10b9992
Merge pull request #9379 from leezh/regex_bind_fix
...
Fixed RegEx::search missing return type hint
2017-06-26 22:33:16 +02:00
Zher Huei Lee
f01ce3276e
Fixed inverted group thrown off by quantifiers
2017-06-26 15:25:10 +08:00
Zher Huei Lee
382db0898e
Fixes RegEx capture grabbing too much #9382
...
Incorrect behaviour was caused when next->test was throwing off the
results.
2017-06-26 15:16:33 +08:00
Zher Huei Lee
1e1b2d22ad
Fixed RegEx::search missing return type hint
2017-06-26 05:52:56 +08:00
Rémi Verschelde
87fd71244b
Merge pull request #9334 from Noshyaar/pr-genh
...
BuildSystem: generated files have .gen.extension
2017-06-25 11:08:36 +02:00
Rémi Verschelde
41bbf106e6
Merge pull request #9349 from volzhs/freetype-2.8
...
Update freetype to 2.8
2017-06-25 10:42:04 +02:00
volzhs
0f8cc0fa5b
Update freetype to 2.8
2017-06-25 10:41:12 +09:00
Poommetee Ketson
e3998528e0
BuildSystem: generated files have .gen.extension
2017-06-25 07:55:01 +07:00
Rémi Verschelde
9c186a754f
Merge pull request #8783 from bojidar-bg/fix-range-loop-type
...
Fix for..in range() resulting in floats instead of ints
2017-06-24 23:39:55 +02:00
Juan Linietsky
00e5ba3143
Remove methods from code completion which are already exposed by properties, makes completion cleaner and more close to the documentation.
2017-06-23 15:10:46 -03:00
Mariano Suligoy
7fe750583e
GdScript: Add signal autocompletion to emit_signal function
2017-06-23 07:51:49 -03:00
Ignacio Etcheverry
07fe7d99ea
Adds completed signal to GDFunctionState
2017-06-23 02:29:23 +02:00
Bojidar Marinov
26a51c3c0b
Reimplement for..in range() so that it always results in ints
...
Fixes #8278 , fixup of bfef8de1bc
2017-06-22 20:41:52 +03:00