35 Curves &active_curves = *id_cast<Curves *>(active_object->
data);
36 const float4x4 &world_to_active = active_object->world_to_object();
39 bool active_object_selected =
false;
41 if (
object == active_object) {
42 active_object_selected =
true;
52 if (!active_object_selected) {
63 transforms[i] = world_to_active * objects[i]->object_to_world();
64 const Curves *orig_curves = id_cast<const Curves *>(objects[i]->
data);
65 references[i] = reference_by_orig_curves.
lookup_or_add_cb(orig_curves, [&]() {
83 active_curves.geometry.wrap() = std::move(realized_curves->geometry.wrap());
#define CTX_DATA_BEGIN(C, Type, instance, member)
Value & lookup_or_add_cb(const Key &key, const CreateValueF &create_value)
void append(const T &value)
IndexRange index_range() const
Span< T > as_span() const
MutableSpan< int > reference_handles_for_write()
int add_new_reference(InstanceReference reference)
MutableSpan< float4x4 > transforms_for_write()
wmOperatorStatus join_objects_exec(bContext *C, wmOperator *op)
void base_free_and_unlink(Main *bmain, Scene *scene, Object *ob)
RealizeInstancesResult realize_instances(bke::GeometrySet geometry_set, const RealizeInstancesOptions &options)
BLI_assert(slot->slot_subtype.map==BMO_OP_SLOT_SUBTYPE_MAP_FLT)
struct Curves * BKE_curves_copy_for_eval(const struct Curves *curves_src)
MatBase< float, 4, 4 > float4x4
void DEG_id_tag_update(ID *id, unsigned int flags)
void BKE_report(ReportList *reports, eReportType type, const char *message)
BMesh const char void * data
void WM_event_add_notifier(const bContext *C, uint type, void *reference)
Main * CTX_data_main(const bContext *C)
void DEG_relations_tag_update(Main *bmain)
Scene * CTX_data_scene(const bContext *C)
Object * CTX_data_active_object(const bContext *C)
static GeometrySet from_curves(Curves *curves, GeometryOwnershipType ownership=GeometryOwnershipType::Owned)
Curves * get_curves_for_write()
static GeometrySet from_instances(std::unique_ptr< Instances > instances)
bke::GeometrySet geometry
struct ReportList * reports