32 const float4x4 &world_to_active = active_object->world_to_object();
35 bool active_object_selected =
false;
37 if (
object == active_object) {
38 active_object_selected =
true;
44 objects.append(
object);
48 if (!active_object_selected) {
54 instances.
resize(objects.size());
58 for (
const int i : objects.index_range()) {
59 transforms[i] = world_to_active * objects[i]->object_to_world();
60 const Curves *orig_curves =
static_cast<const Curves *
>(objects[i]->data);
61 references[i] = reference_by_orig_curves.
lookup_or_add_cb(orig_curves, [&]() {
79 for (
Object *
object : objects.as_span().drop_front(1)) {
#define CTX_DATA_BEGIN(C, Type, instance, member)
Object * CTX_data_active_object(const bContext *C)
Scene * CTX_data_scene(const bContext *C)
Main * CTX_data_main(const bContext *C)