Stub data in Ocean modifier when disabled, C standard does not allow empty structs.

This commit is contained in:
Lukas Toenne
2011-11-13 14:39:10 +00:00
parent a7c37e5254
commit cbef65deda

View File

@@ -1314,6 +1314,8 @@ void BKE_bake_ocean(struct Ocean *o, struct OceanCache *och, void (*update_cb)(v
/* stub */
typedef struct Ocean {
/* need some data here, C does not allow empty struct */
int stub;
} Ocean;