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:
authorTamito Kajiyama <rd6t-kjym@asahi-net.or.jp>2010-07-13 03:31:15 +0400
committerTamito Kajiyama <rd6t-kjym@asahi-net.or.jp>2010-07-13 03:31:15 +0400
commit8d131d519bf448bcccddb833c263bc36af22d6b5 (patch)
tree7d5bb8d5e9405c741c593a3c149d18426026535e /source/blender/makesdna/DNA_freestyle_types.h
parentcf2ff0b03e41550222e28d7b3986bbd027a2e301 (diff)
Rearranged the organization of UI controls for feature edge selection
criteria. Now the Inclusive/Exclusive and Logical AND/OR options are only applied to feature edge types, while the conditions on visibility and edge types are always combined by logical conjunction. Also, the crease angle, sphere radius and Kr derivative epsilon are treated as render layer-specific options instead of lineset-specific options.
Diffstat (limited to 'source/blender/makesdna/DNA_freestyle_types.h')
-rw-r--r--source/blender/makesdna/DNA_freestyle_types.h35
1 files changed, 18 insertions, 17 deletions
diff --git a/source/blender/makesdna/DNA_freestyle_types.h b/source/blender/makesdna/DNA_freestyle_types.h
index 19a16ab8868..e415d580c4d 100644
--- a/source/blender/makesdna/DNA_freestyle_types.h
+++ b/source/blender/makesdna/DNA_freestyle_types.h
@@ -16,20 +16,23 @@
/* FreestyleLineSet::flags */
#define FREESTYLE_LINESET_CURRENT 1
#define FREESTYLE_LINESET_ENABLED 2
-#define FREESTYLE_LINESET_SEL_NOT 4
-#define FREESTYLE_LINESET_SEL_OR 8
+#define FREESTYLE_LINESET_FE_NOT 4
+#define FREESTYLE_LINESET_FE_OR 8
/* FreestyleLineSet::selection */
-#define FREESTYLE_SEL_SILHOUETTE 1
-#define FREESTYLE_SEL_BORDER 2
-#define FREESTYLE_SEL_CREASE 4
-#define FREESTYLE_SEL_RIDGE 8
-#define FREESTYLE_SEL_VALLEY 16
-#define FREESTYLE_SEL_SUGGESTIVE_CONTOUR 32
-#define FREESTYLE_SEL_MATERIAL_BOUNDARY 64
-#define FREESTYLE_SEL_CONTOUR 128
-#define FREESTYLE_SEL_EXTERNAL_CONTOUR 256
-#define FREESTYLE_SEL_VISIBILITY 512
+#define FREESTYLE_SEL_VISIBILITY 1
+#define FREESTYLE_SEL_EDGE_TYPES 2
+
+/* FreestyleLineSet::fedge_types */
+#define FREESTYLE_FE_SILHOUETTE 1
+#define FREESTYLE_FE_BORDER 2
+#define FREESTYLE_FE_CREASE 4
+#define FREESTYLE_FE_RIDGE 8
+#define FREESTYLE_FE_VALLEY 16
+#define FREESTYLE_FE_SUGGESTIVE_CONTOUR 32
+#define FREESTYLE_FE_MATERIAL_BOUNDARY 64
+#define FREESTYLE_FE_CONTOUR 128
+#define FREESTYLE_FE_EXTERNAL_CONTOUR 512
/* FreestyleLineSet::qi */
#define FREESTYLE_QI_VISIBLE 1
@@ -46,14 +49,12 @@ typedef struct FreestyleLineSet {
char name[32]; /* line set name */
int flags;
- int selection; /* feature edge selection */
- float crease_angle;
- float sphere_radius;
- float dkr_epsilon;
+ int selection; /* selection criteria */
short qi; /* quantitative invisibility */
- short pad;
+ short pad1;
int qi_start, qi_end;
+ int edge_types; /* feature edge types */
FreestyleLineStyle *linestyle; /* line style */