Resource.duplicate(true)
triggers parser error when resource's script has class_name
#70570
Labels
Resource.duplicate(true)
triggers parser error when resource's script has class_name
#70570
Godot version
4.0beta10
System information
Windows 10, Vulkan
Issue description
duplicate
always crashes on a custom resource whensubresources=true
is passed for the first argument, with the error "Condition "path.is_empty()" is true.
". This happens whether or not there are subresources.Based on the error, it looks like a
resource_path
is expected, but this is an in-memory resource which has never been persisted to disk.Steps to reproduce
Resource
.duplicate(true)
on an instance of the custom class.Minimal reproduction project
ResourceDuplicationBug.zip
The text was updated successfully, but these errors were encountered: