Cleanup: Various clang-tidy warnings in ikplugin

Pull Request: https://projects.blender.org/blender/blender/pulls/133734
This commit is contained in:
Brecht Van Lommel
2025-01-26 20:07:58 +01:00
parent 936b90ce56
commit 7d37bd3841
3 changed files with 4 additions and 8 deletions

View File

@@ -34,7 +34,7 @@ struct IKPlugin {
void (*test_constraint)(struct Object *ob, struct bConstraint *cons);
};
typedef struct IKPlugin IKPlugin;
using IKPlugin = struct IKPlugin;
#ifdef __cplusplus
}

View File

@@ -11,11 +11,10 @@
#include "MEM_guardedalloc.h"
#include "BIK_api.h"
#include "BLI_blenlib.h"
#include "BLI_listbase.h"
#include "BLI_math_matrix.h"
#include "BLI_math_rotation.h"
#include "BLI_math_vector.h"
#include "BLI_utildefines.h"
#include "BLI_vector.hh"
#include "BKE_armature.hh"

View File

@@ -27,16 +27,13 @@
#include "MEM_guardedalloc.h"
#include "BIK_api.h"
#include "BLI_blenlib.h"
#include "BLI_math_matrix.h"
#include "BLI_math_rotation.h"
#include "BLI_math_vector.h"
#include "BLI_utildefines.h"
#include "BKE_action.hh"
#include "BKE_armature.hh"
#include "BKE_constraint.h"
#include "BKE_global.hh"
#include "DNA_action_types.h"
#include "DNA_armature_types.h"
#include "DNA_constraint_types.h"
@@ -564,7 +561,7 @@ static bool target_callback(const iTaSC::Timestamp & /*timestamp*/,
IK_Target *target = (IK_Target *)param;
/* compute next target position
* get target matrix from constraint. */
bConstraint *constraint = (bConstraint *)target->blenderConstraint;
bConstraint *constraint = target->blenderConstraint;
float tarmat[4][4];
BKE_constraint_target_matrix_get(target->bldepsgraph,
@@ -1435,7 +1432,7 @@ static IK_Scene *convert_tree(
/* for each target, we need to add an end effector in the armature */
for (numtarget = 0, polarcon = nullptr, ret = true, target = (PoseTarget *)tree->targets.first;
target;
target = (PoseTarget *)target->next)
target = target->next)
{
condata = (bKinematicConstraint *)target->con->data;
pchan = tree->pchan[target->tip];