--- a/src/modeleditcontext.cpp Thu Mar 03 11:42:52 2022 +0200 +++ b/src/modeleditcontext.cpp Thu Mar 03 21:13:16 2022 +0200 @@ -53,7 +53,7 @@ const QVariant& value) -> ldraw::Object::SetPropertyResult { - ldraw::Object* const object = this->model().objectAt(id); + ldraw::Object* const object = this->model().findObjectById(id); if (object != nullptr) { const ldraw::Object::SetPropertyResult result = object->setProperty(ldraw::PropertyKeyValue{property, value}); @@ -68,7 +68,7 @@ void Model::EditContext::setObjectPoint(ldraw::id_t id, int pointId, const glm::vec3& value) { - ldraw::Object* object = this->model().objectAt(id); + ldraw::Object* object = this->model().findObjectById(id); if (object != nullptr) { object->setProperty(ldraw::PropertyKeyValue{ldraw::pointProperty(pointId), QVariant::fromValue(value)});