diff options
author | Kévin Dietrich <kevin.dietrich@mailoo.org> | 2016-09-24 23:36:54 +0300 |
---|---|---|
committer | Kévin Dietrich <kevin.dietrich@mailoo.org> | 2016-09-24 23:36:54 +0300 |
commit | 14e825aa1fb57db85cecfda0cd69843b57cefd12 (patch) | |
tree | bc10d135f04acbba3266ff2da75caa0fd2dd3ff2 /release | |
parent | 4446acbf17748f30b163016cfc4b88bba8653517 (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 'release')
-rw-r--r-- | release/scripts/startup/bl_ui/properties_physics_smoke.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/release/scripts/startup/bl_ui/properties_physics_smoke.py b/release/scripts/startup/bl_ui/properties_physics_smoke.py index 829850e4f2f..3cf77135622 100644 --- a/release/scripts/startup/bl_ui/properties_physics_smoke.py +++ b/release/scripts/startup/bl_ui/properties_physics_smoke.py @@ -383,6 +383,14 @@ class PHYSICS_PT_smoke_display_settings(PhysicButtonsPanel, Panel): if axis_slice_method == 'FULL': layout.prop(domain, "slice_per_voxel") + layout.separator() + layout.label(text="Debug:") + layout.prop(domain, "draw_velocity") + col = layout.column(); + col.enabled = domain.draw_velocity + col.prop(domain, "vector_draw_type") + col.prop(domain, "vector_scale") + if __name__ == "__main__": # only for live edit. bpy.utils.register_module(__name__) |