Add Chromium-only Blender WebEngine parity work
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
# Compute local object transformation matrix:
|
||||
|
||||
import bpy
|
||||
import mathutils
|
||||
|
||||
obj = bpy.context.object
|
||||
if obj.rotation_mode == 'QUATERNION':
|
||||
matrix = mathutils.Matrix.LocRotScale(obj.location, obj.rotation_quaternion, obj.scale)
|
||||
else:
|
||||
matrix = mathutils.Matrix.LocRotScale(obj.location, obj.rotation_euler, obj.scale)
|
||||
Reference in New Issue
Block a user