diff options
Diffstat (limited to 'release/scripts/ui/properties_physics_fluid.py')
-rw-r--r-- | release/scripts/ui/properties_physics_fluid.py | 21 |
1 files changed, 17 insertions, 4 deletions
diff --git a/release/scripts/ui/properties_physics_fluid.py b/release/scripts/ui/properties_physics_fluid.py index 1a841baf5b3..ff8080d450a 100644 --- a/release/scripts/ui/properties_physics_fluid.py +++ b/release/scripts/ui/properties_physics_fluid.py @@ -291,7 +291,20 @@ class PHYSICS_PT_domain_particles(PhysicButtonsPanel): col.prop(fluid, "tracer_particles") col.prop(fluid, "generate_particles") -bpy.types.register(PHYSICS_PT_fluid) -bpy.types.register(PHYSICS_PT_domain_gravity) -bpy.types.register(PHYSICS_PT_domain_boundary) -bpy.types.register(PHYSICS_PT_domain_particles) + +classes = [ + PHYSICS_PT_fluid, + PHYSICS_PT_domain_gravity, + PHYSICS_PT_domain_boundary, + PHYSICS_PT_domain_particles] + + +def register(): + register = bpy.types.register + for cls in classes: + register(cls) + +def unregister(): + unregister = bpy.types.unregister + for cls in classes: + unregister(cls) |