Browse Source

Use Object pointer instead of const reference.

vectorfields
Vladimír Vondruš 16 years ago
parent
commit
4902170060
  1. 6
      src/Object.h

6
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());
}
/**

Loading…
Cancel
Save