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:
authorHallam Roberts <MysteryPancake>2022-03-11 18:14:05 +0300
committerBrecht Van Lommel <brecht@blender.org>2022-03-11 20:27:58 +0300
commit3da84d8b086bd2d09beb5bdb89ba6beddf1e1dd6 (patch)
tree698e6793ba776716a256abf10ed4b1623ade15eb /source/blender/makesdna/DNA_modifier_defaults.h
parent62a0984d7290cbd6fd3acfa79d53765f97f93b0a (diff)
Cleanup: use M_PI_2 and M_PI_4 where possible
The constant M_PI_4 is added to GLSL to ensure it works there too. Differential Revision: https://developer.blender.org/D14288
Diffstat (limited to 'source/blender/makesdna/DNA_modifier_defaults.h')
-rw-r--r--source/blender/makesdna/DNA_modifier_defaults.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/makesdna/DNA_modifier_defaults.h b/source/blender/makesdna/DNA_modifier_defaults.h
index 41cc8048de1..299ac4e2fbe 100644
--- a/source/blender/makesdna/DNA_modifier_defaults.h
+++ b/source/blender/makesdna/DNA_modifier_defaults.h
@@ -145,7 +145,7 @@
.compression_damp = 5.0f, \
.shear_damp = 5.0f, \
.internal_spring_max_length = 0.0f, \
- .internal_spring_max_diversion = M_PI / 4.0f, \
+ .internal_spring_max_diversion = M_PI_4, \
.vgroup_intern = 0, \
.internal_tension = 15.0f, \
.internal_compression = 15.0f, \