20#include "RNA_prototypes.hh"
25#include "testing/testing.h"
55 Bone *bone = MEM_new<Bone>(
"BONE");
77 EXPECT_STREQ(transformable.
rna_path().
c_str(),
"pose.bones[\"Bone\"]");
83 pose_bone->loc[0] = 1;
111 pose_bone->eul[0] = 3.14;
116 expected = {0, 0, 0};
127 EXPECT_NEAR_SPAN(expected.
as_span(),
133 expected = {0.1f, 0, 0};
135 EXPECT_NEAR_SPAN(expected.
as_span(),
141 expected = {1.0f, 0, 0};
143 EXPECT_NEAR_SPAN(expected.
as_span(),
182 EXPECT_NEAR_SPAN(expected.
as_span(),
189 expected = {2, 2, 0};
190 EXPECT_NEAR_SPAN(expected.
as_span(),
198 expected = {2, 3, 3};
199 EXPECT_NEAR_SPAN(expected.
as_span(),
Blender kernel action and pose functionality.
General operations, lookup, etc. for blender objects.
Object is a sort of wrapper for general info.
Span< T > as_span() const
constexpr const char * c_str() const
#define EXPECT_NE(result, expect)
#define EXPECT_NEAR(result, expect, threshold)
TEST_F(TransformableTest, transformable_get_values)
Rotation identity_rotation(const eRotationModes mode)
bArmature * BKE_armature_add(Main *bmain, const char *name)
char * STRNCPY(char(&dst)[N], const char *src)
void BKE_pose_ensure(Main *bmain, Object *ob, bArmature *arm, bool do_id_user)
void BKE_main_free(Main *bmain)
EXPECT_EQ(BLI_expr_pylike_eval(expr, nullptr, 0, &result), EXPR_PYLIKE_INVALID)
void BLI_addtail(ListBase *listbase, void *vlink) ATTR_NONNULL(1)
MINLINE float interpf(float target, float origin, float t)
Object * BKE_object_add_only_object(Main *bmain, ObjectType type, const char *name) ATTR_RETURNS_NONNULL
bPoseChannel * BKE_pose_channel_find_name(const bPose *pose, const char *name)
ListBaseT< Bone > bonebase