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:
authorKévin Dietrich <kevin.dietrich@mailoo.org>2016-09-24 23:36:54 +0300
committerKévin Dietrich <kevin.dietrich@mailoo.org>2016-09-24 23:36:54 +0300
commit14e825aa1fb57db85cecfda0cd69843b57cefd12 (patch)
treebc10d135f04acbba3266ff2da75caa0fd2dd3ff2 /source/blender/makesdna
parent4446acbf17748f30b163016cfc4b88bba8653517 (diff)
Viewport smoke: add options to draw velocity vectors.
This basically exposes to the UI a function that was only available through a debug macro ; the purpose is obviously to help debugging simulations. It adds ways to draw the vectors either as colored needles or as arrows showing the direction of the vectors. The colors are based on the magnitude of the underlying vectors. Reviewers: plasmasolutions, gottfried Differential Revision: https://developer.blender.org/D1733
Diffstat (limited to 'source/blender/makesdna')
-rw-r--r--source/blender/makesdna/DNA_smoke_types.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/source/blender/makesdna/DNA_smoke_types.h b/source/blender/makesdna/DNA_smoke_types.h
index 5526c18f656..ba7f73c2f63 100644
--- a/source/blender/makesdna/DNA_smoke_types.h
+++ b/source/blender/makesdna/DNA_smoke_types.h
@@ -72,6 +72,11 @@ enum {
SLICE_AXIS_Z = 3,
};
+enum {
+ VECTOR_DRAW_NEEDLE = 0,
+ VECTOR_DRAW_STREAMLINE = 1,
+};
+
/* cache compression */
#define SM_CACHE_LIGHT 0
#define SM_CACHE_HEAVY 1
@@ -184,10 +189,13 @@ typedef struct SmokeDomainSettings {
/* Display settings */
char slice_method, axis_slice_method;
- char slice_axis, pad2;
+ char slice_axis, draw_velocity;
float slice_per_voxel;
float slice_depth;
float display_thickness;
+ float vector_scale;
+ char vector_draw_type;
+ char pad2[3];
} SmokeDomainSettings;