CIDARLAB / 3DuF

Invalid variable usage JS-0043
Anti-pattern
Critical
15 days ago3 years old
'tempVector' used outside of binding context
 772                                                        // the inverse takes the vector into local bone space
 773                                                        // which is then transformed to the appropriate world space
 774                                                        tempVector.applyMatrix4(inverses[k]).applyMatrix4(skinMatrices[k]);
 775                                                        finalVector.add(tempVector); 776                                                    }
 777
 778                                                    output += "\t\t\tvertex " + finalVector.x + " " + finalVector.y + " " + finalVector.z + "\n";
'tempVector' used outside of binding context
 772                                                        // the inverse takes the vector into local bone space
 773                                                        // which is then transformed to the appropriate world space
 774                                                        tempVector.applyMatrix4(inverses[k]).applyMatrix4(skinMatrices[k]);
 775                                                        finalVector.add(tempVector); 776                                                    }
 777
 778                                                    output += "\t\t\tvertex " + finalVector.x + " " + finalVector.y + " " + finalVector.z + "\n";
'tempVector' used outside of binding context
 771                                                        tempVector.multiplyScalar(weights[k]);
 772                                                        // the inverse takes the vector into local bone space
 773                                                        // which is then transformed to the appropriate world space
 774                                                        tempVector.applyMatrix4(inverses[k]).applyMatrix4(skinMatrices[k]); 775                                                        finalVector.add(tempVector);
 776                                                    }
 777
'tempVector' used outside of binding context
 771                                                        tempVector.multiplyScalar(weights[k]);
 772                                                        // the inverse takes the vector into local bone space
 773                                                        // which is then transformed to the appropriate world space
 774                                                        tempVector.applyMatrix4(inverses[k]).applyMatrix4(skinMatrices[k]); 775                                                        finalVector.add(tempVector);
 776                                                    }
 777
'tempVector' used outside of binding context
 768                                                        } else {
 769                                                            var tempVector = new THREE.Vector4(vector.x, vector.y, vector.z);
 770                                                        }
 771                                                        tempVector.multiplyScalar(weights[k]); 772                                                        // the inverse takes the vector into local bone space
 773                                                        // which is then transformed to the appropriate world space
 774                                                        tempVector.applyMatrix4(inverses[k]).applyMatrix4(skinMatrices[k]);