Fix: With no bones selected, move bones to layer operator would display garbage layer set
Was using uninitialised memory
This commit is contained in:
@@ -917,7 +917,7 @@ void ARMATURE_OT_armature_layers(wmOperatorType *ot)
|
||||
/* Present a popup to get the layers that should be used */
|
||||
static int pose_bone_layers_invoke(bContext *C, wmOperator *op, const wmEvent *event)
|
||||
{
|
||||
int layers[32]; /* hardcoded for now - we can only have 32 armature layers, so this should be fine... */
|
||||
int layers[32] = {0}; /* hardcoded for now - we can only have 32 armature layers, so this should be fine... */
|
||||
|
||||
/* get layers that are active already */
|
||||
CTX_DATA_BEGIN (C, bPoseChannel *, pchan, selected_pose_bones)
|
||||
|
||||
Reference in New Issue
Block a user