Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tracking master #5

Merged
merged 166 commits into from
Oct 14, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
166 commits
Select commit Hold shift + click to select a range
c56c67d
Added new API to get body direct state
AndreaCatania Sep 29, 2017
f815a3d
Refactoring of polygon editors to a common code base
poke1024 Sep 6, 2017
4b695c3
OS::execute can now read from stderr too when executing with a pipe
marcelofg55 Oct 3, 2017
b6daa94
Improvements on the export code on OS X
marcelofg55 Oct 3, 2017
ca7447d
Improve input handling on Android
endragor Oct 2, 2017
c8191d0
Fix returning Game Center player ID
endragor Oct 4, 2017
8cf5f61
Fix type error in subsurface scattering shader code
hi-ogawa Oct 4, 2017
f4c77b9
Fix logging on iOS
endragor Oct 4, 2017
a6ff281
Fixed rotating in local space using 3D Gizmo.
SirPigeonz Oct 4, 2017
f931093
Fix IK Bone Drag on Viewport
gabrielformiga Oct 5, 2017
a7f1879
fixes several scaling problems on multi monitor retina/non-retina set…
poke1024 Sep 30, 2017
a25d70a
Extends the anchors menu to a presets
groud Oct 3, 2017
0cd9993
Fix command-line export looping infinitely
endragor Oct 6, 2017
a662522
Use additional repositories for gradle build dependencies too
endragor Oct 6, 2017
5e67a3b
FileDialog: fix select index out of range
Oct 6, 2017
44292bf
[DOCS] Update ParticlesMaterial, Particles class ref
Oct 3, 2017
dfb6602
VisualScript: Fix crash with get_node().
27thLiz Oct 6, 2017
a4cee28
flatDir support [Android]
RameshRavone Oct 7, 2017
b772f5a
doc_status.py: Error message for unknown CLI flag, switch shebang to …
mhilbrunner Oct 7, 2017
a6b48c1
Fix Python 3 incompatibility in Mono build
hoelzl Oct 7, 2017
ac2879d
Added a name/path description when there is an error in the Animation…
marcelofg55 Oct 4, 2017
1d380bf
fixed double escape for quotes in editor/SCsub
Toizi Oct 7, 2017
b07dfd7
Consistant scroll when using members overview, issue 11648
Paulb23 Oct 8, 2017
be8d343
Add documentation for Performance.
Nallebeorn Oct 8, 2017
c05c334
Fix binary marshalling of Objects
leonkrause Oct 8, 2017
6f3fffe
Include property index in GDNative class API
sheepandshepherd Oct 8, 2017
e5fcf0e
Merge pull request #11947 from eska014/fix-obj-marshalling
akien-mga Oct 8, 2017
ff28569
Fixed IntPtr unboxing (#11949)
neikeq Oct 8, 2017
6363bcf
[GDnative] fix crash at cleanup time when singleton_gdnatives is not …
touilleMan Oct 8, 2017
dc6bb74
Merge pull request #11952 from touilleMan/fix-crash-gdnative
karroffel Oct 8, 2017
2c96649
Fix front face definition
hi-ogawa Oct 9, 2017
1967972
Track LightInstance::shadow_atlases so that it will be freed properly
hi-ogawa Oct 7, 2017
6d2abb4
A minor documentation typo fix.
authenticate Oct 9, 2017
645884b
Merge pull request #11961 from authenticate/patch-1
Oct 9, 2017
c022a32
Merge pull request #11820 from cbscribe/kcc_particles_doc
NathanLovato Oct 9, 2017
80b15fb
Fix trailing whitespaces in project settings header comment
touilleMan Oct 9, 2017
e4dc1f9
Merge pull request #11943 from Nallebeorn/documentation_2
cbscribe Oct 9, 2017
30a4882
Merge pull request #11910 from hoelzl/pr-python3-mono-build
akien-mga Oct 9, 2017
8e9b99f
Merge pull request #11702 from AndreaCatania/bodyDS
akien-mga Oct 9, 2017
2e0c7bb
Merge pull request #11718 from poke1024/retina
akien-mga Oct 9, 2017
9e90910
Merge pull request #11962 from touilleMan/fix-trailing-whitespace-in-…
groud Oct 9, 2017
17011f5
Added documenation for Line2D
Xgor Oct 1, 2017
e8b9cca
Merge pull request #11810 from marcelofg55/osx_export_improv
akien-mga Oct 9, 2017
3151b08
Merge pull request #11821 from groud/margins_preset_menu
akien-mga Oct 9, 2017
ad85acf
Merge pull request #11824 from endragor/ios-logging
akien-mga Oct 9, 2017
7e05d24
Merge pull request #11826 from endragor/fix-game-center-player-id
akien-mga Oct 9, 2017
9f26733
Merge pull request #11827 from hi-ogawa/fix-shader-type-error
akien-mga Oct 9, 2017
3091cfc
Merge pull request #11842 from n-pigeon/rotate_gizmo_fix
akien-mga Oct 9, 2017
1cb4fc1
Merge pull request #11846 from gabrielformiga/fix-ik-bone-drag
akien-mga Oct 9, 2017
321ae21
Merge pull request #11878 from endragor/gradle-repository-urls
akien-mga Oct 9, 2017
d989479
Merge pull request #11884 from Noshyaar/pr-fd2
akien-mga Oct 9, 2017
cb4830e
Merge pull request #11887 from Hinsbart/vs_crash_get_node
akien-mga Oct 9, 2017
9e93f5b
[DOCS] Review and improve 17 classes (#11890)
Nutriz Oct 9, 2017
bf0b328
Added VisualScript* descriptions
Oct 6, 2017
ea37f44
Merge pull request #11950 from sheepandshepherd/gdnative_property_index
karroffel Oct 9, 2017
70e4799
Fix bug in navmesh generation when using meshes with multiple
SaracenOne Oct 9, 2017
8ddbd19
Apply a few recent chages in Quat and Basis to their respective Mono …
tagcup Oct 9, 2017
cbeeba9
Merge pull request #11908 from mhilbrunner/docstatus-flagerror
akien-mga Oct 9, 2017
e515a69
Merge pull request #11915 from marcelofg55/desc_animation_errors
akien-mga Oct 9, 2017
11202b8
Merge pull request #11922 from Toizi/editor_double_escape
akien-mga Oct 9, 2017
cb7e4aa
Merge pull request #11926 from RameshRavone/patch-11
akien-mga Oct 9, 2017
438e32d
Merge pull request #11941 from Paulb23/members_selected_scroll_issue_…
akien-mga Oct 9, 2017
bf12b45
Merge pull request #11965 from SaracenOne/navgen_fix
akien-mga Oct 9, 2017
2f173a6
Array::sort, sort_custom and invert now return reference to Array to …
Toizi Oct 7, 2017
12596cb
Fix anisotropic GGX D function, and introduce and use anistropic GGX …
tagcup Oct 4, 2017
dfc717c
Update freetype to 2.8.1
volzhs Oct 9, 2017
ae94758
Merge pull request #11019 from poke1024/refactor-polygon-v2
groud Oct 9, 2017
5080a9c
Fix data alignment issues in get_data() in AudioStreamSample
hungrymonkey Oct 8, 2017
b776330
[DOCS] Document Tree
mhilbrunner Oct 7, 2017
f240cfe
Merge pull request #11921 from mhilbrunner/docs-tree-treeitem
cbscribe Oct 9, 2017
0c2e882
Adds 'exposed' field to ClassInfo
neikeq Oct 9, 2017
9b6f65a
Mono: Make use of ClassInfo's exposed API
neikeq Oct 9, 2017
18d3ba0
Fix getting struct elements from MonoArray (#11978)
neikeq Oct 9, 2017
73e8618
Define va_copy with --std=c++03 (fixes #11979)
endragor Oct 10, 2017
179f483
Fix issues when rendering panoramic sky in stereoscopic
BastiaanOlij Oct 9, 2017
e9c606f
Made directory scan optional
BastiaanOlij Oct 10, 2017
8ac43bb
Merge pull request #11987 from endragor/define-va-copy
neikeq Oct 10, 2017
3df42cd
Skip unhandled input events on asset library tab.
dkrutskikh Oct 10, 2017
14b9ad1
Fix wrong array index
neikeq Oct 10, 2017
7c443b3
Merge pull request #12000 from neikeq/f
neikeq Oct 10, 2017
547cc8b
Merge pull request #11775 from endragor/android-keyboard-input
Oct 10, 2017
1d8a546
Merge pull request #11919 from Toizi/array_sort_ref
Oct 10, 2017
08f10d8
Merge pull request #11971 from volzhs/freetype-2.8.1
Oct 10, 2017
dda64a3
Merge pull request #11959 from hi-ogawa/fix-shadow-atlas-invalidation
Oct 10, 2017
23a2e2a
[DOCS] - Complete Engine docs
dsaltares Oct 8, 2017
0bf58c0
Merge pull request #11942 from saltares/docs-engine
cbscribe Oct 10, 2017
ee513ab
[DOCS] - Completes the docs for the OS class
dsaltares Oct 8, 2017
51b41dc
Merge pull request #11945 from saltares/docs-os
cbscribe Oct 10, 2017
3ac7cc9
updated AudioStream docs and added AudioServer docs
Grosskopf Oct 10, 2017
600efa0
Use execvp instead of execv to allow OS.execute() to search through P…
Oct 10, 2017
5e06d3d
Improve JavaScript calls
leonkrause Oct 10, 2017
da47f58
Merge pull request #11999 from Grosskopf/AudioServerAndStream-docs
cbscribe Oct 11, 2017
21c2bf8
fix script editor clear recent scripts crash
jagt Oct 11, 2017
130ad80
Fix AnimatedSprite frame property slider in editor
hi-ogawa Oct 11, 2017
45c878e
Merge pull request #11958 from hi-ogawa/fix-shadow-map-front-face
groud Oct 11, 2017
740ef3d
Merge pull request #11954 from neikeq/d
neikeq Oct 11, 2017
409e58e
Merge pull request #12018 from hi-ogawa/fix-animated-sprite-frame-pro…
groud Oct 11, 2017
57d8ff6
Added grabber_area to default_theme sliders. Fixes #11261
Oct 11, 2017
819d933
Bind VisualServer.sync() method to GDScript
StraToN Oct 11, 2017
8f1ed9a
Input: expose joy_connection_changed()
27thLiz Oct 11, 2017
d7b9847
Fix argument names in method bindings.
27thLiz Oct 11, 2017
37bc372
Merge pull request #11818 from tagcup/anisotropic_ggx
akien-mga Oct 11, 2017
490722c
Merge pull request #11875 from endragor/fix-export-loop
akien-mga Oct 11, 2017
98718ec
Merge pull request #11951 from hungrymonkey/fix_issue11873
akien-mga Oct 11, 2017
bac5de0
Merge pull request #11966 from BastiaanOlij/stereo_sky
akien-mga Oct 11, 2017
8ed5e64
Merge pull request #11998 from DmitryKrutskikh/filter-input-events-in…
akien-mga Oct 11, 2017
3e68122
Merge pull request #12010 from eska014/jseval
akien-mga Oct 11, 2017
0e8f0da
Merge pull request #12017 from jagt/fix_clear_recent_scripts_crash
akien-mga Oct 11, 2017
d6fe668
Merge pull request #12026 from hickop/default-theme-sliders
akien-mga Oct 11, 2017
80b0a9d
Merge pull request #12029 from godotengine/visualserver-sync-bind
akien-mga Oct 11, 2017
064f2f4
Merge pull request #12038 from Hinsbart/argument_names
akien-mga Oct 11, 2017
20a32d6
Merge pull request #12039 from Hinsbart/expose_joy_connection
akien-mga Oct 11, 2017
c30ab88
Merge pull request #11539 from BastiaanOlij/remove_directory_scan
akien-mga Oct 11, 2017
b1f2c31
doc: Sync classref with current source
akien-mga Oct 11, 2017
5194c03
turned arround minimum Size for Seperator in reaction to issue #12020
Grosskopf Oct 11, 2017
cb2e88e
Fix viewport vflip
hi-ogawa Oct 12, 2017
8bdb494
updated libpng to version 1.6.33 (September 28, 2017)
ISylvox Oct 12, 2017
abe47ea
Merge pull request #12009 from Elinvention/fork/execvp
hpvb Oct 12, 2017
d68cc72
Merge pull request #12049 from ISylvox/libpng-1.6.33
akien-mga Oct 12, 2017
552384e
Merge pull request #12048 from hi-ogawa/fix-viewport-vflip
akien-mga Oct 12, 2017
3b76eea
Merge pull request #12032 from Grosskopf/seperation-bugfix
akien-mga Oct 12, 2017
f43e49b
[DOCS] DynamicFont
diowonderland Oct 10, 2017
a425a98
[DOCS] DynamicFontData
diowonderland Oct 10, 2017
79922be
Prevent a possible crash at collision_object_2d_sw.h
marcelofg55 Oct 11, 2017
f956f29
Merge pull request #12006 from diowonderland/docs-dynamicfont
akien-mga Oct 12, 2017
5ec3da0
[DOCS] BitmapFont
diowonderland Oct 10, 2017
dbc37af
Added and improved some icons, plus some other minor visual fixes.
djrm Oct 12, 2017
79e247d
Drop unusued LEGACYGL_ENABLED check
akien-mga Oct 12, 2017
a5cabae
Added error dialog when failing to export project
AntiSC2 Oct 12, 2017
bddeaab
Merge pull request #12007 from diowonderland/docs-dynamicfontdata
cbscribe Oct 13, 2017
8bdb04c
Merge pull request #12005 from diowonderland/docs-bitmapfont
cbscribe Oct 13, 2017
42f576f
[DOCS] TabContainer class descriptions
brunosxs Oct 12, 2017
6106fd8
Remove junk output
endragor Oct 13, 2017
750d75d
Merge pull request #12057 from djrm/pr_visual_improvements
akien-mga Oct 13, 2017
e97ada6
Merge pull request #12064 from endragor/junk-logs
akien-mga Oct 13, 2017
26a0cec
Add .xml to .gitattributes
BastiaanOlij Oct 13, 2017
36c8062
Merge pull request #12067 from BastiaanOlij/add_xml_to_gitattributes
akien-mga Oct 13, 2017
41e70d4
Move GDNative docs into gdnative folder
BastiaanOlij Oct 13, 2017
6e909ff
Merge pull request #12068 from BastiaanOlij/gdnative_move_docs
akien-mga Oct 13, 2017
36ca9c9
Merge pull request #12027 from marcelofg55/collision_crashfix
akien-mga Oct 13, 2017
98322a8
EditorHelp: use '<' to show inheritance
Oct 9, 2017
916ee42
removed GDNativeClass doc from GDNative module
karroffel Oct 13, 2017
060c5c0
Merge pull request #12070 from Noshyaar/pr-eh
akien-mga Oct 13, 2017
6147c04
Merge pull request #12071 from karroffel/gdnativeclass-gdscript
akien-mga Oct 13, 2017
a931f90
[DOCS] TouchScreenButton
diowonderland Oct 10, 2017
7009ffa
Merge pull request #12055 from brunosxs/tabcontainer
cbscribe Oct 13, 2017
4585239
Merge pull request #12004 from diowonderland/docs-touchscreenbutton
cbscribe Oct 13, 2017
51597b6
Fix Alpha Border bugfix
ComancheAk Oct 13, 2017
6820f78
Small edits to ConfigFile docs.
Nallebeorn Oct 13, 2017
9001ba2
Added and improved some missing icons, plus some other visual fixes.
djrm Oct 13, 2017
51393eb
New splash screen.
djrm Oct 13, 2017
cc37d43
Redoing the ARVR GDNative interface as module and tighter implementation
BastiaanOlij Oct 7, 2017
5f7667a
Merge pull request #11937 from BastiaanOlij/arvr_fix_gdnative
BastiaanOlij Oct 13, 2017
00a1210
Merge pull request #12078 from Nallebeorn/documentation
akien-mga Oct 14, 2017
4b45ebb
Merge pull request #12080 from djrm/pr_new_splash
akien-mga Oct 14, 2017
0362a15
Merge pull request #12079 from djrm/pr_visual_improvements
groud Oct 14, 2017
e8f8359
Merge pull request #12072 from ComancheAk/fix-alpha-border-bugfix
groud Oct 14, 2017
688deaa
Merge pull request #12059 from AntiSC2/master
akien-mga Oct 14, 2017
9876bad
[DOCS] Improve docs for is_action_just_pressed and is_action_just_rel…
Kaukamieli Oct 14, 2017
59544c7
Fix render mode specular schlick ggx
hi-ogawa Oct 14, 2017
4c716f3
[DOCS] Fix a few typos.
27thLiz Oct 14, 2017
e39082d
Merge pull request #12089 from Hinsbart/fix_doc_typos
akien-mga Oct 14, 2017
e82a3f0
Merge pull request #12091 from hi-ogawa/fix-specular-schlick-ggx
akien-mga Oct 14, 2017
deefc2a
makerst: Fix support for module classes
akien-mga Oct 14, 2017
d030e6e
Expose 'request_frame_drawn_callback' to script.
SaracenOne Oct 14, 2017
9862dcd
Merge pull request #12092 from SaracenOne/request_frame_drawn_callback
reduz Oct 14, 2017
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ drivers/* linguist-vendored
*.h eol=lf
*.py eol=lf
*.hpp eol=lf
*.xml eol=lf
2 changes: 2 additions & 0 deletions SConstruct
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ env_base.AppendENVPath('PATH', os.getenv('PATH'))
env_base.AppendENVPath('PKG_CONFIG_PATH', os.getenv('PKG_CONFIG_PATH'))
env_base.global_defaults = global_defaults
env_base.android_maven_repos = []
env_base.android_flat_dirs = []
env_base.android_dependencies = []
env_base.android_gradle_plugins = []
env_base.android_gradle_classpath = []
Expand All @@ -96,6 +97,7 @@ env_base.SetOption('implicit_cache', 1)


env_base.__class__.android_add_maven_repository = methods.android_add_maven_repository
env_base.__class__.android_add_flat_dir = methods.android_add_flat_dir
env_base.__class__.android_add_dependency = methods.android_add_dependency
env_base.__class__.android_add_java_dir = methods.android_add_java_dir
env_base.__class__.android_add_res_dir = methods.android_add_res_dir
Expand Down
11 changes: 7 additions & 4 deletions core/array.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -233,9 +233,10 @@ struct _ArrayVariantSort {
}
};

void Array::sort() {
Array &Array::sort() {

_p->array.sort_custom<_ArrayVariantSort>();
return *this;
}

struct _ArrayVariantSortCustom {
Expand All @@ -253,19 +254,21 @@ struct _ArrayVariantSortCustom {
return res;
}
};
void Array::sort_custom(Object *p_obj, const StringName &p_function) {
Array &Array::sort_custom(Object *p_obj, const StringName &p_function) {

ERR_FAIL_NULL(p_obj);
ERR_FAIL_NULL_V(p_obj, *this);

SortArray<Variant, _ArrayVariantSortCustom> avs;
avs.compare.obj = p_obj;
avs.compare.func = p_function;
avs.sort(_p->array.ptr(), _p->array.size());
return *this;
}

void Array::invert() {
Array &Array::invert() {

_p->array.invert();
return *this;
}

void Array::push_front(const Variant &p_value) {
Expand Down
6 changes: 3 additions & 3 deletions core/array.h
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,9 @@ class Array {
Variant front() const;
Variant back() const;

void sort();
void sort_custom(Object *p_obj, const StringName &p_function);
void invert();
Array &sort();
Array &sort_custom(Object *p_obj, const StringName &p_function);
Array &invert();

int find(const Variant &p_value, int p_from = 0) const;
int rfind(const Variant &p_value, int p_from = -1) const;
Expand Down
10 changes: 10 additions & 0 deletions core/class_db.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,7 @@ ClassDB::ClassInfo::ClassInfo() {
creation_func = NULL;
inherits_ptr = NULL;
disabled = false;
exposed = false;
}
ClassDB::ClassInfo::~ClassInfo() {
}
Expand Down Expand Up @@ -1284,6 +1285,15 @@ bool ClassDB::is_class_enabled(StringName p_class) {
return !ti->disabled;
}

bool ClassDB::is_class_exposed(StringName p_class) {

OBJTYPE_RLOCK;

ClassInfo *ti = classes.getptr(p_class);
ERR_FAIL_COND_V(!ti, false);
return ti->exposed;
}

StringName ClassDB::get_category(const StringName &p_node) {

ERR_FAIL_COND_V(!classes.has(p_node), StringName());
Expand Down
8 changes: 8 additions & 0 deletions core/class_db.h
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ class ClassDB {
StringName inherits;
StringName name;
bool disabled;
bool exposed;
Object *(*creation_func)();
ClassInfo();
~ClassInfo();
Expand Down Expand Up @@ -168,6 +169,7 @@ class ClassDB {
ClassInfo *t = classes.getptr(T::get_class_static());
ERR_FAIL_COND(!t);
t->creation_func = &creator<T>;
t->exposed = true;
T::register_custom_data_to_otdb();
}

Expand All @@ -176,6 +178,9 @@ class ClassDB {

GLOBAL_LOCK_FUNCTION;
T::initialize_class();
ClassInfo *t = classes.getptr(T::get_class_static());
ERR_FAIL_COND(!t);
t->exposed = true;
//nothing
}

Expand All @@ -193,6 +198,7 @@ class ClassDB {
ClassInfo *t = classes.getptr(T::get_class_static());
ERR_FAIL_COND(!t);
t->creation_func = &_create_ptr_func<T>;
t->exposed = true;
T::register_custom_data_to_otdb();
}

Expand Down Expand Up @@ -347,6 +353,8 @@ class ClassDB {
static void set_class_enabled(StringName p_class, bool p_enable);
static bool is_class_enabled(StringName p_class);

static bool is_class_exposed(StringName p_class);

static void add_resource_base_extension(const StringName &p_extension, const StringName &p_class);
static void get_resource_base_extensions(List<String> *p_extensions);
static void get_extensions_for_type(const StringName &p_class, List<String> *p_extensions);
Expand Down
1 change: 1 addition & 0 deletions core/image.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2474,6 +2474,7 @@ void Image::fix_alpha_edges() {
if (rp[3] < alpha_threshold)
continue;

closest_dist = dist;
closest_color[0] = rp[0];
closest_color[1] = rp[1];
closest_color[2] = rp[2];
Expand Down
4 changes: 2 additions & 2 deletions core/io/file_access_encrypted.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -62,12 +62,12 @@ Error FileAccessEncrypted::open_and_parse(FileAccess *p_base, const Vector<uint8
writing = false;
key = p_key;
uint32_t magic = p_base->get_32();
print_line("MAGIC: " + itos(magic));
ERR_FAIL_COND_V(magic != COMP_MAGIC, ERR_FILE_UNRECOGNIZED);

mode = Mode(p_base->get_32());
ERR_FAIL_INDEX_V(mode, MODE_MAX, ERR_FILE_CORRUPT);
ERR_FAIL_COND_V(mode == 0, ERR_FILE_CORRUPT);
print_line("MODE: " + itos(mode));

unsigned char md5d[16];
p_base->get_buffer(md5d, 16);
length = p_base->get_64();
Expand Down
11 changes: 11 additions & 0 deletions core/io/logger.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,17 @@
#include "os/os.h"
#include "print_string.h"

// va_copy was defined in the C99, but not in C++ standards before C++11.
// When you compile C++ without --std=c++<XX> option, compilers still define
// va_copy, otherwise you have to use the internal version (__va_copy).
#if !defined(va_copy)
#if defined(__GNUC__)
#define va_copy(d, s) __va_copy(d, s)
#else
#define va_copy(d, s) ((d) = (s))
#endif
#endif

bool Logger::should_log(bool p_err) {
return (!p_err || _print_error_enabled) && (p_err || _print_line_enabled);
}
Expand Down
3 changes: 2 additions & 1 deletion core/io/marshalls.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1140,8 +1140,9 @@ Error encode_variant(const Variant &p_variant, uint8_t *r_buffer, int &r_len, bo
if (buf) {
encode_uint32(0, buf);
buf += 4;
r_len += 4;
}
r_len += 4;

} else {
_encode_string(obj->get_class(), buf, r_len);

Expand Down
1 change: 1 addition & 0 deletions core/os/input.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ void Input::_bind_methods() {
ClassDB::bind_method(D_METHOD("is_action_just_released", "action"), &Input::is_action_just_released);
ClassDB::bind_method(D_METHOD("add_joy_mapping", "mapping", "update_existing"), &Input::add_joy_mapping, DEFVAL(false));
ClassDB::bind_method(D_METHOD("remove_joy_mapping", "guid"), &Input::remove_joy_mapping);
ClassDB::bind_method(D_METHOD("joy_connection_changed", "device", "connected", "name", "guid"), &Input::joy_connection_changed);
ClassDB::bind_method(D_METHOD("is_joy_known", "device"), &Input::is_joy_known);
ClassDB::bind_method(D_METHOD("get_joy_axis", "device", "axis"), &Input::get_joy_axis);
ClassDB::bind_method(D_METHOD("get_joy_name", "device"), &Input::get_joy_name);
Expand Down
2 changes: 1 addition & 1 deletion core/os/os.h
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ class OS {

virtual String get_installed_templates_path() const { return ""; }
virtual String get_executable_path() const;
virtual Error execute(const String &p_path, const List<String> &p_arguments, bool p_blocking, ProcessID *r_child_id = NULL, String *r_pipe = NULL, int *r_exitcode = NULL) = 0;
virtual Error execute(const String &p_path, const List<String> &p_arguments, bool p_blocking, ProcessID *r_child_id = NULL, String *r_pipe = NULL, int *r_exitcode = NULL, bool read_stderr = false) = 0;
virtual Error kill(const ProcessID &p_pid) = 0;
virtual int get_process_id() const;

Expand Down
57 changes: 11 additions & 46 deletions core/project_settings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ bool ProjectSettings::_load_resource_pack(const String &p_pack) {
return true;
}

Error ProjectSettings::setup(const String &p_path, const String &p_main_pack) {
Error ProjectSettings::setup(const String &p_path, const String &p_main_pack, bool p_upwards) {

//If looking for files in network, just use network!

Expand All @@ -270,11 +270,6 @@ Error ProjectSettings::setup(const String &p_path, const String &p_main_pack) {
if (_load_settings("res://project.godot") == OK || _load_settings_binary("res://project.binary") == OK) {

_load_settings("res://override.cfg");
#ifdef DEBUG_ENABLED
} else {
// when debug version of godot is used, provide some feedback to the developer
print_line("Couldn't open project over network");
#endif
}

return OK;
Expand All @@ -292,12 +287,6 @@ Error ProjectSettings::setup(const String &p_path, const String &p_main_pack) {
if (_load_settings("res://project.godot") == OK || _load_settings_binary("res://project.binary") == OK) {
//load override from location of the main pack
_load_settings(p_main_pack.get_base_dir().plus_file("override.cfg"));
#ifdef DEBUG_ENABLED
// when debug version of godot is used, provide some feedback to the developer
print_line("Successfully loaded " + p_main_pack + "/project.godot or project.binary");
} else {
print_line("Couldn't load/find " + p_main_pack + "/project.godot or project.binary");
#endif
}

return OK;
Expand All @@ -315,18 +304,9 @@ Error ProjectSettings::setup(const String &p_path, const String &p_main_pack) {
if (_load_resource_pack(datapack_name)) {
found = true;
} else {
#ifdef DEBUG_ENABLED
// when debug version of godot is used, provide some feedback to the developer
print_line("Couldn't open " + datapack_name);
#endif
datapack_name = filebase_name + ".pck";
if (_load_resource_pack(datapack_name)) {
found = true;
#ifdef DEBUG_ENABLED
} else {
// when debug version of godot is used, provide some feedback to the developer
print_line("Couldn't open " + datapack_name);
#endif
}
}

Expand All @@ -335,13 +315,6 @@ Error ProjectSettings::setup(const String &p_path, const String &p_main_pack) {
if (_load_settings("res://project.godot") == OK || _load_settings_binary("res://project.binary") == OK) {
// load override from location of executable
_load_settings(exec_path.get_base_dir().plus_file("override.cfg"));

#ifdef DEBUG_ENABLED
// when debug version of godot is used, provide some feedback to the developer
print_line("Successfully loaded " + datapack_name + "/project.godot or project.binary");
} else {
print_line("Couldn't load/find " + datapack_name + "/project.godot or project.binary");
#endif
}

return OK;
Expand All @@ -362,12 +335,6 @@ Error ProjectSettings::setup(const String &p_path, const String &p_main_pack) {

if (_load_settings("res://project.godot") == OK || _load_settings_binary("res://project.binary") == OK) {
_load_settings("res://override.cfg");
#ifdef DEBUG_ENABLED
// when debug version of godot is used, provide some feedback to the developer
print_line("Successfully loaded " + resource_path + "/project.godot or project.binary");
} else {
print_line("Couldn't load/find " + resource_path + "/project.godot or project.binary");
#endif
}

return OK;
Expand All @@ -393,18 +360,16 @@ Error ProjectSettings::setup(const String &p_path, const String &p_main_pack) {
candidate = current_dir;
found = true;
break;
#ifdef DEBUG_ENABLED
// when debug version of godot is used, provide some feedback to the developer
print_line("Successfully loaded " + current_dir + "/project.godot or project.binary");
} else {
print_line("Couldn't load/find " + current_dir + "/project.godot or project.binary");
#endif
}

d->change_dir("..");
if (d->get_current_dir() == current_dir)
break; //not doing anything useful
current_dir = d->get_current_dir();
if (p_upwards) {
d->change_dir("..");
if (d->get_current_dir() == current_dir)
break; //not doing anything useful
current_dir = d->get_current_dir();
} else {
break;
}
}

resource_path = candidate;
Expand Down Expand Up @@ -667,8 +632,8 @@ Error ProjectSettings::_save_settings_text(const String &p_file, const Map<Strin
file->store_line("; Engine configuration file.");
file->store_line("; It's best edited using the editor UI and not directly,");
file->store_line("; since the parameters that go here are not all obvious.");
file->store_line("; ");
file->store_line("; Format: ");
file->store_line(";");
file->store_line("; Format:");
file->store_line("; [section] ; section goes between []");
file->store_line("; param=value ; assign values to parameters");
file->store_line("");
Expand Down
2 changes: 1 addition & 1 deletion core/project_settings.h
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ class ProjectSettings : public Object {
void set_order(const String &p_name, int p_order);
void set_builtin_order(const String &p_name);

Error setup(const String &p_path, const String &p_main_pack);
Error setup(const String &p_path, const String &p_main_pack, bool p_upwards = false);

Error save_custom(const String &p_path = "", const CustomMap &p_custom = CustomMap(), const Vector<String> &p_custom_features = Vector<String>(), bool p_merge_with_current = true);
Error save();
Expand Down
18 changes: 18 additions & 0 deletions core/register_core_types.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
#include "io/config_file.h"
#include "io/http_client.h"
#include "io/marshalls.h"
#include "io/networked_multiplayer_peer.h"
#include "io/packet_peer.h"
#include "io/packet_peer_udp.h"
#include "io/pck_packer.h"
Expand Down Expand Up @@ -109,6 +110,8 @@ void register_core_types() {

ClassDB::register_class<Object>();

ClassDB::register_virtual_class<Script>();

ClassDB::register_class<Reference>();
ClassDB::register_class<WeakRef>();
ClassDB::register_class<Resource>();
Expand Down Expand Up @@ -136,6 +139,7 @@ void register_core_types() {
ClassDB::register_virtual_class<IP>();
ClassDB::register_virtual_class<PacketPeer>();
ClassDB::register_class<PacketPeerStream>();
ClassDB::register_virtual_class<NetworkedMultiplayerPeer>();
ClassDB::register_class<MainLoop>();
//ClassDB::register_type<OptimizedSaver>();
ClassDB::register_class<Translation>();
Expand Down Expand Up @@ -185,6 +189,20 @@ void register_core_settings() {

void register_core_singletons() {

ClassDB::register_class<ProjectSettings>();
ClassDB::register_virtual_class<IP>();
ClassDB::register_class<_Geometry>();
ClassDB::register_class<_ResourceLoader>();
ClassDB::register_class<_ResourceSaver>();
ClassDB::register_class<_OS>();
ClassDB::register_class<_Engine>();
ClassDB::register_class<_ClassDB>();
ClassDB::register_class<_Marshalls>();
ClassDB::register_class<TranslationServer>();
ClassDB::register_virtual_class<Input>();
ClassDB::register_class<InputMap>();
ClassDB::register_class<_JSON>();

ProjectSettings::get_singleton()->add_singleton(ProjectSettings::Singleton("ProjectSettings", ProjectSettings::get_singleton()));
ProjectSettings::get_singleton()->add_singleton(ProjectSettings::Singleton("IP", IP::get_singleton()));
ProjectSettings::get_singleton()->add_singleton(ProjectSettings::Singleton("Geometry", _Geometry::get_singleton()));
Expand Down
2 changes: 1 addition & 1 deletion doc/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,5 @@ rst:
rm -rf $(OUTPUTDIR)/rst
mkdir -p $(OUTPUTDIR)/rst
pushd $(OUTPUTDIR)/rst
python2 $(TOOLSDIR)/makerst.py $(CLASSES)
python $(TOOLSDIR)/makerst.py $(CLASSES)
popd
2 changes: 1 addition & 1 deletion doc/classes/ARVRInterface.xml
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@
<argument index="0" name="initialized" type="bool">
</argument>
<description>
Initialise/uninitilise this interface (same effect as calling intialize/uninitialize).
Initialize/uninitialize this interface (same effect as calling initialize/uninitialize).
</description>
</method>
<method name="set_is_primary">
Expand Down
Loading