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:
authorSybren A. Stüvel <sybren@stuvel.eu>2018-07-06 13:40:09 +0300
committerSybren A. Stüvel <sybren@stuvel.eu>2018-07-06 13:46:58 +0300
commit769104016636b26be1b01726a1ea45c95b184a2e (patch)
tree1c066a4029390b26b6ac08c62ce095cc29e558bd /source/blender/modifiers
parent3cc2a9b934d072fdd817863aa8e93e2416f5c804 (diff)
Ocean Modifier: removed the MOD_OCEAN_REFRESH_ADD flag
The flag was only used in readfile.c, and resulted in a delayed call to BKE_ocean_add(); this call is now immediately made instead as it's not very expensive.
Diffstat (limited to 'source/blender/modifiers')
-rw-r--r--source/blender/modifiers/intern/MOD_ocean.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/source/blender/modifiers/intern/MOD_ocean.c b/source/blender/modifiers/intern/MOD_ocean.c
index c29e835797b..b845e62c530 100644
--- a/source/blender/modifiers/intern/MOD_ocean.c
+++ b/source/blender/modifiers/intern/MOD_ocean.c
@@ -435,9 +435,6 @@ static DerivedMesh *doOcean(
}
/* update modifier */
- if (omd->refresh & MOD_OCEAN_REFRESH_ADD) {
- omd->ocean = BKE_ocean_add();
- }
if (omd->refresh & MOD_OCEAN_REFRESH_RESET) {
init_ocean_modifier(omd);
}