mirror of
https://github.com/godotengine/godot.git
synced 2025-02-17 22:43:01 +08:00
Fix size in HeightMapShapeBullet::set_data
This commit is contained in:
parent
ac118434ee
commit
de4d7a785e
@ -487,7 +487,7 @@ void HeightMapShapeBullet::set_data(const Variant &p_data) {
|
||||
|
||||
PoolByteArray im_data = l_image->get_data();
|
||||
|
||||
l_heights.resize(l_image->get_width() * l_image->get_width());
|
||||
l_heights.resize(l_image->get_width() * l_image->get_height());
|
||||
|
||||
PoolRealArray::Write w = l_heights.write();
|
||||
PoolByteArray::Read r = im_data.read();
|
||||
|
Loading…
Reference in New Issue
Block a user