Refactoring: remove _img from Svg.ts

This commit is contained in:
Pieter Vander Vennet 2023-05-08 22:38:47 +02:00
parent 5a2e54b00a
commit 15063f9be0
3 changed files with 4 additions and 6 deletions

View file

@ -87,7 +87,7 @@ export default class PointRenderingConfig extends WithContextLoader {
const iconPath = this.icon?.GetRenderValue({ id: "node/-1" })?.txt
if (iconPath !== undefined && iconPath.startsWith(Utils.assets_path)) {
const iconKey = iconPath.substr(Utils.assets_path.length)
if (Constants.defaultPinIcons.indexOf(iconKey) < 0) {
if (Svg.All[iconKey] === undefined) {
throw context + ": builtin SVG asset not found: " + iconPath
}
}