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>2012-12-10 03:19:46 +0400
committerTamito Kajiyama <rd6t-kjym@asahi-net.or.jp>2012-12-10 03:19:46 +0400
commit5083e0737f6413c63ab49b82735333534181d9b4 (patch)
treeb21a7977e79ff5db7bc2c7f53471cc2f5ccf76bd /source/blender/makesdna/DNA_linestyle_types.h
parent3c4987f98378d44eda133311c65aa19412e4cd38 (diff)
All angle properties were switched from degrees to radians (using PROP_ANGLE
RNA subtype), since Freestyle internally use angles in radians. A patch set by Bastien Montagne (many thanks!) NOTICE FOR BRANCH USERS: This commit may break line drawing settings of already saved Freestyle files. All angles are now treated as radians instead of degrees, so collections of angle values might be necessary in order to recover previous visual results. Affected properties are: - Crease Angle in the edge detection options - Min 2D Angle in the 'Splitting' section of a line style - Max 2D Angle in the 'Splitting' section of a line style - 'orientation' parameter of the Calligraphy thickness modifier - 'angle' parameter of the PerlinNoise1D geometry modifier - 'angle' parameter of the PerlinNoise2D geometry modifier - 'angle' parameter of the 2DTransform geometry modifier
Diffstat (limited to 'source/blender/makesdna/DNA_linestyle_types.h')
-rw-r--r--source/blender/makesdna/DNA_linestyle_types.h12
1 files changed, 7 insertions, 5 deletions
diff --git a/source/blender/makesdna/DNA_linestyle_types.h b/source/blender/makesdna/DNA_linestyle_types.h
index 2507b072a2f..5ceb89e020a 100644
--- a/source/blender/makesdna/DNA_linestyle_types.h
+++ b/source/blender/makesdna/DNA_linestyle_types.h
@@ -267,7 +267,8 @@ typedef struct LineStyleGeometryModifier_SpatialNoise {
typedef struct LineStyleGeometryModifier_PerlinNoise1D {
struct LineStyleModifier modifier;
- float frequency, amplitude, angle;
+ float frequency, amplitude;
+ float angle; /* in radians! */
unsigned int octaves;
int seed;
int pad1;
@@ -277,7 +278,8 @@ typedef struct LineStyleGeometryModifier_PerlinNoise1D {
typedef struct LineStyleGeometryModifier_PerlinNoise2D {
struct LineStyleModifier modifier;
- float frequency, amplitude, angle;
+ float frequency, amplitude;
+ float angle; /* in radians! */
unsigned int octaves;
int seed;
int pad1;
@@ -353,7 +355,7 @@ typedef struct LineStyleGeometryModifier_2DTransform {
int pivot;
float scale_x, scale_y;
- float angle;
+ float angle; /* in radians! */
float pivot_u;
float pivot_x, pivot_y;
int pad;
@@ -366,7 +368,7 @@ typedef struct LineStyleThicknessModifier_Calligraphy {
struct LineStyleModifier modifier;
float min_thickness, max_thickness;
- float orientation;
+ float orientation; /* in radians! */
int pad;
} LineStyleThicknessModifier_Calligraphy;
@@ -419,7 +421,7 @@ typedef struct FreestyleLineStyle {
int chaining;
unsigned int rounds;
float split_length;
- float min_angle, max_angle; /* for splitting */
+ float min_angle, max_angle; /* in radians, for splitting */
float min_length, max_length;
unsigned short split_dash1, split_gap1;
unsigned short split_dash2, split_gap2;