Add size<=0 check in BakedLighmapData._get_user_data()

(cherry picked from commit 18bb6e74be)
This commit is contained in:
sps1112 2021-03-03 15:31:31 +05:30 committed by Rémi Verschelde
parent eec2731eb2
commit 216aba8228

View file

@ -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) {