mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-08 19:44:55 +00:00
More portable way of testing for SLERP
This commit is contained in:
@@ -67,10 +67,13 @@ if ackbytes != b'ACK':
|
|||||||
quitblender()
|
quitblender()
|
||||||
|
|
||||||
# slerp branch check
|
# slerp branch check
|
||||||
if b'quat-slerp' in bpy.app.build_branch:
|
orig_rot = bpy.context.object.rotation_mode
|
||||||
|
try:
|
||||||
|
bpy.context.object.rotation_mode = 'QUATERNION_SLERP'
|
||||||
writepipeline(b'SLERP1')
|
writepipeline(b'SLERP1')
|
||||||
else:
|
except:
|
||||||
writepipeline(b'SLERP0')
|
writepipeline(b'SLERP0')
|
||||||
|
bpy.context.object.rotation_mode = orig_rot
|
||||||
|
|
||||||
# Count brackets
|
# Count brackets
|
||||||
def count_brackets(linestr):
|
def count_brackets(linestr):
|
||||||
|
|||||||
Reference in New Issue
Block a user