Rotation of new object created by "Quick Liquid" affected by user preference #85410

Closed
opened 2021-02-05 19:57:12 +01:00 by Hans Goudey · 9 comments
Member

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

{F9654676 size=full}
{F9654679 size=full}

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
**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 {[F9654676](https://archive.blender.org/developer/F9654676/image.png) size=full} {[F9654679](https://archive.blender.org/developer/F9654679/image.png) size=full} **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
Author
Member

Added subscriber: @HooglyBoogly

Added subscriber: @HooglyBoogly

Changed status from 'Needs Triage' to: 'Confirmed'

Changed status from 'Needs Triage' to: 'Confirmed'

Added subscriber: @mano-wii

Added subscriber: @mano-wii

Added subscriber: @theothermatt

Added subscriber: @theothermatt

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

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.

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.
Author
Member

In #85410#1112410, @theothermatt wrote:
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.

> In #85410#1112410, @theothermatt wrote: > 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`.

This issue was referenced by d519b33b32

This issue was referenced by d519b33b327607ad7835561d951559da8f79034e
Author
Member

Changed status from 'Confirmed' to: 'Resolved'

Changed status from 'Confirmed' to: 'Resolved'
Hans Goudey self-assigned this 2021-02-18 20:55:30 +01:00
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
4 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#85410
No description provided.