allow import_image to accept script images
import_image and download_image no longer save the set or require it to have been saved once
console panel now tries to output toJson() before falling back to toCode()
This commit is contained in:
GenevensiS
2026-05-14 13:50:02 +02:00
parent 6f4fc0066d
commit 76af996f0a
9 changed files with 78 additions and 40 deletions
@@ -62,6 +62,8 @@ inline static void set_container(Value* container, ScriptValueP& value, String k
cvalue->value = value->toString();
}
else if (PackageChoiceValue* pvalue = dynamic_cast<PackageChoiceValue*>(container)) {
String package_name = value->toString();
while (package_name.starts_with(_("/"))) package_name = package_name.substr(1);
pvalue->package_name = value->toString();
}
else if (ColorValue* cvalue = dynamic_cast<ColorValue*>(container)) {