Some fixes after the recent Model refactoring

This commit is contained in:
Alessandro Ranellucci 2014-05-10 16:59:17 +02:00
parent 65b7d27def
commit 27c73f5983
6 changed files with 37 additions and 9 deletions

View file

@ -403,7 +403,7 @@ sub load_model_objects {
);
push @obj_idx, $#{ $self->{objects} };
if (!defined $model_object->instances) {
if ($model_object->instances_count == 0) {
# if object has no defined position(s) we need to rearrange everything after loading
$need_arrange = 1;