Rev 444 | Rev 549 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 444 | Rev 445 | ||
---|---|---|---|
Line 77... | Line 77... | ||
77 | 77 | ||
78 | // call a single tree init for each resource unit
|
78 | // call a single tree init for each resource unit
|
79 | if (copy_mode=="unit") { |
79 | if (copy_mode=="unit") { |
80 | foreach( const ResourceUnit *const_ru, g->model()->ruList()) { |
80 | foreach( const ResourceUnit *const_ru, g->model()->ruList()) { |
81 | ResourceUnit *ru = const_cast<ResourceUnit*>(const_ru); |
81 | ResourceUnit *ru = const_cast<ResourceUnit*>(const_ru); |
- | 82 | ru->setRandomGenerator(); // |
|
82 | // set environment
|
83 | // set environment
|
83 | g->model()->environment()->setPosition(ru->boundingBox().center()); |
84 | g->model()->environment()->setPosition(ru->boundingBox().center()); |
84 | type = xml.value("type", ""); |
85 | type = xml.value("type", ""); |
85 | fileName = xml.value("file", ""); |
86 | fileName = xml.value("file", ""); |
86 | if (fileName.isEmpty()) |
87 | if (fileName.isEmpty()) |