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:
@@ -317,6 +317,10 @@ class QuickSmoke(Operator):
|
||||
)
|
||||
|
||||
def execute(self, context):
|
||||
if not bpy.app.build_options.mod_smoke:
|
||||
self.report({'ERROR'}, "Build without Smoke modifier support")
|
||||
return {'CANCELLED'}
|
||||
|
||||
fake_context = context.copy()
|
||||
mesh_objects = [obj for obj in context.selected_objects
|
||||
if obj.type == 'MESH']
|
||||
@@ -562,6 +566,10 @@ class QuickFluid(Operator):
|
||||
)
|
||||
|
||||
def execute(self, context):
|
||||
if not bpy.app.build_options.mod_fluid:
|
||||
self.report({'ERROR'}, "Build without Fluid modifier support")
|
||||
return {'CANCELLED'}
|
||||
|
||||
fake_context = context.copy()
|
||||
mesh_objects = [obj for obj in context.selected_objects
|
||||
if (obj.type == 'MESH' and 0.0 not in obj.dimensions)]
|
||||
|
Reference in New Issue
Block a user