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-10-14 15:14:51 +0300
committerHans Goudey <h.goudey@me.com>2020-10-14 15:14:51 +0300
commitd3b59d1358424371725526de824f45aa419cc13d (patch)
treea6f078cf0f8081af235bbc1bfe8ea12c9135ba27 /source/blender/makesdna/intern
parenta181b156399a13fa429159112e30c8005d5e8a59 (diff)
Cleanup: Use DNA defaults for fluid modifier
This will make the "Reset to Default Value" operator in button right click menus work for the fluid modifier. Before they always reset the values to 0. Differential Revision: https://developer.blender.org/D9206
Diffstat (limited to 'source/blender/makesdna/intern')
-rw-r--r--source/blender/makesdna/intern/CMakeLists.txt1
-rw-r--r--source/blender/makesdna/intern/dna_defaults.c12
2 files changed, 13 insertions, 0 deletions
diff --git a/source/blender/makesdna/intern/CMakeLists.txt b/source/blender/makesdna/intern/CMakeLists.txt
index c2781385455..1cb95ea3f83 100644
--- a/source/blender/makesdna/intern/CMakeLists.txt
+++ b/source/blender/makesdna/intern/CMakeLists.txt
@@ -143,6 +143,7 @@ set(SRC
../DNA_camera_defaults.h
../DNA_curve_defaults.h
../DNA_defaults.h
+ ../DNA_fluid_defaults.h
../DNA_hair_defaults.h
../DNA_image_defaults.h
../DNA_lattice_defaults.h
diff --git a/source/blender/makesdna/intern/dna_defaults.c b/source/blender/makesdna/intern/dna_defaults.c
index f0d76705e66..9aeed636399 100644
--- a/source/blender/makesdna/intern/dna_defaults.c
+++ b/source/blender/makesdna/intern/dna_defaults.c
@@ -91,6 +91,7 @@
#include "DNA_cloth_types.h"
#include "DNA_collection_types.h"
#include "DNA_curve_types.h"
+#include "DNA_fluid_types.h"
#include "DNA_hair_types.h"
#include "DNA_image_types.h"
#include "DNA_key_types.h"
@@ -120,6 +121,7 @@
#include "DNA_camera_defaults.h"
#include "DNA_collection_defaults.h"
#include "DNA_curve_defaults.h"
+#include "DNA_fluid_defaults.h"
#include "DNA_hair_defaults.h"
#include "DNA_image_defaults.h"
#include "DNA_lattice_defaults.h"
@@ -162,6 +164,11 @@ SDNA_DEFAULT_DECL_STRUCT(Collection);
/* DNA_curve_defaults.h */
SDNA_DEFAULT_DECL_STRUCT(Curve);
+/* DNA_fluid_defaults.h */
+SDNA_DEFAULT_DECL_STRUCT(FluidDomainSettings);
+SDNA_DEFAULT_DECL_STRUCT(FluidFlowSettings);
+SDNA_DEFAULT_DECL_STRUCT(FluidEffectorSettings);
+
/* DNA_image_defaults.h */
SDNA_DEFAULT_DECL_STRUCT(Image);
@@ -329,6 +336,11 @@ const void *DNA_default_table[SDNA_TYPE_MAX] = {
/* DNA_curve_defaults.h */
SDNA_DEFAULT_DECL(Curve),
+ /* DNA_fluid_defaults.h */
+ SDNA_DEFAULT_DECL(FluidDomainSettings),
+ SDNA_DEFAULT_DECL(FluidFlowSettings),
+ SDNA_DEFAULT_DECL(FluidEffectorSettings),
+
/* DNA_image_defaults.h */
SDNA_DEFAULT_DECL(Image),