aboutsummaryrefslogtreecommitdiff
path: root/modules
Commit message (Collapse)AuthorAgeFilesLines
* added an optional parameter to OS symbol lookupKarroffel2017-07-272-3/+6
| | | | | | | | 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.
* [NativeScript] call _init on instance creationKarroffel2017-07-272-3/+45
| | | | | This also adds basic locking for the set of owners to avoid threading problems
* Merge pull request #9882 from endragor/nativescript-refcountThomas Herzog2017-07-262-0/+25
|\ | | | | Forward refcount changes to NativeScriptInstance
| * Forward refcount changes to NativeScriptInstanceRuslan Mustakov2017-07-262-0/+25
| | | | | | | | | | | | 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.
* | Merge pull request #9883 from bojidar-bg/8217-fixup-get_node-shortcutRémi Verschelde2017-07-261-1/+2
|\ \ | | | | | | Fix $a/b being parsed as division
| * | Fix $a/b being parsed as divisionBojidar Marinov2017-07-261-1/+2
| |/
* | Merge pull request #9867 from endragor/nativescript-threadingThomas Herzog2017-07-263-38/+211
|\ \ | | | | | | Support multithreading for NativeScriptLanguage
| * | Support multithreading for NativeScriptLanguageRuslan Mustakov2017-07-263-38/+211
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | Merge pull request #9720 from endragor/stack-bottomThomas Herzog2017-07-262-0/+9
|\ \ | |/ |/| Add a way to retrieve stack bottom of the main thread
| * Add a way to retrieve stack bottom of the main threadRuslan Mustakov2017-07-252-0/+9
| | | | | | | | | | | | | | | | | | 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.
* | Fix typo in NativeScript property gettersheepandshepherd2017-07-251-1/+1
| |
* | Merge pull request #9731 from Xrayez/gdscript-completionRémi Verschelde2017-07-252-3/+3
|\ \ | | | | | | Update GDScript completion names for Pool*Arrays
| * | Update GDScript completion names for Pool*ArraysAndrii Doroshenko (Xrayez)2017-07-252-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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!
* | | fix a regression (GDScript) from e00630bKarroffel2017-07-252-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | Merge pull request #9844 from karroffel/nativescript-double-init-fixThomas Herzog2017-07-252-2/+10
|\ \ \ | |/ / |/| | [NativeScript] fix double initialization in editor
| * | [NativeScript] fix double initialization in editorKarroffel2017-07-252-2/+10
| | |
* | | Merge pull request #8217 from bojidar-bg/gdscript-fix-keyword-callRémi Verschelde2017-07-253-141/+263
|\ \ \ | |/ / |/| | Make GDScript allow some keywords as identifiers
| * | Make GDScript allow some keywords as identifiersBojidar Marinov2017-07-233-141/+263
| | | | | | | | | | | | | | | Fixes #8085 Added some comments around the use of is_token_literal, as discussed.
* | | [NativeScript] bound `new` to ClassDBKarroffel2017-07-251-0/+2
| | |
* | | [GDNative] basic OS detectionKarroffel2017-07-241-2/+11
| | |
* | | GDNative register_propertyRamesh Ravone2017-07-241-0/+1
| | |
* | | Merge pull request #9814 from karroffel/nativescript-doublefreeThomas Herzog2017-07-242-3/+3
|\ \ \ | | | | | | | | [NativeScript] forgot to uncomment userdata return
| * | | [NativeScript] forgot to uncomment userdata returnKarroffel2017-07-242-3/+3
| | | |
* | | | Merge pull request #9809 from karroffel/nativescript-doublefreeThomas Herzog2017-07-241-35/+1
|\| | | | | | | | | | | [NativeScript] fix double free but on exit
| * | | [NativeScript] fix double free but on exitKarroffel2017-07-241-35/+1
| | |/ | |/|
* | | Merge pull request #9764 from Noshyaar/pr-fix2Rémi Verschelde2017-07-242-7/+7
|\ \ \ | |/ / |/| | Add object type hint for docs
| * | Add object type hint for docsPoommetee Ketson2017-07-232-9/+9
| | |
* | | [GDNative] new GDNative APIKarroffel2017-07-2450-2005/+2542
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | Merge pull request #9765 from Noshyaar/pr-clangRémi Verschelde2017-07-237-7/+7
|\ \ \ | | | | | | | | Clang-formatting *.cpp and *.h (some files excluded)
| * | | Clang-formatting *.cpp and *.h (some files excluded)Poommetee Ketson2017-07-229-9/+9
| |/ /
* | | Merge pull request #9758 from vnen/fix-vs-returnRémi Verschelde2017-07-231-3/+3
|\ \ \ | | | | | | | | VS: Fix return value for user-defined functions
| * | | VS: Fix return value for user-defined functionsGeorge Marques2017-07-221-3/+3
| |/ /
* | | Merge pull request #9741 from vnen/fix-vs-customnodeRémi Verschelde2017-07-232-3/+13
|\ \ \ | | | | | | | | Fix issues with custom nodes in visual script
| * | | Update a VS custom node when its script changesGeorge Marques2017-07-212-0/+9
| | | |
| * | | Fix issues with custom nodes in visual scriptGeorge Marques2017-07-211-3/+4
| |/ / | | | | | | | | | | | | - Doesn't crash anymore. - Inputs are properly transferred.
* | | Merge pull request #9706 from djrm/theme_fixesRémi Verschelde2017-07-231-4/+1
|\ \ \ | |_|/ |/| | Icons can now be added inside line edits (Search icon).
| * | Icons can now be added inside line edits (Search icon).Daniel J. Ramirez2017-07-191-4/+1
| | | | | | | | | | | | | | | | | | Fixed window title bar margins. fixed compilation error
* | | gdnative bug fix in get (return null check)Ramesh Ravone2017-07-221-2/+5
| |/ |/|
* | -Renamed GlobalConfig to ProjectSettings, makes more sense.Juan Linietsky2017-07-1913-49/+49
| | | | | | | | -Added system for feature overrides, it's pretty cool :)
* | Merge pull request #9699 from RameshRavone/masterThomas Herzog2017-07-192-0/+64
|\ \ | | | | | | [gdnative] `Object::_get` return type and dynamic property
| * | [GDNative] dynamic propertiesRamesh Ravone2017-07-191-0/+62
| | |
| * | _get return type fixRamesh Ravone2017-07-181-0/+2
| |/
* / Add object type hint for docsPoommetee Ketson2017-07-192-4/+4
|/
* -Reorganized all properties of project settings (Sorry, Again).Juan Linietsky2017-07-172-2/+2
| | | | | (Lot's of bloat accumulated, so it was time for clean up.) -Made EditorSettings and ProjectSettings search more useful (search in sections too)
* Merge pull request #9652 from djrm/theme_fixesRémi Verschelde2017-07-171-3/+4
|\ | | | | Improvements and fixes for the default theme.
| * Improvements and fixes for the default theme.Daniel J. Ramirez2017-07-161-3/+4
| | | | | | | | Added customizable border size and window highlight.
* | Many fixes to improve GI Probe qualityJuan Linietsky2017-07-151-0/+1
| |
* | Expose Dictionary::next to GDNativesheepandshepherd2017-07-152-1/+9
|/
* Some more typo fixes for "threshold"Rémi Verschelde2017-07-151-4/+4
| | | | Looks like @reduz really does not like that word.
* [#7212] Fixed missing 'Variant' return values in documentation.ducdetronquito2017-07-111-1/+1
|