Page MenuHome

"Bpy.ops.object.camera_add" doesn't take the rotation argument into account
Closed, ResolvedPublic

Description

System Information
Operating system: Windows-10-10.0.17763 64 Bits
Graphics card: Intel(R) HD Graphics 530 Intel 4.5.0 - Build 25.20.100.6323

Blender Version
Broken: version: 2.80 (sub 74), branch: blender2.7, commit date: 2019-06-16 23:08, hash: rB12da679fa094

Short description of error
"Bpy.ops.object.camera_add" doesn't take the rotation argument into account.

Exact steps for others to reproduce the error

  1. Run this code snippet in Python console:
location = (20.0, 20.0, 20.0)
rotation = (90.0, 0.0, 90.0)
bpy.ops.object.camera_add(location = location, rotation = rotation)
  1. Check camera's object properties: location's applied correctly, rotation isn't applied at all