mikktspace: minor optimization
authorCampbell Barton <ideasman42@gmail.com>
Wed, 2 Aug 2017 21:03:59 +0000 (07:03 +1000)
committerCampbell Barton <ideasman42@gmail.com>
Wed, 2 Aug 2017 21:03:59 +0000 (07:03 +1000)
commitba98f06acc999da5f102f581c433398a6387e68b
tree36bff14f244aaf70b73c37e5929b808c00221920
parentf879cac03263be6fb18efdd1aef4f0fd96a568aa
mikktspace: minor optimization

Add a safe version of normalize since all uses of normalize
did zero length checks, move this into a function.

Also avoid unnecessary conversion.

Gives minor speedup here (approx 3-5%).
intern/mikktspace/mikktspace.c