diff --git a/lib/Slic3r/Print/Object.pm b/lib/Slic3r/Print/Object.pm index 5a450a9ea..26317621c 100644 --- a/lib/Slic3r/Print/Object.pm +++ b/lib/Slic3r/Print/Object.pm @@ -34,18 +34,6 @@ sub support_layers { return [ map $self->get_support_layer($_), 0..($self->support_layer_count - 1) ]; } -# This will assign a type (top/bottom/internal) to $layerm->slices -# and transform $layerm->fill_surfaces from expolygon -# to typed top/bottom/internal surfaces; -sub detect_surfaces_type { - my ($self) = @_; - - # prerequisites - $self->slice; - - $self->_detect_surfaces_type; -} - sub prepare_infill { my ($self) = @_; diff --git a/xs/src/libslic3r/PrintObject.cpp b/xs/src/libslic3r/PrintObject.cpp index 35279aac4..ccbc7a00a 100644 --- a/xs/src/libslic3r/PrintObject.cpp +++ b/xs/src/libslic3r/PrintObject.cpp @@ -329,11 +329,14 @@ PrintObject::has_support_material() const || this->config.support_material_enforce_layers > 0; } +// This will assign a type (top/bottom/internal) to layerm->slices +// and transform layerm->fill_surfaces from expolygon +// to typed top/bottom/internal surfaces; void PrintObject::detect_surfaces_type() { // prerequisites - // this->slice(); + this->slice(); if (this->state.is_done(posDetectSurfaces)) return; this->state.set_started(posDetectSurfaces); diff --git a/xs/xsp/Print.xsp b/xs/xsp/Print.xsp index e5cceda9b..89d84df05 100644 --- a/xs/xsp/Print.xsp +++ b/xs/xsp/Print.xsp @@ -126,7 +126,7 @@ _constant() void set_step_started(PrintObjectStep step) %code%{ THIS->state.set_started(step); %}; - %name{_detect_surfaces_type} void detect_surfaces_type(); + void detect_surfaces_type(); void process_external_surfaces(); void bridge_over_infill(); void combine_infill();