Add size<=0 check in BakedLighmapData._get_user_data()
(cherry picked from commit 18bb6e74be
)
This commit is contained in:
parent
eec2731eb2
commit
216aba8228
1 changed files with 1 additions and 0 deletions
|
@ -156,6 +156,7 @@ void BakedLightmapData::clear_data() {
|
|||
}
|
||||
|
||||
void BakedLightmapData::_set_user_data(const Array &p_data) {
|
||||
ERR_FAIL_COND(p_data.size() <= 0);
|
||||
|
||||
// Detect old lightmapper format
|
||||
if (p_data.size() % 3 == 0) {
|
||||
|
|
Loading…
Reference in a new issue