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>2019-06-03 17:21:57 +0300
committerCampbell Barton <ideasman42@gmail.com>2019-06-03 17:24:38 +0300
commit1f650c402d3b43eee7cb51c7d4f373ba82ac2116 (patch)
treeba2432fe9424ae545d3758d37ec8ebb0419a2ba5 /source/blender/makesrna/intern/rna_cloth.c
parente3f2034e7b925bc7e31e65051842cf26d70a20bc (diff)
Cleanup: style, use braces in RNA
Diffstat (limited to 'source/blender/makesrna/intern/rna_cloth.c')
-rw-r--r--source/blender/makesrna/intern/rna_cloth.c33
1 files changed, 22 insertions, 11 deletions
diff --git a/source/blender/makesrna/intern/rna_cloth.c b/source/blender/makesrna/intern/rna_cloth.c
index f5cb29b5e69..c93833ef493 100644
--- a/source/blender/makesrna/intern/rna_cloth.c
+++ b/source/blender/makesrna/intern/rna_cloth.c
@@ -76,8 +76,9 @@ static void rna_ClothSettings_bending_set(struct PointerRNA *ptr, float value)
settings->bending = value;
/* check for max clipping */
- if (value > settings->max_bend)
+ if (value > settings->max_bend) {
settings->max_bend = value;
+ }
}
static void rna_ClothSettings_max_bend_set(struct PointerRNA *ptr, float value)
@@ -85,8 +86,9 @@ static void rna_ClothSettings_max_bend_set(struct PointerRNA *ptr, float value)
ClothSimSettings *settings = (ClothSimSettings *)ptr->data;
/* check for clipping */
- if (value < settings->bending)
+ if (value < settings->bending) {
value = settings->bending;
+ }
settings->max_bend = value;
}
@@ -98,8 +100,9 @@ static void rna_ClothSettings_tension_set(struct PointerRNA *ptr, float value)
settings->tension = value;
/* check for max clipping */
- if (value > settings->max_tension)
+ if (value > settings->max_tension) {
settings->max_tension = value;
+ }
}
static void rna_ClothSettings_max_tension_set(struct PointerRNA *ptr, float value)
@@ -107,8 +110,9 @@ static void rna_ClothSettings_max_tension_set(struct PointerRNA *ptr, float valu
ClothSimSettings *settings = (ClothSimSettings *)ptr->data;
/* check for clipping */
- if (value < settings->tension)
+ if (value < settings->tension) {
value = settings->tension;
+ }
settings->max_tension = value;
}
@@ -120,8 +124,9 @@ static void rna_ClothSettings_compression_set(struct PointerRNA *ptr, float valu
settings->compression = value;
/* check for max clipping */
- if (value > settings->max_compression)
+ if (value > settings->max_compression) {
settings->max_compression = value;
+ }
}
static void rna_ClothSettings_max_compression_set(struct PointerRNA *ptr, float value)
@@ -129,8 +134,9 @@ static void rna_ClothSettings_max_compression_set(struct PointerRNA *ptr, float
ClothSimSettings *settings = (ClothSimSettings *)ptr->data;
/* check for clipping */
- if (value < settings->compression)
+ if (value < settings->compression) {
value = settings->compression;
+ }
settings->max_compression = value;
}
@@ -142,8 +148,9 @@ static void rna_ClothSettings_shear_set(struct PointerRNA *ptr, float value)
settings->shear = value;
/* check for max clipping */
- if (value > settings->max_shear)
+ if (value > settings->max_shear) {
settings->max_shear = value;
+ }
}
static void rna_ClothSettings_max_shear_set(struct PointerRNA *ptr, float value)
@@ -151,8 +158,9 @@ static void rna_ClothSettings_max_shear_set(struct PointerRNA *ptr, float value)
ClothSimSettings *settings = (ClothSimSettings *)ptr->data;
/* check for clipping */
- if (value < settings->shear)
+ if (value < settings->shear) {
value = settings->shear;
+ }
settings->max_shear = value;
}
@@ -162,8 +170,9 @@ static void rna_ClothSettings_max_sewing_set(struct PointerRNA *ptr, float value
ClothSimSettings *settings = (ClothSimSettings *)ptr->data;
/* check for clipping */
- if (value < 0.0f)
+ if (value < 0.0f) {
value = 0.0f;
+ }
settings->max_sewing = value;
}
@@ -175,8 +184,9 @@ static void rna_ClothSettings_shrink_min_set(struct PointerRNA *ptr, float value
settings->shrink_min = value;
/* check for max clipping */
- if (value > settings->shrink_max)
+ if (value > settings->shrink_max) {
settings->shrink_max = value;
+ }
}
static void rna_ClothSettings_shrink_max_set(struct PointerRNA *ptr, float value)
@@ -184,8 +194,9 @@ static void rna_ClothSettings_shrink_max_set(struct PointerRNA *ptr, float value
ClothSimSettings *settings = (ClothSimSettings *)ptr->data;
/* check for clipping */
- if (value < settings->shrink_min)
+ if (value < settings->shrink_min) {
value = settings->shrink_min;
+ }
settings->shrink_max = value;
}