From 5ec8aeb26b7feb3a5c30a54e670a63cb36ea8b62 Mon Sep 17 00:00:00 2001 From: bones_was_here Date: Mon, 11 Mar 2024 11:38:44 +1000 Subject: [PATCH] Remove .obj entity model orientation hack This seems to be causing an orientation problem not fixing one. --- qcsrc/common/mapobjects/subs.qc | 3 --- 1 file changed, 3 deletions(-) diff --git a/qcsrc/common/mapobjects/subs.qc b/qcsrc/common/mapobjects/subs.qc index 09ceba21f..c50e123ff 100644 --- a/qcsrc/common/mapobjects/subs.qc +++ b/qcsrc/common/mapobjects/subs.qc @@ -435,9 +435,6 @@ void SetBrushEntityModel(entity this, bool with_lod) _setmodel(this, this.model); // no precision needed if(with_lod) InitializeEntity(this, LODmodel_attach, INITPRIO_FINDTARGET); - - if(endsWith(this.model, ".obj")) // WORKAROUND: darkplaces currently rotates .obj models on entities incorrectly, we need to add 180 degrees to the Y axis - this.angles_y = anglemods(this.angles_y - 180); } setorigin(this, this.origin); ApplyMinMaxScaleAngles(this); -- 2.39.2