[Bf-blender-cvs] [d519b33b327] master: Fix T85410: Quick liquid domain alignment

Matt Hill noreply at git.blender.org
Thu Feb 18 20:55:19 CET 2021


Commit: d519b33b327607ad7835561d951559da8f79034e
Author: Matt Hill
Date:   Thu Feb 18 13:51:39 2021 -0600
Branches: master
https://developer.blender.org/rBd519b33b327607ad7835561d951559da8f79034e

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

===================================================================

M	release/scripts/startup/bl_operators/object_quick_effects.py

===================================================================

diff --git a/release/scripts/startup/bl_operators/object_quick_effects.py b/release/scripts/startup/bl_operators/object_quick_effects.py
index 0600536cb66..48312f958ef 100644
--- a/release/scripts/startup/bl_operators/object_quick_effects.py
+++ b/release/scripts/startup/bl_operators/object_quick_effects.py
@@ -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"



More information about the Bf-blender-cvs mailing list