forked from bartvdbraak/blender
Fix for a compiler warning caused by one of my commits yesterday.
This commit is contained in:
parent
6cd036ed44
commit
866218eb15
@ -150,15 +150,11 @@ char *getname_ipocurve(IpoCurve *icu, Object *ob)
|
||||
Key *key= ob_get_key(ob);
|
||||
KeyBlock *kb= key_get_keyblock(key, icu->adrcode);
|
||||
|
||||
if (kb) {
|
||||
/* only return name if it has been set, otherwise use
|
||||
* default method using static string (Key #)
|
||||
*/
|
||||
if (kb->name[0] == '\0')
|
||||
break; /* stop looping through keyblocks */
|
||||
else
|
||||
return kb->name; /* return keyblock's name */
|
||||
}
|
||||
/* only return name if it has been set, otherwise use
|
||||
* default method using static string (Key #)
|
||||
*/
|
||||
if ((kb) && (kb->name[0] != '\0'))
|
||||
return kb->name; /* return keyblock's name */
|
||||
|
||||
/* in case keyblock is not named or no key/keyblock was found */
|
||||
sprintf(name, "Key %d", icu->adrcode);
|
||||
|
Loading…
Reference in New Issue
Block a user