skip reference types in Turret for now, handle variable references in the future

This commit is contained in:
Brian Beck 2025-11-26 17:39:18 -08:00
parent 3bb3f7afbd
commit 115da4498b

View file

@ -43,9 +43,11 @@ export function Turret({ object }: { object: ConsoleObject }) {
const scale = useMemo(() => getScale(object), [object]);
const shapeName = getDataBlockShape(dataBlock);
const barrelShapeName = initialBarrel
? getDataBlockShape(initialBarrel)
: undefined;
const barrelShapeName =
typeof initialBarrel === "string"
? getDataBlockShape(initialBarrel)
: undefined;
if (!shapeName) {
console.error(`<Turret> missing shape for dataBlock: ${dataBlock}`);