mirror of
https://github.com/exogen/t2-mapper.git
synced 2026-07-16 00:44:59 +00:00
skip reference types in Turret for now, handle variable references in the future
This commit is contained in:
parent
3bb3f7afbd
commit
115da4498b
1 changed files with 5 additions and 3 deletions
|
|
@ -43,9 +43,11 @@ export function Turret({ object }: { object: ConsoleObject }) {
|
||||||
const scale = useMemo(() => getScale(object), [object]);
|
const scale = useMemo(() => getScale(object), [object]);
|
||||||
|
|
||||||
const shapeName = getDataBlockShape(dataBlock);
|
const shapeName = getDataBlockShape(dataBlock);
|
||||||
const barrelShapeName = initialBarrel
|
|
||||||
? getDataBlockShape(initialBarrel)
|
const barrelShapeName =
|
||||||
: undefined;
|
typeof initialBarrel === "string"
|
||||||
|
? getDataBlockShape(initialBarrel)
|
||||||
|
: undefined;
|
||||||
|
|
||||||
if (!shapeName) {
|
if (!shapeName) {
|
||||||
console.error(`<Turret> missing shape for dataBlock: ${dataBlock}`);
|
console.error(`<Turret> missing shape for dataBlock: ${dataBlock}`);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue