From: bones_was_here Date: Mon, 11 Mar 2024 01:38:44 +0000 (+1000) Subject: Remove .obj entity model orientation hack X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=5ec8aeb26b7feb3a5c30a54e670a63cb36ea8b62;p=xonotic%2Fxonotic-data.pk3dir.git Remove .obj entity model orientation hack This seems to be causing an orientation problem not fixing one. --- 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);