@needle-tools/three 0.162.8 → 0.162.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -280,9 +280,8 @@ class OrbitControls extends EventDispatcher {
|
|
|
280
280
|
|
|
281
281
|
}
|
|
282
282
|
|
|
283
|
-
spherical.radius = clampDistance( spherical.radius * currentScale );
|
|
284
283
|
const prevRadius = spherical.radius;
|
|
285
|
-
spherical.radius = clampDistance( spherical.radius *
|
|
284
|
+
spherical.radius = clampDistance( spherical.radius * currentScale );
|
|
286
285
|
zoomChanged = prevRadius != spherical.radius;
|
|
287
286
|
|
|
288
287
|
}
|
|
@@ -2318,6 +2318,8 @@ class GeometryParser {
|
|
|
2318
2318
|
// Parse Vertex Colors from FBXTree.Objects.Geometry.LayerElementColor if it exists
|
|
2319
2319
|
parseVertexColors( ColorNode ) {
|
|
2320
2320
|
|
|
2321
|
+
if ( !ColorNode.Colors ) return undefined;
|
|
2322
|
+
|
|
2321
2323
|
const mappingType = ColorNode.MappingInformationType;
|
|
2322
2324
|
const referenceType = ColorNode.ReferenceInformationType;
|
|
2323
2325
|
const buffer = ColorNode.Colors.a;
|