Fix #114918: Workbench: Negative scaled sculpt mesh artifacts

This commit is contained in:
Miguel Pozo
2023-11-17 15:53:31 +01:00
parent 8149678d5e
commit f27e87db7a

View File

@@ -156,7 +156,9 @@ class Instance {
if (is_object_data_visible) {
if (object_state.sculpt_pbvh) {
/* Disable frustum culling for sculpt meshes. */
/* TODO(@pragma37): Implement a cleaner way to disable frustum culling. */
ResourceHandle handle = manager.resource_handle(float4x4(ob_ref.object->object_to_world));
handle = ResourceHandle(handle.resource_index(), ob_ref.object->transflag & OB_NEG_SCALE);
sculpt_sync(ob_ref, handle, object_state);
emitter_handle = handle;
}