Fixed scene property neither being exposed nor being saved

This commit is contained in:
Marc Gilleron 2021-10-31 20:13:27 +00:00
parent be39cf78b0
commit 536d1f11da

View File

@ -14,4 +14,7 @@ Ref<PackedScene> VoxelInstanceLibrarySceneItem::get_scene() const {
void VoxelInstanceLibrarySceneItem::_bind_methods() {
ClassDB::bind_method(D_METHOD("set_scene", "scene"), &VoxelInstanceLibrarySceneItem::set_scene);
ClassDB::bind_method(D_METHOD("get_scene"), &VoxelInstanceLibrarySceneItem::get_scene);
ADD_PROPERTY(PropertyInfo(Variant::OBJECT, "scene", PROPERTY_HINT_RESOURCE_TYPE, "PackedScene"),
"set_scene", "get_scene");
}