]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Remove .obj entity model orientation hack
authorbones_was_here <bones_was_here@xonotic.au>
Mon, 11 Mar 2024 01:38:44 +0000 (11:38 +1000)
committerbones_was_here <bones_was_here@xonotic.au>
Mon, 11 Mar 2024 01:38:44 +0000 (11:38 +1000)
This seems to be causing an orientation problem not fixing one.

qcsrc/common/mapobjects/subs.qc

index 09ceba21f0bb4caee58bc093bfb1ea6a11b5e8a6..c50e123ff428ac34142508462980ceec5b1af605 100644 (file)
@@ -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);