Make LightmapGIData::_set_user_data a proper setter instead of an additive operation
This commit is contained in:
parent
5dd76968d8
commit
8f9b7896f6
1 changed files with 1 additions and 2 deletions
|
|
@ -81,9 +81,8 @@ void LightmapGIData::clear_users() {
|
|||
}
|
||||
|
||||
void LightmapGIData::_set_user_data(const Array &p_data) {
|
||||
ERR_FAIL_COND(p_data.is_empty());
|
||||
ERR_FAIL_COND((p_data.size() % 4) != 0);
|
||||
|
||||
users.clear();
|
||||
for (int i = 0; i < p_data.size(); i += 4) {
|
||||
add_user(p_data[i + 0], p_data[i + 1], p_data[i + 2], p_data[i + 3]);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue