Page MenuHome

Rotation of new object created by "Quick Liquid" affected by user preference
Closed, ResolvedPublicBUG

Description

System Information
Operating system: Linux-5.9.16-100.fc32.x86_64-x86_64-with-fedora-32-Thirty_Two 64 Bits
Graphics card: GeForce GTX 1080/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 455.45.01

Blender Version
Broken: version: Latest master
Worked: Likely never


Short description of error
Since these are not new objects created directly by the user, they shouldn't be affected by this preference

Exact steps for others to reproduce the error

  • In the "Preferences > Editing", change "New Objects > Align To" to "3D Cursor"
  • Click on the 3D View to change the cursor orientation
  • Quick liquid on default cube
  • See how the domain is rotated

Event Timeline

Germano Cavalcante (mano-wii) changed the task status from Needs Triage to Confirmed.Tue, Feb 9, 3:05 PM
Germano Cavalcante (mano-wii) updated the task description. (Show Details)
Germano Cavalcante (mano-wii) changed the subtype of this task from "Report" to "Bug".

I'd like to have a go at this as a first issue, if no one's already claimed it?

Erm, is this as simple as adding align='WORLD' to the bpy.ops.mesh.primitive_cube_add() call in release/scripts/startup/bl_operators/object_quick_effects.py? If it is, I'd love for someone to explain to me why, because right now I can't even find where bpy.ops.mesh.primitive_cube_add() is defined, to see what args it takes and what they do.

I can't even find where bpy.ops.mesh.primitive_cube_add() is defined, to see what args it takes and what they do.

Often you have to convert between the python operator name (category.operator_name) and the C operator name (CATEGORY_OT_operator_name). For example, MESH_OT_primitive_cube_add.