Fix T85410: Quick liquid domain alignment
When `Preferences → Editing → New Objects → Align To` is set to `3D Cursor`, the fluid domain added by `Object → Quick Effects → Quick Liquid` is aligned to the 3D cursor. This shouldn't be the case, since these aren't new objects created directly by the user. Differential Revision: https://developer.blender.org/D10467
This commit is contained in:
parent
782bed1984
commit
d519b33b32
Notes:
blender-bot
2023-02-14 01:07:44 +01:00
Referenced by issue #85410, Rotation of new object created by "Quick Liquid" affected by user preference
|
@ -496,7 +496,7 @@ class QuickLiquid(Operator):
|
|||
obj_bb_minmax(obj, min_co, max_co)
|
||||
|
||||
# add the liquid domain object
|
||||
bpy.ops.mesh.primitive_cube_add()
|
||||
bpy.ops.mesh.primitive_cube_add(align='WORLD')
|
||||
obj = context.active_object
|
||||
obj.name = "Liquid Domain"
|
||||
|
||||
|
|
Loading…
Reference in New Issue