Skip to content

Commit

Permalink
Fix crash when python script doesn't contains script class
Browse files Browse the repository at this point in the history
  • Loading branch information
touilleMan committed Jan 9, 2018
1 parent 52f93aa commit 7282771
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pythonscript/embedded/bootstrap.inc.py
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,8 @@ def pybind_script_init(handle, path, source, r_error):
cls = get_exposed_class_per_module(modname)
except Exception:
r_error[0] = lib.GODOT_ERR_PARSE_ERROR
raise
# Obliged to return the structure, but no need in init it
return ffi.new('godot_pluginscript_script_manifest*')
r_error[0] = lib.GODOT_OK
return _build_script_manifest(cls)[0]

Expand Down

0 comments on commit 7282771

Please sign in to comment.