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