[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [11794] trunk/blender/source/blender/src/ editipo_lib.c: Fix for a compiler warning caused by one of my commits yesterday.
Joshua Leung
aligorith at gmail.com
Thu Aug 23 11:37:58 CEST 2007
Revision: 11794
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=11794
Author: aligorith
Date: 2007-08-23 11:37:58 +0200 (Thu, 23 Aug 2007)
Log Message:
-----------
Fix for a compiler warning caused by one of my commits yesterday.
Modified Paths:
--------------
trunk/blender/source/blender/src/editipo_lib.c
Modified: trunk/blender/source/blender/src/editipo_lib.c
===================================================================
--- trunk/blender/source/blender/src/editipo_lib.c 2007-08-23 06:25:45 UTC (rev 11793)
+++ trunk/blender/source/blender/src/editipo_lib.c 2007-08-23 09:37:58 UTC (rev 11794)
@@ -150,15 +150,11 @@
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);
More information about the Bf-blender-cvs
mailing list