Avoid per-constraint-target call of strlen
authorSergey Sharybin <sergey.vfx@gmail.com>
Tue, 10 May 2016 15:15:16 +0000 (17:15 +0200)
committerSergey Sharybin <sergey.vfx@gmail.com>
Tue, 10 May 2016 15:15:16 +0000 (17:15 +0200)
commite343e4a5baf0d608b81093debbdb9f8ca835bb18
tree0fd322c228d7e2f8ae1296471d92f656729b6ebc
parent2786b0bc9d64416817a25ab7e86f5b6cf5ef25b2
Avoid per-constraint-target call of strlen

It's enough to do one single comparison to see if the string is empty or not.
source/blender/blenkernel/intern/constraint.c