Fixed scene property neither being exposed nor being saved
This commit is contained in:
parent
be39cf78b0
commit
536d1f11da
@ -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");
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user