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:
Diffstat (limited to 'source/blender/blenlib')
-rw-r--r--source/blender/blenlib/BLI_graph.h4
-rw-r--r--source/blender/blenlib/intern/graph.c10
-rw-r--r--source/blender/blenlib/intern/uvproject.c2
3 files changed, 8 insertions, 8 deletions
diff --git a/source/blender/blenlib/BLI_graph.h b/source/blender/blenlib/BLI_graph.h
index 864e92d8cac..7936f5a6fab 100644
--- a/source/blender/blenlib/BLI_graph.h
+++ b/source/blender/blenlib/BLI_graph.h
@@ -138,7 +138,7 @@ void BLI_removeArc(BGraph *graph, BArc *arc);
void BLI_flagNodes(BGraph *graph, int flag);
void BLI_flagArcs(BGraph *graph, int flag);
-int BLI_hasAdjacencyList(BGraph *rg);
+bool BLI_hasAdjacencyList(BGraph *rg);
void BLI_buildAdjacencyList(BGraph *rg);
void BLI_rebuildAdjacencyListForNode(BGraph *rg, BNode *node);
void BLI_freeAdjacencyList(BGraph *rg);
@@ -159,7 +159,7 @@ BNode *BLI_FindNodeByPosition(BGraph *graph, const float p[3], const float limit
BArc *BLI_findConnectedArc(BGraph *graph, BArc *arc, BNode *v);
-int BLI_isGraphCyclic(BGraph *graph);
+bool BLI_isGraphCyclic(BGraph *graph);
/*------------ Symmetry handling ------------*/
void BLI_markdownSymmetry(BGraph *graph, BNode *root_node, float limit);
diff --git a/source/blender/blenlib/intern/graph.c b/source/blender/blenlib/intern/graph.c
index 9ec183ab9a2..e7651b70a5b 100644
--- a/source/blender/blenlib/intern/graph.c
+++ b/source/blender/blenlib/intern/graph.c
@@ -164,7 +164,7 @@ void BLI_freeAdjacencyList(BGraph *graph)
}
}
-int BLI_hasAdjacencyList(BGraph *graph)
+bool BLI_hasAdjacencyList(BGraph *graph)
{
BNode *node;
@@ -317,9 +317,9 @@ void BLI_ReflagSubgraph(BGraph *graph, int old_subgraph, int new_subgraph)
/*************************************** CYCLE DETECTION ***********************************************/
-static int detectCycle(BNode *node, BArc *src_arc)
+static bool detectCycle(BNode *node, BArc *src_arc)
{
- int value = 0;
+ bool value = false;
if (node->flag == 0) {
int i;
@@ -343,10 +343,10 @@ static int detectCycle(BNode *node, BArc *src_arc)
return value;
}
-int BLI_isGraphCyclic(BGraph *graph)
+bool BLI_isGraphCyclic(BGraph *graph)
{
BNode *node;
- int value = 0;
+ bool value = false;
/* NEED TO CHECK IF ADJACENCY LIST EXIST */
diff --git a/source/blender/blenlib/intern/uvproject.c b/source/blender/blenlib/intern/uvproject.c
index a741c9858c3..730ab01bfd2 100644
--- a/source/blender/blenlib/intern/uvproject.c
+++ b/source/blender/blenlib/intern/uvproject.c
@@ -39,7 +39,7 @@ typedef struct ProjCameraInfo {
float shiftx, shifty;
float rotmat[4][4];
float caminv[4][4];
- short do_persp, do_pano, do_rotmat;
+ bool do_persp, do_pano, do_rotmat;
} ProjCameraInfo;
void BLI_uvproject_from_camera(float target[2], float source[3], ProjCameraInfo *uci)