Removed code committed by mistake in previous commit

This commit is contained in:
Enrico Turri 2018-11-13 11:25:59 +01:00
parent dc8523cac8
commit 03390c594f

View File

@ -165,9 +165,6 @@ ModelObject* Model::add_object(const char *name, const char *path, const Triangl
new_object->name = name; new_object->name = name;
new_object->input_file = path; new_object->input_file = path;
ModelVolume *new_volume = new_object->add_volume(mesh); ModelVolume *new_volume = new_object->add_volume(mesh);
#if ENABLE_MODELVOLUME_TRANSFORM
new_volume->center_geometry();
#endif // ENABLE_MODELVOLUME_TRANSFORM
new_volume->name = name; new_volume->name = name;
new_object->invalidate_bounding_box(); new_object->invalidate_bounding_box();
return new_object; return new_object;
@ -180,9 +177,6 @@ ModelObject* Model::add_object(const char *name, const char *path, TriangleMesh
new_object->name = name; new_object->name = name;
new_object->input_file = path; new_object->input_file = path;
ModelVolume *new_volume = new_object->add_volume(std::move(mesh)); ModelVolume *new_volume = new_object->add_volume(std::move(mesh));
#if ENABLE_MODELVOLUME_TRANSFORM
new_volume->center_geometry();
#endif // ENABLE_MODELVOLUME_TRANSFORM
new_volume->name = name; new_volume->name = name;
new_object->invalidate_bounding_box(); new_object->invalidate_bounding_box();
return new_object; return new_object;