mirror of
https://github.com/exogen/t2-mapper.git
synced 2026-03-09 23:40:49 +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 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}`);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue