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>2013-03-04 23:27:51 +0400
committerCampbell Barton <ideasman42@gmail.com>2013-03-04 23:27:51 +0400
commit0d5b028d43c328f528c8aeb6738f19e442c77eba (patch)
tree5c817370d08e4b6fda3fcc32c77a85608e71b74c /source/blender/nodes
parent013a176c52e5821dd28ff0c5d3506600399b3050 (diff)
patch [#34103] use boolean in path functions and add comments.
path_util_1.patch from Lawrence D'Oliveiro (ldo)
Diffstat (limited to 'source/blender/nodes')
-rw-r--r--source/blender/nodes/composite/nodes/node_composite_outputFile.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/source/blender/nodes/composite/nodes/node_composite_outputFile.c b/source/blender/nodes/composite/nodes/node_composite_outputFile.c
index dc5619ae10c..d9a146ddaad 100644
--- a/source/blender/nodes/composite/nodes/node_composite_outputFile.c
+++ b/source/blender/nodes/composite/nodes/node_composite_outputFile.c
@@ -45,7 +45,7 @@
/* **************** OUTPUT FILE ******************** */
/* find unique path */
-static int unique_path_unique_check(void *arg, const char *name)
+static bool unique_path_unique_check(void *arg, const char *name)
{
struct {ListBase *lb; bNodeSocket *sock;} *data= arg;
bNodeSocket *sock;
@@ -53,10 +53,10 @@ static int unique_path_unique_check(void *arg, const char *name)
if (sock != data->sock) {
NodeImageMultiFileSocket *sockdata = sock->storage;
if (strcmp(sockdata->path, name)==0)
- return 1;
+ return true;
}
}
- return 0;
+ return false;
}
void ntreeCompositOutputFileUniquePath(ListBase *list, bNodeSocket *sock, const char defname[], char delim)
{
@@ -74,7 +74,7 @@ void ntreeCompositOutputFileUniquePath(ListBase *list, bNodeSocket *sock, const
}
/* find unique EXR layer */
-static int unique_layer_unique_check(void *arg, const char *name)
+static bool unique_layer_unique_check(void *arg, const char *name)
{
struct {ListBase *lb; bNodeSocket *sock;} *data= arg;
bNodeSocket *sock;
@@ -82,10 +82,10 @@ static int unique_layer_unique_check(void *arg, const char *name)
if (sock != data->sock) {
NodeImageMultiFileSocket *sockdata = sock->storage;
if (strcmp(sockdata->layer, name)==0)
- return 1;
+ return true;
}
}
- return 0;
+ return false;
}
void ntreeCompositOutputFileUniqueLayer(ListBase *list, bNodeSocket *sock, const char defname[], char delim)
{