diff --git a/src/Object.h b/src/Object.h index 3f35eec74..a6d746ff9 100644 --- a/src/Object.h +++ b/src/Object.h @@ -97,9 +97,9 @@ class Object { * Sets parent and transformation from another object, so they will * appear in the same place. */ - inline void setTransformationFrom(const Object& another) { - setParent(another.parent()); - setTransformation(another.transformation()); + inline void setTransformationFrom(Object* another) { + setParent(another->parent()); + setTransformation(another->transformation()); } /**