use crate::core::{box3d_lock, callback_state};
use boxddd_sys::ffi;
pub(crate) fn current_length_units() -> f32 {
if callback_state::in_callback() {
unsafe { ffi::b3GetLengthUnitsPerMeter() }
} else {
let _guard = box3d_lock::lock();
unsafe { ffi::b3GetLengthUnitsPerMeter() }
}
}