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-12-06 01:33:21 +0300
committerKévin Dietrich <kevin.dietrich@mailoo.org>2016-12-06 01:33:21 +0300
commitfe0520e2c841569712e14446f4afbb4036daae3a (patch)
treeff76d76a68a0709341de9969a9d11872fa6c4eab /release/scripts/startup/bl_ui/properties_physics_smoke.py
parent7471f09f2bb20fed33c57ca0ad53990be3eb48fd (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.py4
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