-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
This commit is contained in:
Juan Linietsky
2017-08-28 00:03:34 -03:00
parent 213887f209
commit 8fce79aaee
6 changed files with 154 additions and 85 deletions

View File

@ -864,7 +864,7 @@ void ClassDB::add_property(StringName p_class, const PropertyInfo &p_pinfo, cons
MethodBind *mb_get = NULL;
if (p_getter) {
MethodBind *mb_get = get_method(p_class, p_getter);
mb_get = get_method(p_class, p_getter);
#ifdef DEBUG_METHODS_ENABLED
if (!mb_get) {