mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-24 20:19:49 +02:00
feat: cleanup x2
This commit is contained in:
1 parent
483b625f2d
commit
3f40e94235
1 file changed
+2
-4
@@ -1,4 +1,4 @@
|
|||||||
import { range } from 'lodash';
|
import { times } from 'lodash';
|
||||||
import { readDVPL } from './readDVPL';
|
import { readDVPL } from './readDVPL';
|
||||||
import { readDVPLFile } from './readDVPLFile';
|
import { readDVPLFile } from './readDVPLFile';
|
||||||
|
|
||||||
@@ -251,7 +251,7 @@ export class SCPGStream {
|
|||||||
if (types.includes(type)) {
|
if (types.includes(type)) {
|
||||||
vertices.push({
|
vertices.push({
|
||||||
type,
|
type,
|
||||||
value: range(size + 1).map(() => verticesStream.consumeFloat()),
|
value: times(size + 1).map(() => verticesStream.consumeFloat()),
|
||||||
});
|
});
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
@@ -395,8 +395,6 @@ export class SCPGStream {
|
|||||||
}
|
}
|
||||||
|
|
||||||
case KAType.UNCONFIRMED_TRANSFORM: {
|
case KAType.UNCONFIRMED_TRANSFORM: {
|
||||||
if (!stringTable) throw new Error('No string table provided');
|
|
||||||
|
|
||||||
const position = this.consumeVector3();
|
const position = this.consumeVector3();
|
||||||
const scale = this.consumeVector3();
|
const scale = this.consumeVector3();
|
||||||
const rotation = this.consumeVector3();
|
const rotation = this.consumeVector3();
|
||||||
|
|||||||
Reference in new issue
Block a user