Explorar o código

FBXLoader: Fix DeformPercent regex. (#25689)

* fix: re match DeformPercent

* Update FBXLoader.js

---------

Co-authored-by: timmyliang <weitian.liang@mihoyo.com>
Co-authored-by: Michael Herzog <michael.herzog@human-interactive.org>
智伤帝 %!s(int64=3) %!d(string=hai) anos
pai
achega
f83bc569da
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      examples/jsm/loaders/FBXLoader.js

+ 1 - 1
examples/jsm/loaders/FBXLoader.js

@@ -2447,7 +2447,7 @@ class AnimationParser {
 
 
 					curveNodesMap.get( animationCurveID ).curves[ 'z' ] = animationCurve;
 					curveNodesMap.get( animationCurveID ).curves[ 'z' ] = animationCurve;
 
 
-				} else if ( animationCurveRelationship.match( /d|DeformPercent/ ) && curveNodesMap.has( animationCurveID ) ) {
+				} else if ( animationCurveRelationship.match( /DeformPercent/ ) && curveNodesMap.has( animationCurveID ) ) {
 
 
 					curveNodesMap.get( animationCurveID ).curves[ 'morph' ] = animationCurve;
 					curveNodesMap.get( animationCurveID ).curves[ 'morph' ] = animationCurve;
 
 

粤ICP备19079148号