mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-21 13:47:59 -06:00
3DScene layer_editing_allowed method moved to c++
This commit is contained in:
parent
c51ce63b9b
commit
a8311bd1bd
9 changed files with 51 additions and 18 deletions
|
@ -350,16 +350,16 @@ sub Destroy {
|
|||
# }
|
||||
# return $self->{layer_editing_enabled};
|
||||
#}
|
||||
#
|
||||
#sub layer_editing_allowed {
|
||||
# my ($self) = @_;
|
||||
# # Allow layer editing if either the shaders were not initialized yet and we don't know
|
||||
# # whether it will be possible to initialize them,
|
||||
# # or if the initialization was done already and it failed.
|
||||
# return ! (defined($self->{layer_editing_initialized}) && $self->{layer_editing_initialized} == 2);
|
||||
#}
|
||||
#==============================================================================================================================
|
||||
|
||||
sub layer_editing_allowed {
|
||||
my ($self) = @_;
|
||||
# Allow layer editing if either the shaders were not initialized yet and we don't know
|
||||
# whether it will be possible to initialize them,
|
||||
# or if the initialization was done already and it failed.
|
||||
return ! (defined($self->{layer_editing_initialized}) && $self->{layer_editing_initialized} == 2);
|
||||
}
|
||||
|
||||
sub _first_selected_object_id_for_variable_layer_height_editing {
|
||||
my ($self) = @_;
|
||||
for my $i (0..$#{$self->volumes}) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue