diff options
author | Kévin Dietrich <kevin.dietrich@mailoo.org> | 2016-12-06 01:33:21 +0300 |
---|---|---|
committer | Kévin Dietrich <kevin.dietrich@mailoo.org> | 2016-12-06 01:33:21 +0300 |
commit | fe0520e2c841569712e14446f4afbb4036daae3a (patch) | |
tree | ff76d76a68a0709341de9969a9d11872fa6c4eab /release/scripts/startup/bl_ui/properties_physics_smoke.py | |
parent | 7471f09f2bb20fed33c57ca0ad53990be3eb48fd (diff) |
UI: add a message to indicate when using a modifier that wasn't
compiled.
This adds a short message to the smoke, remesh and boolean modifiers' UI
when trying to use them when their compilation was turned off. This was
already implemented for the fluid and ocean simulation modifiers.
This also makes the 'quick fluid' and 'quick smoke' operator abort and
report when trying to use them when unavailable.
Diffstat (limited to 'release/scripts/startup/bl_ui/properties_physics_smoke.py')
-rw-r--r-- | release/scripts/startup/bl_ui/properties_physics_smoke.py | 4 |
1 files changed, 4 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 0374d032141..ee9135b9dbf 100644 --- a/release/scripts/startup/bl_ui/properties_physics_smoke.py +++ b/release/scripts/startup/bl_ui/properties_physics_smoke.py @@ -45,6 +45,10 @@ class PHYSICS_PT_smoke(PhysicButtonsPanel, Panel): def draw(self, context): layout = self.layout + if not bpy.app.build_options.mod_smoke: + layout.label("Built without Smoke modifier") + return + md = context.smoke ob = context.object |