fixed crash when setting heightfield's scale before the heightfield's texture