3DScene layer_editing_allowed method moved to c++

This commit is contained in:
Enrico Turri 2018-05-25 16:28:24 +02:00
parent c51ce63b9b
commit a8311bd1bd
9 changed files with 51 additions and 18 deletions

View file

@ -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}) {