mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2024-12-30 15:47:12 +01:00
Also apply the previous fix to cscript.
This commit is contained in:
parent
cdeba9e5d1
commit
04e45474bb
@ -4725,6 +4725,7 @@ void CScriptParser::_parse_class(ClassNode *p_class) {
|
|||||||
if (autoexport && member.data_type.has_type) {
|
if (autoexport && member.data_type.has_type) {
|
||||||
if (member.data_type.kind == DataType::BUILTIN) {
|
if (member.data_type.kind == DataType::BUILTIN) {
|
||||||
member._export.type = member.data_type.builtin_type;
|
member._export.type = member.data_type.builtin_type;
|
||||||
|
member._export.usage |= PROPERTY_USAGE_SCRIPT_VARIABLE;
|
||||||
} else if (member.data_type.kind == DataType::NATIVE) {
|
} else if (member.data_type.kind == DataType::NATIVE) {
|
||||||
if (ClassDB::is_parent_class(member.data_type.native_type, "Resource")) {
|
if (ClassDB::is_parent_class(member.data_type.native_type, "Resource")) {
|
||||||
member._export.type = Variant::OBJECT;
|
member._export.type = Variant::OBJECT;
|
||||||
|
Loading…
Reference in New Issue
Block a user