Crash when executing pose mode operator in other modes #107863
Operating system: Linux-5.19.0-41-generic-x86_64-with-glibc2.36 64 Bits
Graphics card: NVIDIA GeForce GTX 1080/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 530.41.03
Broken: version: 3.6.0 Alpha, branch: main, commit date: 2023-05-09 20:47, hash:
Short description of error
Some operators that are meant for pose mode crash if executed outside of pose mode.
Exact steps for others to reproduce the error
Hit Enter on the python console to execute the operator.
Operators that crash include:
bpy.ops.constraint.stretchto_reset(constraint="Stretch To", owner='BONE') bpy.ops.constraint.limitdistance_reset(constraint="Limit Distance", owner='BONE')
Can confirm. It's just because the armature doesn't have an active pose bone yet so
ED_object_pose_constraint_list returns NULL unhandled. Fixing.
No due date set.
No dependencies set.
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?