Fixed build when ENABLE_MODELVOLUME_TRANSFORM is disabled

This commit is contained in:
Enrico Turri 2018-11-01 14:41:18 +01:00
parent 85597a4039
commit 00ec33ef16

View File

@ -1242,7 +1242,7 @@ void ModelInstance::transform_polygon(Polygon* polygon) const
}
#if !ENABLE_MODELVOLUME_TRANSFORM
Transform3d ModelInstance::world_matrix(bool dont_translate, bool dont_rotate, bool dont_scale, bool dont_mirror) const
Transform3d ModelInstance::get_matrix(bool dont_translate, bool dont_rotate, bool dont_scale, bool dont_mirror) const
{
Vec3d translation = dont_translate ? Vec3d::Zero() : m_offset;
Vec3d rotation = dont_rotate ? Vec3d::Zero() : m_rotation;