David Saltares
62ba7a1eb0
[DOCS] Document GridMap
...
[ci skip]
2017-10-15 20:38:38 +02:00
Rémi Verschelde
38ba70f2f5
Merge pull request #12069 from Noshyaar/pr-vslerp
...
VisualScript: add inverse_lerp & range_lerp
2017-10-15 20:20:49 +02:00
Thomas Herzog
066d7c37bc
Merge pull request #12105 from BastiaanOlij/arvr_auto_register_gdnative
...
Couple of small changes so our ARVRInterfaceGDNative gets constructed…
2017-10-15 13:08:23 +02:00
Andreas Haas
6d380b04f2
Merge pull request #12100 from Adinimys/master
...
Gave a tooltip to the "In" logic node
2017-10-15 10:57:18 +02:00
BastiaanOlij
c6ce73c680
Couple of small changes so our ARVRInterfaceGDNative gets constructed and registered automatically when a module loads
2017-10-15 12:56:36 +11:00
Karroffel
86de8060a4
remove error message for optional NativeScript symbols
2017-10-15 03:42:52 +02:00
Rémi Verschelde
cd69dcafb7
mono: Request monosgen-2 explicitly via pkg-config
...
Prevents GC mismatch between mono binary and library, fixes #11916 .
2017-10-14 23:54:26 +02:00
Cédric Fuchs
77dd6f37bd
Gave a tooltip to the "In" logic node
2017-10-14 22:13:19 +02:00
RCurtis
7fb57ecbd9
Fixed issue that improperly initialized visual node properties to Nil
2017-10-14 14:55:09 -04:00
Karroffel
e0019453a2
update ARVRInterfaceGDNative to use API struct
2017-10-14 18:18:02 +02:00
Matt Hughes
3edd3cd377
Fix video playback
...
This adds support to
- VideoPlayer
- VideoStreamWebm
- VideoStreamTheora
2017-10-14 23:20:39 +09:00
Karroffel
e568f80e6e
[GDNative] removed native_raw_call
2017-10-14 15:50:55 +02:00
BastiaanOlij
cc37d43f86
Redoing the ARVR GDNative interface as module and tighter implementation
2017-10-14 09:10:18 +11:00
Karroffel
916ee427ff
removed GDNativeClass doc from GDNative module
2017-10-13 15:02:54 +02:00
Poommetee Ketson
efc5209b99
VisualScript: add inverse_lerp & range_lerp
2017-10-13 19:47:07 +07:00
BastiaanOlij
41e70d4192
Move GDNative docs into gdnative folder
2017-10-13 21:54:57 +11:00
Cong
524ffc9712
Use "Command" for OSX in translation strings ( #1619 )
2017-10-13 20:12:58 +11:00
Chaosus
216a8aa643
Added new wrap functions
2017-10-13 11:10:45 +03:00
Ruslan Mustakov
6106fd88d4
Remove junk output
...
Remove several prints that were added for engine debugging, but are
of no use to the end user, and only pollute the editor and game logs.
2017-10-13 12:40:19 +07:00
Rémi Verschelde
b1f2c31a36
doc: Sync classref with current source
...
Ensure that s/fixed_process/physics_process/ is handled properly.
[ci skip]
2017-10-11 23:55:04 +02:00
Ignacio Etcheverry
740ef3dc97
Merge pull request #11954 from neikeq/d
...
Added 'exposed' field to ClassInfo for registered classes
2017-10-11 13:54:34 +02:00
Ignacio Etcheverry
14b9ad1296
Fix wrong array index
2017-10-10 18:29:56 +02:00
Ignacio Etcheverry
18d3ba0c50
Fix getting struct elements from MonoArray ( #11978 )
...
* Fix getting struct elements from MonoArray
* Revert undesired change
2017-10-10 00:25:36 +02:00
Ignacio Etcheverry
9b6f65af82
Mono: Make use of ClassInfo's exposed API
...
- BindingsGenerator only generates exposed classes.
- Fix creation of managed instances of non-exposed classes.
2017-10-09 23:50:06 +02:00
Ignacio Etcheverry
0c2e882210
Adds 'exposed' field to ClassInfo
...
This field represents if the class is exposed to the scripting API.
The value is 'true' if the class was registered manually ('ClassDB::register_*class()'), otherwise it's false (registered on '_post_initialize').
- Added missing registration of classes that are meant to be exposed.
2017-10-09 23:49:17 +02:00
Ferenc Arn
8ddbd19777
Apply a few recent chages in Quat and Basis to their respective Mono counterparts. ( #11899 )
2017-10-09 14:49:53 +02:00
Thomas Herzog
ea37f44ec8
Merge pull request #11950 from sheepandshepherd/gdnative_property_index
...
Include property index in GDNative class API
2017-10-09 13:55:36 +02:00
Rémi Verschelde
30a4882cf8
Merge pull request #11910 from hoelzl/pr-python3-mono-build
...
Fix Python 3 incompatibility in Mono build
2017-10-09 11:00:14 +02:00
Thomas Herzog
dc6bb74c46
Merge pull request #11952 from touilleMan/fix-crash-gdnative
...
[GDnative] fix crash at cleanup time when singleton_gdnatives is not empty
2017-10-09 01:24:21 +02:00
Emmanuel Leblond
6363bcf209
[GDnative] fix crash at cleanup time when singleton_gdnatives is not empty
2017-10-09 00:31:25 +02:00
Ignacio Etcheverry
ff28569d16
Fixed IntPtr unboxing ( #11949 )
...
- Fix boolean never reset to false
- Fix IntPtr unboxing and cleanup
2017-10-09 00:10:54 +02:00
sheepandshepherd
6f3fffecb3
Include property index in GDNative class API
...
Needed by properties that share set/get functions. Fixes #10329 .
2017-10-08 23:57:06 +02:00
Emmanuel Leblond
ce197990bc
[GDnatvie] improve wrapper code generation
2017-10-08 20:51:18 +02:00
Emmanuel Leblond
d17951f57e
[GDnative] Add string_name api
2017-10-08 16:47:10 +02:00
Thomas Herzog
7a58c0f9fb
Merge pull request #11923 from sheepandshepherd/gdnative_api_json_array
...
Store GDNative API in array instead of dictionary
2017-10-08 12:53:48 +02:00
Ignacio Etcheverry
e5ff814243
Merge pull request #11924 from neikeq/b
...
Fix dot separated assembly names confused with file extensions
2017-10-07 22:10:02 +02:00
Ignacio Etcheverry
eb920406ae
Fix dot separated assembly names confused with file extensions
2017-10-07 22:00:35 +02:00
sheepandshepherd
39584f3312
Store GDNative API in array instead of dictionary
2017-10-07 20:17:12 +02:00
Ignacio Etcheverry
5a49106ff4
Merge pull request #11900 from neikeq/a
...
Fix assembly load hooks and sizeof wrong type
2017-10-07 20:12:25 +02:00
Matthias Hoelzl
a6b48c1706
Fix Python 3 incompatibility in Mono build
2017-10-07 15:36:20 +02:00
Rémi Verschelde
84e7bbafb7
Merge pull request #11843 from hoelzl/pr-python3-build
...
Fix Python 3 build
2017-10-07 10:54:58 +02:00
Ignacio Etcheverry
5ab3537179
Fix sizeof wrong type
2017-10-07 04:22:26 +02:00
Ignacio Etcheverry
9eda9be3cf
Fix assembly load hooks
2017-10-07 04:21:55 +02:00
Ignacio Etcheverry
195b12212d
Merge pull request #11896 from neikeq/pr-issue-11892
...
Quote MSBuild arguments
2017-10-07 01:27:06 +02:00
Ignacio Etcheverry
14280ac44b
Quote MSBuild arguments. Fixes #11892
2017-10-07 01:21:11 +02:00
Ignacio Etcheverry
85cc879382
Merge pull request #11894 from neikeq/pr-issue-11834
...
Mono: Make sure editor thread is attached on script reload
2017-10-07 00:47:13 +02:00
Ignacio Etcheverry
fdc3de009c
Mono: Make sure editor thread is attached on script reload
2017-10-07 00:43:02 +02:00
Ignacio Etcheverry
30328e7dfc
Merge pull request #11849 from cart/mono_parent_fields
...
Mono: support exported parent class fields
2017-10-06 22:36:58 +02:00
Andreas Haas
ec2a4da6d6
Merge pull request #11854 from endragor/fix-few-classdb-defs
...
Add NIL_IS_VARIANT usage to few definitions
2017-10-06 13:09:53 +02:00
BastiaanOlij
ce74efacbb
Made a few tweaks to the interface
2017-10-06 20:35:55 +11:00
Carter Anderson
19df296351
get parent class fields when updating a CSharpScript's exports
...
This makes the fields viewable / editable in the inspector
2017-10-05 23:50:48 -07:00
Ferenc Arn
17e89c2c66
Fix mono enabled builds (broken by 3d87b70
).
2017-10-05 22:11:10 -04:00
Juan Linietsky
3d87b70f7a
Added the set/get_setting function in Editor/Project settings. Renamed has() to has_setting. Fixes #11844
2017-10-05 15:34:34 -03:00
Ignacio Etcheverry
928efe06d6
Merge pull request #11845 from neikeq/music-is-overrated
...
- Fixed uninitialized local
- Improved msbuild search on Unix platforms
- Add C# script to csproj when attaching it to an object
2017-10-05 19:42:22 +02:00
Andreas Haas
b9b9a9f86e
Merge pull request #11858 from J08nY/feature/gridmap-used-cells
...
Add GridMap::get_used_cells. Fixes #11857 .
2017-10-05 19:23:04 +02:00
J08nY
16bf0f08ed
Add GridMap::get_used_cells. Fixes #11857 .
2017-10-05 15:34:34 +02:00
Ruslan Mustakov
61ddf52983
Add NIL_IS_VARIANT usage to few definitions
...
The missing usage flag led to GDNative API descriptions containting
arguments with "void" type.
2017-10-05 18:51:22 +07:00
Ignacio Etcheverry
1d309439cb
Uninitialized local and domain finalize fixes
...
- Make sure to run the GC before and after finalizing the scripts domain.
2017-10-05 00:12:36 +02:00
Ignacio Etcheverry
df22bbd7ed
Add C# script to csproj when attaching it to an object
2017-10-05 00:10:51 +02:00
Ignacio Etcheverry
b4d758e067
Add alternative search locations for msbuild
2017-10-05 00:08:38 +02:00
Matthias Hoelzl
727a381fc9
Fix Python 3 build
...
- Take care of the differences in handling unicode characters in
`escape_string` (formerly in `editor/SCsub`, now in `compat.py)`.
- Conditionally include `_winreg` or `winreg` in the Mono editor
module.
2017-10-04 23:21:32 +02:00
Thomas Herzog
454dec2f2f
Merge pull request #11806 from touilleMan/gdnative-version-field
...
[GDnative] add api version field to godot_gdnative_api_struct
2017-10-04 11:57:53 +02:00
Emmanuel Leblond
3e29cb806c
[GDnative] add future-proof next field to godot_gdnative_api_struct (a la Vulkan)
2017-10-04 03:11:41 +02:00
Karroffel
2a4e2b5378
[GDNative] added API struct wrapper generator
...
Previously functions of the GDNative API were accessed by letting
the loader at load-time resolve the symbols. This causes troubles on
Windows (...sigh...), so now the GDNative API isn't exported anymore.
This means, that a library that wants to call a GDNative function
needs to access it via a struct of pointers that's passed to it at
right after the library was loaded. To make the usage easier, those
function pointers in the struct can be wrapped in actual function in
the global scope. This commit adds a generator for that wrapper code.
2017-10-03 23:26:39 +02:00
Andreas Haas
a848fa6cde
Merge pull request #11789 from djrm/pr_visual_improvements
...
Added correct initialization for script editor theme.
2017-10-03 19:56:14 +02:00
Emmanuel Leblond
0d41be3790
[GDnative] add api version field to godot_gdnative_api_struct
2017-10-03 18:08:34 +02:00
Thomas Herzog
c5ab18f33e
Merge pull request #11792 from touilleMan/gdnative-json-api
...
[GDnative] autogenerate gdnative_api_struct.h from a json
2017-10-03 14:37:04 +02:00
Nathan Lovato
cc40784728
Merge pull request #11653 from bojidar-bg/doc-vscript-1
...
[DOCS] Document some of the VisualScript classes
2017-10-03 11:58:06 +02:00
Bojidar Marinov
10469c1962
Document some of the VisualScript classes.
2017-10-03 12:01:53 +03:00
Emmanuel Leblond
cdc29926af
[GDnative] replace gdnative_api_struct.h by a json-based autogenerated system
2017-10-03 09:48:52 +02:00
Daniel J. Ramirez
bb69855f1a
VS now supports white themes.
2017-10-02 21:31:32 -05:00
Daniel J. Ramirez
6d874ea685
Added correct initialization for script editor theme.
...
Some style fixes for VS interface.
2017-10-02 18:33:42 -05:00
Ignacio Etcheverry
e36fb95c50
Added mono module
2017-10-03 00:01:26 +02:00
Andreas Haas
29b44801b2
Merge pull request #11658 from BastiaanOlij/mobile_vr
...
Reintroduce generic mobile vr interface
2017-10-02 23:13:21 +02:00
Andreas Haas
5303efb2fa
Merge pull request #11659 from AndreaCatania/prephysics
...
Renamed fixed_process to physics_process
2017-10-02 23:10:36 +02:00
Poommetee Ketson
e8f0817eac
Merge pull request #11724 from marcelofg55/visualscript_crashfix
...
VisualScript crashfix when returns are too few
2017-10-02 23:40:44 +07:00
Emmanuel Leblond
c55b8217ab
[GDnative] Add active_library_path to init options struct
2017-10-02 13:45:47 +02:00
Emmanuel Leblond
c11c951871
[GDnative] Add binding to GDNativeLibrary::get_active_library_path
2017-10-02 13:25:53 +02:00
Gilles Roudiere
d10e5eabed
Merge pull request #11719 from toger5/svg_color_convert_alpha
...
keep alpha when converting svg colors fixes #11289
2017-10-01 22:38:57 +02:00
Hein-Pieter van Braam
6c15c23889
Replace a OPCODE_BREAK with break in opcode 31
...
This was a mistake made in 520d84e
. There are no more other looping
structures left in this function.
2017-10-01 16:51:05 +02:00
AndreaCatania
4537977d6d
Renamed fixed_process to physics_process
2017-09-30 16:19:07 +02:00
Marcelo Fernandez
57ef77376f
VisualScript crashfix when returns are too few
2017-09-30 11:18:50 -03:00
toger5
b3826901c7
keep alpha when converting svg colors fixes #11289
2017-09-30 14:48:41 +02:00
Juan Linietsky
0a5799fb43
Properly allow completion on variable initializer arguments, closes #9359
2017-09-29 19:43:31 -03:00
BastiaanOlij
ca4f055db0
reintroduce generic mobile vr interface
2017-09-28 22:44:41 +10:00
Rémi Verschelde
da144fed4c
Merge pull request #11617 from groud/fix_bad_display
...
Fixes bad display
2017-09-27 22:15:00 +02:00
Scayze
0722df4829
Fixed wrong break statement in GDFunction::call
2017-09-27 03:23:39 +02:00
Gilles Roudiere
6f185cc9f7
Remove unecessary anchors&margins set causing bad display (sons of containers)
2017-09-27 00:38:28 +02:00
Rémi Verschelde
f577efd47e
Merge pull request #11424 from groud/control_node_presets
...
Implements set_margins_preset(...)
2017-09-26 00:11:46 +02:00
Rémi Verschelde
c79fc6716e
Merge pull request #11518 from hpvb/gdscript-direct-dispatch
...
Some more GDScript performance optimizations
2017-09-25 23:25:42 +02:00
Rémi Verschelde
78aa7b382a
Merge pull request #11567 from QuLogic/scons-var-types
...
Add types to scons command-line options
2017-09-25 22:44:05 +02:00
Rémi Verschelde
dae02a9041
Merge pull request #11580 from endragor/ios-export
...
Enhance iOS export
2017-09-25 22:23:49 +02:00
Juan Linietsky
c5da28f24c
Fixed constness of variant functions, as well as visual script sequence ports. Closes #11258
2017-09-25 17:09:27 -03:00
Elliott Sales de Andrade
3e69d19116
Use BoolVariable in platform-specific options.
2017-09-25 14:36:30 -04:00
Elliott Sales de Andrade
5be675eb03
Use BoolVariable for module options.
2017-09-25 14:36:30 -04:00
Elliott Sales de Andrade
45a9a680a3
Use BoolVariable for third-party options.
2017-09-25 14:36:30 -04:00
Elliott Sales de Andrade
ffab67b8da
Use BoolVariable in target/component/advanced options.
2017-09-25 14:36:02 -04:00
Ruslan Mustakov
f5b3b24c22
Enhance iOS export
...
- The export process now builds complete .ipa on macOS, instead of just
creating XCode project.
- The project includes Capabilities games usually require: Game Center,
Push Notifications, In-App Purchase.
- Icons and launch screens can be specified in export preset.
2017-09-26 00:18:08 +07:00
Hein-Pieter van Braam
0a338a28d9
Remove several checks on DEBUG_RELEASE
...
These errors shouldn't be possible on a tested game. Remove the checks
on release. Shaves about 10% off of tight loops.
2017-09-25 18:29:18 +02:00
Hein-Pieter van Braam
520d84e042
Use computed goto to dispatch next opcode
...
On compulers that define __GNUC__ use computed goto to directly dispatch
the next instruction rather than going through another switch statement.
This saves a jump and some comparisons.
In tight loops this is is roughly 10% faster than the switch() method.
2017-09-25 18:29:13 +02:00
Elliott Sales de Andrade
00c03bdd2b
Add support for OpenSSL 1.1.0.
...
This release hides many struct members which provides easier forward
compatibility but is a break from previous releases. A few small macros
provide compatibility between both 1.1.0 and 1.0.x.
Fixes #8624 .
2017-09-24 02:11:02 -04:00
Marcelo Fernandez
46af050e93
Rename get_position => get_playback_position and seek_pos => seek on audio classes
2017-09-23 16:55:00 +02:00
Gilles Roudiere
05bb8e0c10
Remove set_area_as_parent_rect and replace it by set_anchors_and_margins_preset(PRESET_WIDE)
2017-09-22 11:39:44 +02:00
Rémi Verschelde
be60689812
Merge pull request #11461 from hpvb/add-likely-macros
...
Implement Linux-style likely()/unlikely() macros
2017-09-22 09:15:45 +02:00
Ross Hadden
1a97d6455d
Fixed a bunch of typos, including an error code.
2017-09-21 23:58:29 -04:00
Hein-Pieter van Braam
22358babda
Implement Linux-style likely()/unlikely() macros
...
This implement branch prediction macros likely() and unlikely() like in
Linux. When using these macros please ensure that when you use them the
condition in the branch really is very, very likely or unlikely. Think
90+% of the time. Primarily useful for error checking. (And I implement
these macros for all our error checking macros now)
See this article for more information:
https://kernelnewbies.org/FAQ/LikelyUnlikely
There are more places where these macros may make sense in renderer and
physics engine. Placing them will come in another commit down the line.
2017-09-21 18:28:28 +02:00
letheed
5ad9be4c24
Rename pos to position in user facing methods and variables
...
Rename user facing methods and variables as well as the corresponding
C++ methods according to the folloming changes:
* pos -> position
* rot -> rotation
* loc -> location
C++ variables are left as is.
2017-09-20 13:11:10 +02:00
Ruslan Mustakov
52cb4ec232
Do not compile Recast for Android
...
At least this makes Godot compile for Android until there is a better
solution.
2017-09-20 12:57:33 +07:00
Rémi Verschelde
752a116847
Merge pull request #11256 from djrm/pr_visual_improvements
...
Visual improvements and new look for VS
2017-09-19 23:44:09 +02:00
Hein-Pieter van Braam
833c3917b2
Allow booleanization of all types
...
We now allow booleanization of all types. This means that empty versions
of all types now evaluate to false. So a Vector2(0,0), Dictionary(),
etc.
This allows you to write GDScript like:
if not Dictionary():
print("Empty dict")
Booleanization can now also no longer fail. There is no more valid flag,
this changes Variant and GDNative API.
2017-09-19 18:55:31 +02:00
Rémi Verschelde
33e1716f13
Merge pull request #11402 from hpvb/remove-gdscript-checks-on-release
...
Various GDScript performance tweaks
2017-09-19 15:48:14 +02:00
Rémi Verschelde
ba4439c491
Merge pull request #11386 from kosz78/fix-msvc-compile-errors
...
Fix MSVC compilation errors
2017-09-19 14:58:19 +02:00
Konstantin Zaitsev
28dc30cd59
Change structure order for godot nim compatibility
2017-09-19 11:35:51 +07:00
Konstantin Zaitsev
c386a02654
Fix MSVC compilation errors
2017-09-19 10:33:07 +07:00
Hein-Pieter van Braam
60790c8c5a
Remove more GDScript runtime checks on release
...
As a preparation for other performance enhancements to GDScript:call()
start by removing more of the GDScript runtime checks on release.
This code has been tested with 2d/platformer, 3d/platformer,
3d/materials_test, and goltorus. No regressions were found.
2017-09-19 02:06:47 +02:00
Hein-Pieter van Braam
137f8a58a8
Move Variant::evaluate() switch to computed goto
...
In an effort to make GDScript a little faster replace the double
switch() with a computed goto on compilers that set __GNUC__. For
compilers that don't support computed goto it will fall back to regular
switch/case statements.
In addition disable using boolean values in a mathematical context. Now
boolean values can only be compared with other booleans. Booleans will
also no longer be coerced to integers.
This PR replaces #11308 and fixes #11291
2017-09-17 22:49:23 +02:00
Thomas Herzog
259778ce8c
Merge pull request #11296 from touilleMan/gdnative-api-struct
...
[GDnative] pass api as struct of function pointers to loaded gdnative modules
2017-09-17 20:59:46 +02:00
Emmanuel Leblond
8d57a3f3d5
[GDnative] Use X macro to define godot_gdnative_api_struct and it instantiation
2017-09-17 18:33:08 +02:00
Emmanuel Leblond
e4c9f8895e
[GDnative] create godot_gdnative_api_struct and pass it to godot_gdnative_init_options
2017-09-17 16:13:14 +02:00
Rémi Verschelde
c74bab66aa
Merge pull request #11274 from Rubonnek/keep-argument-names-consistent
...
Renamed function arguments to keep them consistent between declaration and implementation
2017-09-17 12:53:48 +02:00
Rémi Verschelde
2d4f6ef0bf
Apply clang-format again to recent changes
...
Also add missing copyright headers.
[ci skip]
2017-09-16 19:48:45 +02:00
Marcelo Fernandez
12a7f15bdc
Fix compile error on gd_native_library_editor.cpp with tools=no
2017-09-15 13:29:29 -03:00
Thomas Herzog
7dffed485b
Merge pull request #11230 from maxim-sheronov/fix_enum_bindings
...
Fix enums bindings
2017-09-15 08:43:35 +02:00
Thomas Herzog
5636ac526e
Merge pull request #11237 from endragor/gdnative-variant-ref
...
Construct Variants from Reference properly in GDNative
2017-09-14 21:21:50 +02:00
Juan Linietsky
35ed1eef2a
Added a menu to enable/disabled GDNative singletons in project settings
2017-09-14 15:02:51 -03:00
Wilson E. Alvarez
072e379ffe
Renamed function arguments to keep them consistent between declaration and implementation
2017-09-14 13:49:15 -04:00
Daniel J. Ramirez
74d028729f
Improved VisualScriptEditor
2017-09-14 12:45:42 -05:00
Ruslan Mustakov
f08bc0df7c
Construct Variants from Reference properly in GDNative
...
Previously godot_variant_new_object constructed Variant without
accounting for the fact that the Object can be a Reference, so refcount
was not increased and References were destructed prematurely.
Also, Reference::init_ref did not propagate refcount increment to the
script instance, which led to desync of refcount info on the script
side and Godot side.
2017-09-14 19:40:36 +07:00
Jeroen
ca5abae1e7
Fix 2 typos
2017-09-14 10:31:43 +02:00
Maxim Sheronov
0fffa45158
Fix enums bindings
...
Add missed bindings for enums
Move some enums to class to have correct output of api.json
2017-09-13 20:57:07 +03:00
Rémi Verschelde
fe3bbaa9d0
Merge pull request #11076 from hpvb/fix-10935
...
Fix crash on wrong type drag into the vs editor
2017-09-13 19:28:13 +02:00
Rémi Verschelde
095ff6dda8
Merge pull request #11063 from toger5/svg_generation_optimization
...
optimized color conversion for svg generation
2017-09-13 19:27:21 +02:00
Rémi Verschelde
27ae3c839d
Merge pull request #7908 from SaracenOne/recast
...
In-editor navmesh generation.
2017-09-13 19:22:29 +02:00
toger5
ee5dc05a09
optimized color conversion for svg generation
2017-09-12 23:33:51 +02:00
Juan Linietsky
4f929a0fdf
Changed the doc class generation to individual files per class. It is also possible to save module files in module directories and the build system will
...
recognize them.
2017-09-12 17:45:41 -03:00
Daniel J. Ramirez
60f054d3ac
Improved VS node coloring
2017-09-12 13:16:47 -05:00
Daniel J. Ramirez
1e8048dd45
Improved theme generation, and other fixes
2017-09-12 13:16:38 -05:00
William Taylor
8632408dbd
Changed/Added descriptions in @GDScript. Added examples. Fixed return types of two … ( #11146 )
...
Doc: Improved descriptions in GDScript docs
Added examples and fixed return types of two methods.
2017-09-12 15:00:29 +02:00
Rémi Verschelde
4f51211dfb
Merge pull request #11028 from mrawlingst/color-RGBA32
...
Change Color.to_32() to Color.to_rgba32() and lowercase other functions
2017-09-12 13:44:43 +02:00
Juan Linietsky
1c5376ae59
Many fixes to visual script, changed virtuals override for a proper selector.
2017-09-12 07:58:54 -03:00
Rémi Verschelde
aabbd00284
Merge pull request #10908 from hpvb/fix-unused-variables
...
Fix unused variable warnings
2017-09-12 12:55:53 +02:00
Rémi Verschelde
cf941fdc35
Merge pull request #11026 from hpvb/fix-assign-in-if
...
Remove assignment and declarations in if statements
2017-09-12 11:57:49 +02:00
Rémi Verschelde
2b50dc5d4f
Merge pull request #11057 from hpvb/fix-various-warnings
...
Fix various assorted warnings
2017-09-12 11:39:47 +02:00
Poommetee Ketson
dccb37417c
Implement String len()
2017-09-11 08:43:25 +07:00
bncastle
fc83821316
Fixed attempt to delete NULL pointer error
...
Fixed: Error cause by attemptng to delete a NULL pointer.
unregister_gdnative_types() now checks discoverer to see if it is NULL
before deleting. After selecting a godot project to edit (in Win10), the
discoverer_callback() wasn't called thus discoverer was NULL.
2017-09-10 17:39:42 -04:00
Hein-Pieter van Braam
2ec0bc4f80
Fix crash on wrong type drag into the vs editor
...
Don't allow drops of draggable items without a vs node type.
This fixes #10935
2017-09-09 00:34:53 +02:00
Hein-Pieter van Braam
b2a38854fd
Fix unused variable warnings
...
The forth in my quest to make Godot 3.x compile with -Werror on GCC7
2017-09-08 15:03:53 +02:00
Hein-Pieter van Braam
8230bf0a2f
Remove assignment and declarations in if statements
...
After discussing with @reduz and @akien-mga it was decided that we do
not allow assignments or declarations in if statements. This PR removes
the instances of this I could find by automated means.
2017-09-08 14:59:15 +02:00
Hein-Pieter van Braam
67a706fc1b
Fix various assorted warnings
...
Fix various warnings that don't have enough instances to merit
individual commits. Also fixes a potential bug in audio_server.cpp.
2017-09-08 14:57:48 +02:00
mrawlingst
6aa5bc2347
Change Color.to_32() to to_rgba32() and format as RGBA
2017-09-07 16:19:44 -04:00
Juan Linietsky
5f0d367fef
Mono vorbis support fixed, closes #10787
2017-09-06 23:13:57 -03:00
Rémi Verschelde
6efd777fae
Merge pull request #10976 from saltares/issue-907
...
Fixes setting visibility on GridMap, issue #907
2017-09-06 11:49:35 +02:00
David Saltares
f43a0ef327
Setting visibility on GridMap now works. Closes #907 .
...
Basically, `GridMap` wasn't reacting to the
`NOTIFICATION_VISIBILITY_CHANGED` event. This reacts to such events and
walks over the set of `Octants` and all of their `MultiMeshInstances` to
set their visibility on the `VisualServer`.
2017-09-05 22:44:19 +01:00
Ruslan Mustakov
269203a022
Provide NativeScript properties in definition order
2017-09-05 12:45:23 +07:00
Juan Linietsky
89e090edef
Fix ETC2 import for luminance/lumalpha textures, fixes #10421
2017-09-04 18:45:41 -03:00
Saracen
92e77d5ff2
Recast integration.
2017-09-04 21:41:57 +01:00
Rémi Verschelde
e979e50b7d
Merge pull request #10921 from karroffel/gdnative-MERGE-EVERYTHING
...
[GDNative] merge of NativeScript and GDNative, new GDNative singletons
2017-09-04 21:51:07 +02:00
Rémi Verschelde
b5d2d0a9a5
Merge pull request #10939 from neikeq/fix-overridden-external-editors
...
Fixes language overridden external editors
2017-09-04 08:12:29 +02:00
Rémi Verschelde
7040a390ad
Merge pull request #10937 from djrm/pr_fix_typo
...
Fix. resizeable -> resizable.
2017-09-04 07:37:59 +02:00
Ignacio Etcheverry
52a7be4eef
Fixes language overridden external editors
2017-09-03 21:23:36 +02:00
Daniel J. Ramirez
d6b664f671
Fix. resizeable -> resizable.
...
(not actually a typo, but the rest of the API uses resizable)
2017-09-03 13:12:52 -05:00
Juan Linietsky
adde89e8b1
-Added an optimization so physics shapes are configured later, speeds up grid map loading and editing
2017-09-03 14:54:15 -03:00
Karroffel
54a9c1ee43
[GDNative] added singleton GDNativeLibraries
...
A GDNativeLibrary now has a field "gdnative_singleton" which can be
used to let the `godot_gdnative_singleton` procedure be executed on
Godot's startup. In future this can be used to register new
scripting languages or resource importer types.
2017-09-03 16:56:00 +02:00
Karroffel
7878329e6f
merged gdnative and nativescript module
2017-09-03 15:28:43 +02:00
Poommetee Ketson
459f526119
Fix typos 'a' and 'an'
2017-09-02 21:19:06 +07:00
Hein-Pieter van Braam
7df28d1799
Fix missing pragma push
...
I forgot to pragma push the ignored warning in #10877 this adds the
missing ones.
2017-09-02 11:03:27 +02:00
Hein-Pieter van Braam
9c63ab99f0
Fix use of unitialized variables
...
The second in my quest to make Godot 3.x compile with -Werror on GCC7
2017-09-02 01:59:26 +02:00
Rémi Verschelde
dac150108a
Merge pull request #10846 from hpvb/fix-sign-compare
...
Fix signed and unsigned comparisons
2017-09-01 21:52:55 +02:00
Rémi Verschelde
69ac4cbb37
Merge pull request #10854 from MednauN/ogg-fix
...
Fix crash when destroying AudioStreamPlaybackOGGVorbis
2017-09-01 21:51:48 +02:00
Rémi Verschelde
90a944e856
Merge pull request #10865 from neikeq/woah
...
etc: Append -std=gnu++11 to CCFLAGS instead of CXXFLAGS
[ci skip]
2017-09-01 21:25:05 +02:00
Ignacio Etcheverry
2f79c84ff5
etc: Append -std=gnu++11 to CCFLAGS instead of CXXFLAGS
...
This way it can override the -std flags passed to scons.
2017-09-01 18:51:50 +02:00
Juan Linietsky
8f30c52a37
Removed ontop property, added a material rendering priority system. Fixes #9935 , closes #10135
2017-09-01 13:01:08 -03:00
Poommetee Ketson
ed606ded52
Fix files header
2017-09-01 21:07:55 +07:00
Evgeny Zuev
46f003c445
Fix crash when destroying AudioStreamPlaybackOGGVorbis
2017-09-01 17:49:22 +07:00
Rémi Verschelde
7c76e0c8c3
Merge pull request #10853 from leezh/pcre_html5_fix
...
Disabled PCRE-JIT in HTML5. Fixes #10834
[ci skip]
2017-09-01 12:46:41 +02:00
Zher Huei Lee
566c0f675a
Disabled PCRE-JIT in HTML5. Fixes #10834
2017-09-01 18:33:04 +08:00
Hein-Pieter van Braam
f9467ec1ea
Fix signed and unsigned comparisons
...
The first in my quest to make Godot 3.x compile with -Werror on GCC7
2017-09-01 08:13:12 +02:00
Emmanuel Leblond
6151adfe8c
Correct GDnative's godot_string_find_last method name
2017-08-31 23:24:26 +02:00
Rémi Verschelde
6f762ad709
Merge pull request #10422 from endragor/gdnative-android
...
Make GDNative work on Android
2017-08-31 13:51:10 +02:00
Rémi Verschelde
0cee288c11
Merge pull request #10148 from leezh/pcre2
...
Replacement of internal RegEx with PCRE2
2017-08-31 11:56:19 +02:00
Rémi Verschelde
f00760b22c
Merge pull request #10382 from toger5/dark_icons
...
Light Theme
2017-08-31 11:47:18 +02:00
toger5
aa8feff8c1
Implement color conversion for dark SVG icons
2017-08-30 21:20:02 +02:00
Ruslan Mustakov
5ccdeccb6e
Make GDNative work on Android
...
The changes include work done to ensure that GDNative apps and Nim
integration specifically can run on Android. The changes have been
tested on our WIP game, which uses godot-nim and depends on several
third-party .so libs, and Platformer demo to ensure nothing got broken.
- .so libraries are exported to lib/ folder in .apk, instead of assets/,
because that's where Android expects them to be and it resolves the
library name into "lib/<ABI>/<name>", where <ABI> is the ABI matching
the current device. So we establish the convention that Android .so
files in the project must be located in the folder corresponding to
the ABI they were compiled for.
- Godot callbacks (event handlers) are now called from the same thread
from which Main::iteration is called. It is also what Godot now
considers to be the main thread, because Main::setup is also called
from there. This makes threading on Android more consistent with
other platforms, making the code that depends on Thread::get_main_id
more portable (GDNative has such code).
- Sizes of GDNative API types have been fixed to work on 32-bit
platforms.
2017-08-30 18:14:19 +07:00
Hein-Pieter van Braam
ec63438231
Remove 10778 related methods from GDNative
...
After #10778 master didn't build any longer with GDNative. This removes
the methods removed in that PR from the GDNative bindings for Basis
also.
2017-08-30 12:54:59 +02:00
Rémi Verschelde
fd7ad7d80a
Merge pull request #10750 from Rubonnek/fix-duplicate-script-changed-signal
...
Renamed 'script_changed' signal in the script editor plugin to 'edited_script_changed'
2017-08-30 12:46:00 +02:00
Rémi Verschelde
e59b1212da
Merge pull request #10776 from hpvb/fix-10758
...
Disable -ffast-math for etc2comp
2017-08-30 12:44:16 +02:00
Hein-Pieter van Braam
d44414c711
Disable -ffast-math for etc2comp
...
Apparently -ffast-math generates incorrect code with recent versions of
GCC and Clang. The manual page for GCC warns about this possibility.
In my tests it doesn't actually appear to be measurably slower in this
case, and this is used in a batch process so it seems safe to disable
this.
This fixes #10758 and fixes #10070
2017-08-30 11:51:24 +02:00
Ruslan Mustakov
415f7da025
Fix GDNative API generator after changes to MethodBind
2017-08-30 10:45:10 +07:00
Ruslan Mustakov
bbb4ee90ce
Add enums in GDNative API generator
2017-08-30 10:38:58 +07:00
Juan Linietsky
9c3bddfac2
Merge pull request #10745 from neikeq/fix-docdata-and-stuff
...
DocData and virtual method type hints fixes
2017-08-29 20:11:07 -03:00
Ignacio Etcheverry
8bd92a96a4
Makes built-in vararg methods actual vararg methods
...
- Removes hardcoded parameters from built-in vararg methods and adds METHOD_FLAG_VARARG to them.
- Makes EditorHelp display built-in vararg methods correctly.
2017-08-29 19:40:28 +02:00
Ignacio Etcheverry
c16d00591b
DocData and type hints fixes
...
- Makes vararg methods automatically use PROPERTY_USAGE_NIL_IS_VARIANT on return types
- Completely removes the ":type" suffix for method names. Virtual methods must use the MethodInfo constructors that takes Variant::Type or PropertyHint as the first parameter for the return type (with CLASS_INFO as a helper to get the PropertyInfo). Parameters must use PROPERTY_HINT_RESOURCE_TYPE and hint string.
- PROPERTY_USAGE_NIL_IS_VARIANT is no longer needed for parameters, because parameters cannot be void.
- Adds missing PROPERTY_USAGE_NIL_IS_VARIANT to virtual and built-in methods that return Variant.
2017-08-29 19:40:21 +02:00
Wilson E. Alvarez
a400a65c8a
Renamed 'script_changed' signal in the script editor plugin to 'edited_script_changed'
2017-08-29 10:24:10 -04:00
Juan Linietsky
a2027cfa49
-Fixes to how collada generates tangents (use SurfaceTool), closes #9562
...
-Fix to gridmap cell size (wrong property type)
2017-08-29 08:48:39 -03:00
Juan Linietsky
8fce79aaee
-Some fixes to code completion.
...
-Fix getter in code completion being displayed when it shouldn't
-Clean up preview generation for editors and exposed it as editor plugin
2017-08-28 00:04:24 -03:00
Rémi Verschelde
6ef7783abb
Merge pull request #10662 from hoelzl/python3-v3
...
Make build scripts Python 3 compatible
2017-08-28 00:05:15 +02:00
Juan Linietsky
d23f323cde
-Moved script run to editor, removed from project
...
-fixed to code completion
-fix shader crash bug reported by tagcup
2017-08-27 19:04:19 -03:00
Hein-Pieter van Braam
8064fbb174
Fix a crash in gdscript callbacks
...
This fixes a crash running the 'goltorus' project.
2017-08-27 23:49:13 +02:00
Matthias Hoelzl
b6e1e47e3a
Make build scripts Python3 compatible
...
- The Windows, UWP, Android (on Windows) and Linux builds are
tested with Scons 3.0 alpha using Python 3.
- OSX and iOS should hopefully work but are not tested since
I don't have a Mac.
- Builds using SCons 2.5 and Python 2 should not be impacted.
2017-08-27 23:05:39 +02:00
Rémi Verschelde
7ad14e7a3e
Dead code tells no tales
2017-08-27 22:13:45 +02:00
Juan Linietsky
37da8155a4
-Largely rewrote gridmap to simplify it
...
-Got editor working again
-Added a current-floor marker on selection
2017-08-27 16:02:00 -03:00
Rémi Verschelde
bd282ff43f
Use HTTPS URL for Godot's website in the headers
2017-08-27 14:16:55 +02:00
Rémi Verschelde
3acf6857d9
nanosvg: Document in COPYRIGHT.txt and thirdparty README.md
2017-08-27 13:32:23 +02:00
Rémi Verschelde
612099e377
Merge pull request #10591 from Rubonnek/possible-null-ptr-dereference
...
Added/Fixed null pointer checks
2017-08-27 02:10:56 +02:00
Rémi Verschelde
3ec9e26cb4
Merge pull request #10669 from hpvb/fix-6118
...
Add several missing Null checks in _notification
2017-08-27 02:07:41 +02:00
Hein-Pieter van Braam
3e25cf9e05
Add two missing Null checks
...
These Null checks were removed in #10581 but actually changed the
logic of the functions in this case.
This fixes #10654
2017-08-26 23:40:45 +02:00
Wilson E. Alvarez
7a07895920
Added/Fixed null pointer checks
2017-08-26 16:58:47 -04:00
Hein-Pieter van Braam
9a1d9a41eb
Add several missing Null checks in _notification
...
This fixes #6118
2017-08-26 22:50:15 +02:00
Juan Linietsky
1894157c9f
-Massive clean up to gizmos
...
-Make sure handles are always visible (on top)
-Fixed instanced scene selection (should work properly now)
-Added interpolated camera
-Customizable gizmo colors in editor settings
2017-08-26 00:47:28 -03:00
Rémi Verschelde
d9e94fa0c3
Fix i18n bug in GridMap string
...
Regression from 6134d87
causing build issue on clang.
2017-08-25 20:55:33 +02:00
Andreas Haas
6134d8741d
Editor: Add some more translatable strings.
2017-08-25 18:49:45 +02:00
Rémi Verschelde
490aef9369
Merge pull request #10581 from hpvb/fix-gcc6+
...
Make cast_to a static member of Object.
2017-08-25 08:37:38 +02:00
Juan Linietsky
b1c0e45b03
Implemented, The Amazing Zylann Hack (tm), fixes #10603
2017-08-25 00:34:32 -03:00
Hein-Pieter van Braam
cacced7e50
Convert Object::cast_to() to the static version
...
Currently we rely on some undefined behavior when Object->cast_to() gets
called with a Null pointer. This used to work fine with GCC < 6 but
newer versions of GCC remove all codepaths in which the this pointer is
Null. However, the non-static cast_to() was supposed to be null safe.
This patch makes cast_to() Null safe and removes the now redundant Null
checks where they existed.
It is explained in this article: https://www.viva64.com/en/b/0226/
2017-08-24 23:08:24 +02:00
Andreas Haas
f61e8695c9
GDScript: More reliable check if loading a template.
...
Prevents showing some useless parse errors in the console.
2017-08-24 22:08:23 +02:00
Rémi Verschelde
3ea0943f64
Fix mismatched signatures for GDScriptLanguage::complete_code
2017-08-24 12:44:51 +02:00
Juan Linietsky
36e0a72c77
-Code completion for enumerations
...
-Disabled GDNative and GDNativeScript so build compiles again
2017-08-24 00:06:56 -03:00
Juan Linietsky
3d1c031871
Changed MethodBind API to request information from methods. It's much claner now.
...
Also changed PropertyInfo to include informatino about class names.
2017-08-23 19:11:11 -03:00
Rémi Verschelde
35e9117521
Merge pull request #10563 from Hinsbart/vs_cancel_select
...
VisualScriptEditor: Remove Node when canceling PropertySelector.
2017-08-23 08:09:27 +02:00
Rémi Verschelde
1ad68c946e
Merge pull request #10542 from karroffel/gdscript-match-index
...
support enums and nested constants in match statement
2017-08-23 08:05:52 +02:00
Rémi Verschelde
bc3c9a3c2a
Merge pull request #10555 from Rubonnek/removed-unnecessary-returns-and-breaks
...
Removed unnecessary returns and break statements
[ci skip]
2017-08-23 00:06:29 +02:00
Andreas Haas
927fb9d793
VisualScriptEditor: Remove Node when canceling PropertySelector.
2017-08-22 21:56:18 +02:00
Pedro J. Estébanez
00c9218b48
Fix crashes in SVG loading
...
Adding null terminators.
2017-08-22 19:39:13 +02:00
Wilson E. Alvarez
baa94a3758
Removed unnecessary returns and break statements
2017-08-22 13:01:57 -04:00
Karroffel
57654d4b95
support enums and nested constants in match statement
...
The initial version of the pattern matcher in GDScript does not
allow matching on nested identifiers, only one identifiers available
in the current scope.
With the introduction of enums to GDScript that's a huge missing
feature. This commit makes the parser accept indexed constants and
variables to properly support enums.
2017-08-22 17:45:05 +02:00
Juan Linietsky
8ad7139631
readded ability to set loop offset in seconds, closes #9630
2017-08-22 11:47:24 -03:00
Rémi Verschelde
df590fc2d3
Merge pull request #10340 from Rubonnek/remove-unnecessary-assignments
...
Removed unnecessary assignments
2017-08-22 00:58:12 +02:00
Juan Linietsky
2cc8309249
Merge pull request #10351 from neikeq/enums-are-for-the-weak
...
ClassDB: Provide the enum name of integer constants
2017-08-21 19:56:08 -03:00
Rémi Verschelde
135027a2f6
Merge pull request #10225 from Noshyaar/map
...
GDScript Built-in: add inverse_lerp & range_lerp
2017-08-22 00:31:46 +02:00
Wilson E. Alvarez
738d2ab969
Removed unnecessary assignments
2017-08-21 15:15:55 -04:00
Ignacio Etcheverry
32dd9a9f66
ClassDB: Provide the enum name of integer constants
2017-08-20 22:07:43 +02:00
Daniel J. Ramirez
0c18009665
Added missing icon and svgs upscaling
2017-08-20 13:53:09 -05:00
Daniel J. Ramirez
da8fecf25e
Added support for SVG
2017-08-20 13:53:02 -05:00
Juan Linietsky
541fdffc0a
Merge pull request #10319 from neikeq/pr-engine-editor-hint
...
Adds Engine::is_editor_hint() method
2017-08-20 12:55:46 -03:00
Rémi Verschelde
5627047c32
Merge pull request #10455 from groud/control_margin_fixes
...
Some control fixes and removed other useless lines
2017-08-20 15:24:00 +02:00
Gilles Roudiere
06256cd778
Some control fixes and removed useless lines
2017-08-19 19:10:00 +02:00
Rémi Verschelde
ce85179e5d
Merge pull request #10446 from bojidar-bg/6583-fix-wait-node
...
Fix Condition + Wait nodes freezing the game
2017-08-19 18:00:20 +02:00
Emmanuel Leblond
00d552b1cd
[GDnative] Correct godot_string_chars_to_utf8_with_len function name
2017-08-19 17:08:33 +02:00
Bojidar Marinov
4a0b4417a3
Fix #6583 , Condition + Wait nodes freezing the game
...
Make sure that only the first node after VS resume gets resumed
2017-08-19 17:54:32 +03:00
Zher Huei Lee
e3e2f06324
Replacement of internal RegEx with PCRE2
...
The pattern and replacement matching behaviour has been changed purely
due to the nature of switching to a standards-compliant library.
One mistake in the previous behaviour was that named groups didn't have
a number. This has been corrected.
As names are actually just an alias of numbered groups,
RegExMatch::get_name_dict() is now get_names() and is a dict
referring to the group number it represents.
Duplicate names are enabled and the with the first matching instance
used.
Due the lack of a suitable equivalent in PCRE2, RegExMatch::expand() was
removed.
2017-08-19 19:29:14 +08:00
Ignacio Etcheverry
90b8a5b71e
Removes editor_hint from SceneTree
2017-08-19 01:29:45 +02:00
Juan Linietsky
cbcf40bd31
-Volume sliders, mute, solo and fx bypass are functional, closes #9021
...
-Fixed tree reselect, makes reselecting an audio bux FX work
2017-08-18 18:21:53 -03:00
Juan Linietsky
b20952ebff
Update script signals in real-time when script changes. Fixes #8980
2017-08-18 16:44:03 -03:00
Poommetee Ketson
d28da86f9f
GDScript Built-in: add inverse_lerp & range_lerp
2017-08-18 21:49:03 +07:00
Marcelo Fernandez
eab850524e
Add closest_power_of_2 func and implement mix_rate/latency on OS X
2017-08-17 19:51:13 -03:00
Rémi Verschelde
b1ecaaa22b
Merge pull request #10307 from Rubonnek/update-argument-names
...
Updated function argument names
2017-08-16 17:17:56 +02:00
Rémi Verschelde
c1a43a09be
Merge pull request #10356 from RandomShaper/fix-msvc-error
...
Add comment warning about include order
2017-08-16 17:11:59 +02:00
Pedro J. Estébanez
ae2d449047
Revive inspector property evaluation
...
GDScript was restricted to parse only scripts beginning with __res://__ or __user://__ to avoid templates from being parsed. I've made that a bit less inclusive by allowing scripts with an empty path to be parsed too, which doesn't conflict and is needed for this to work.
Also I've removed the `this` variable of the generated script and made the relevant object to be the one the script instance refers to, so you can use `self` instead.
Now, with the shorter 3.0-style syntax, you can write things like: `self.position.x + 10`
Closes #9500 .
2017-08-16 03:01:41 +02:00
Pedro J. Estébanez
2a26c5ce62
Comment include order to avoid errors
...
So as to not revive #10071 , as suggested by @akien-mga.
2017-08-15 22:12:57 +02:00
Gilles Roudiere
0d35d4d53b
Replace GUI anchor type by a float between 0 and 1
2017-08-13 21:20:13 +02:00