Fluid: Fix T72971
Incorporated suggestions from the task discussion
This commit is contained in:
@@ -499,7 +499,6 @@ class QuickLiquid(Operator):
|
||||
# setup liquid domain
|
||||
bpy.ops.object.modifier_add(type='FLUID')
|
||||
obj.modifiers[-1].fluid_type = 'DOMAIN'
|
||||
obj.modifiers[-1].domain_settings.domain_type = 'LIQUID'
|
||||
# set all domain borders to obstacle
|
||||
obj.modifiers[-1].domain_settings.use_collision_border_front = True
|
||||
obj.modifiers[-1].domain_settings.use_collision_border_back = True
|
||||
@@ -511,8 +510,8 @@ class QuickLiquid(Operator):
|
||||
# set correct cache file format for liquid
|
||||
obj.modifiers[-1].domain_settings.cache_mesh_format = 'BOBJECT'
|
||||
|
||||
# allocate and show particle system for FLIP
|
||||
obj.modifiers[-1].domain_settings.use_flip_particles = True
|
||||
# change domain type, will also allocate and show particle system for FLIP
|
||||
obj.modifiers[-1].domain_settings.domain_type = 'LIQUID'
|
||||
|
||||
# make the domain smooth so it renders nicely
|
||||
bpy.ops.object.shade_smooth()
|
||||
|
Reference in New Issue
Block a user