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.
This commit is contained in:
@@ -146,6 +146,10 @@ class DATA_PT_modifiers(ModifierButtonsPanel, Panel):
|
||||
layout.row().prop(md, "offset_type", expand=True)
|
||||
|
||||
def BOOLEAN(self, layout, ob, md):
|
||||
if not bpy.app.build_options.mod_boolean:
|
||||
layout.label("Built without Boolean modifier")
|
||||
return
|
||||
|
||||
split = layout.split()
|
||||
|
||||
col = split.column()
|
||||
@@ -1077,6 +1081,10 @@ class DATA_PT_modifiers(ModifierButtonsPanel, Panel):
|
||||
col.prop(md, "narrowness", slider=True)
|
||||
|
||||
def REMESH(self, layout, ob, md):
|
||||
if not bpy.app.build_options.mod_remesh:
|
||||
layout.label("Built without Remesh modifier")
|
||||
return
|
||||
|
||||
layout.prop(md, "mode")
|
||||
|
||||
row = layout.row()
|
||||
|
Reference in New Issue
Block a user