diff options
Diffstat (limited to 'src/model/fragment.cc')
-rw-r--r-- | src/model/fragment.cc | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/model/fragment.cc b/src/model/fragment.cc index 72d8e2a..8c3481c 100644 --- a/src/model/fragment.cc +++ b/src/model/fragment.cc @@ -16,6 +16,15 @@ namespace model Quads: the number of Quads is size/4 */ +Fragment::Fragment(const Fragment &other) +{ + fragment_type = other.fragment_type; + fragment_index = other.fragment_index; + fragment_structural_size = other.fragment_structural_size; + fragment_detail_size = other.fragment_detail_size; + fragment_material = other.fragment_material; +} + Fragment::Fragment(Type type, const Material *material) { fragment_type = type; @@ -53,6 +62,8 @@ size_t Fragment::add_vertex(math::Vector3f const & vertex, math::Vector3f const FragmentGroup::FragmentGroup() { group_type = None; + group_scale = 1.0f; + group_transform = false; } FragmentGroup::~FragmentGroup() |