Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2016-04-01 01:24:50 +0300
committerCampbell Barton <ideasman42@gmail.com>2016-04-01 01:24:50 +0300
commitbc318fc47099df92323276f849fe5a6ce9007546 (patch)
treef3b2eca8f5db7394da77e638cadca762b82b14de /source/blender/editors/animation/drivers.c
parent83b5f0268ef766ccc97c89cc6efe2b8a95f7dddc (diff)
Use STRPREFIX macro for testing property name
Diffstat (limited to 'source/blender/editors/animation/drivers.c')
-rw-r--r--source/blender/editors/animation/drivers.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/animation/drivers.c b/source/blender/editors/animation/drivers.c
index d0c749063f0..f75f2ce322c 100644
--- a/source/blender/editors/animation/drivers.c
+++ b/source/blender/editors/animation/drivers.c
@@ -214,7 +214,7 @@ static int add_driver_with_target(
dvar = driver_add_new_variable(driver);
if (ELEM(src_ptr->type, &RNA_Object, &RNA_PoseBone) &&
- (STREQ(prop_name, "location") || STREQ(prop_name, "scale") || strstr(prop_name, "rotation_")))
+ (STREQ(prop_name, "location") || STREQ(prop_name, "scale") || STRPREFIX(prop_name, "rotation_")))
{
/* Transform Channel */
DriverTarget *dtar;