Fluid: Hide Advanced cache options
The Manta script export should not be visible in the UI. At least not to normal users. The export feature is only useful for developers.
This commit is contained in:
@@ -1141,7 +1141,8 @@ class PHYSICS_PT_export(PhysicButtonsPanel, Panel):
|
||||
|
||||
@classmethod
|
||||
def poll(cls, context):
|
||||
if not PhysicButtonsPanel.poll_fluid_domain(context):
|
||||
# Only show the advanced panel to advanced users who know Mantaflow's birthday :)
|
||||
if not PhysicButtonsPanel.poll_fluid_domain(context) or bpy.app.debug_value != 3001:
|
||||
return False
|
||||
|
||||
return (context.engine in cls.COMPAT_ENGINES)
|
||||
|
||||
Reference in New Issue
Block a user