diff options
author | Ken Hughes <khughes@pacific.edu> | 2006-07-03 01:37:06 +0400 |
---|---|---|
committer | Ken Hughes <khughes@pacific.edu> | 2006-07-03 01:37:06 +0400 |
commit | f000ce6fbad75de067a076bc12e4c3403b911eed (patch) | |
tree | 55eec958b7dcf684fe4f0e3cbd33df6ba7a2633e /source/blender/python | |
parent | 9d4ae5ed195dbf58478f46c7e162ba87043222e8 (diff) |
===Python API===
Bugfix: key curve names compared using strncmp instead of strcmp,
resulting in wrong comparisons.
Diffstat (limited to 'source/blender/python')
-rw-r--r-- | source/blender/python/api2_2x/Ipo.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/python/api2_2x/Ipo.c b/source/blender/python/api2_2x/Ipo.c index 225908e2ed2..1ad9f45ee0e 100644 --- a/source/blender/python/api2_2x/Ipo.c +++ b/source/blender/python/api2_2x/Ipo.c @@ -525,7 +525,7 @@ static short lookup_curve_name( char *str, int blocktype, int channel ) char *name = lookup_name ( *adrcodes ); /* if not a texture channel, just return the adrcode */ - if( !strncmp( str, name, strlen( name ) ) ) { + if( !strcmp( str, name ) ) { if( channel == -1 || *adrcodes < MA_MAP1 ) return (short)*adrcodes; @@ -552,7 +552,7 @@ static short lookup_curve_key( char *str, Ipo *ipo ) /* look for a matching string, get the adrcode */ for( block = keyiter->block.first; block; block = block->next ) - if( !strncmp( str, block->name, strlen( block->name) ) ) + if( !strcmp( str, block->name ) ) return block->adrcode; /* no match; no addr code */ |