Add size<=0 check in BakedLighmapData._get_user_data()
This commit is contained in:
parent
4d1f83a621
commit
18bb6e74be
1 changed files with 1 additions and 0 deletions
|
@ -78,6 +78,7 @@ void BakedLightmapData::clear_users() {
|
|||
}
|
||||
|
||||
void BakedLightmapData::_set_user_data(const Array &p_data) {
|
||||
ERR_FAIL_COND(p_data.size() <= 0);
|
||||
ERR_FAIL_COND((p_data.size() % 4) != 0);
|
||||
|
||||
for (int i = 0; i < p_data.size(); i += 4) {
|
||||
|
|
Loading…
Reference in a new issue