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:
Matt Hill 2021-02-18 13:51:39 -06:00 committed by Hans Goudey
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
1 changed files with 1 additions and 1 deletions

View File

@ -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"