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:
authorHans Goudey <h.goudey@me.com>2020-09-04 18:56:56 +0300
committerHans Goudey <h.goudey@me.com>2020-09-04 18:56:56 +0300
commit417695e4a8bff7927a936797ca01c6461ce0eaf7 (patch)
tree1d7a1ff4b95d09bbb6319f4378520e43f170e6ac /source/blender/blenkernel/BKE_curveprofile.h
parentce67a9d39f0feef89bbb9f7835b52884921e66ed (diff)
Curve Profile: Miscellaneous cleanup
- Declare variables where they are initialized - Use consistent variable and static function names - Use helper functions more for common operations - Remove use of BezTriple struct, use CurveProfilePoint instead - Apply small simplifications to code in some situations
Diffstat (limited to 'source/blender/blenkernel/BKE_curveprofile.h')
-rw-r--r--source/blender/blenkernel/BKE_curveprofile.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/blenkernel/BKE_curveprofile.h b/source/blender/blenkernel/BKE_curveprofile.h
index 9c72a866fa9..08d3da7123c 100644
--- a/source/blender/blenkernel/BKE_curveprofile.h
+++ b/source/blender/blenkernel/BKE_curveprofile.h
@@ -23,6 +23,8 @@
* \ingroup bke
*/
+#include "DNA_curveprofile_types.h"
+
#ifdef __cplusplus
extern "C" {
#endif
@@ -34,7 +36,7 @@ struct CurveProfilePoint;
void BKE_curveprofile_set_defaults(struct CurveProfile *profile);
-struct CurveProfile *BKE_curveprofile_add(int preset);
+struct CurveProfile *BKE_curveprofile_add(eCurveProfilePresets preset);
void BKE_curveprofile_free_data(struct CurveProfile *profile);