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:
authorJoshua Leung <aligorith@gmail.com>2006-12-11 06:47:15 +0300
committerJoshua Leung <aligorith@gmail.com>2006-12-11 06:47:15 +0300
commitc41e0e205f81fa0ebe217350e1730e67f8be99c9 (patch)
tree24c8d26312d6e60393f903e60769eaac1e955548 /source/blender/include/blendef.h
parentb69fdd21ba10194735f2526390077384bae54eba (diff)
A little bit of code cleanup:
* Moved BEZSELECTED macro to blendef.h as it is used in several files * Removed other duplicated macros
Diffstat (limited to 'source/blender/include/blendef.h')
-rw-r--r--source/blender/include/blendef.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/include/blendef.h b/source/blender/include/blendef.h
index 35110175d48..fee04ac50a8 100644
--- a/source/blender/include/blendef.h
+++ b/source/blender/include/blendef.h
@@ -114,6 +114,7 @@
#define ISPOIN3(a, b, c, d) ( (a->b) && (a->c) && (a->d) )
#define ISPOIN4(a, b, c, d, e) ( (a->b) && (a->c) && (a->d) && (a->e) )
+#define BEZSELECTED(bezt) (((bezt)->f1 & 1) || ((bezt)->f2 & 1) || ((bezt)->f3 & 1))
/* psfont */
#define FNT_PDRAW 1