From bfa4a6299d75630d344f9d835541fb95e9f3a047 Mon Sep 17 00:00:00 2001 From: Mircea Kitsune Date: Mon, 7 Nov 2011 00:49:13 +0200 Subject: [PATCH] Fix a bug which would cause the bounding box to get an incorrect size if scaling a model back and forth --- qcsrc/server/mutators/sandbox.qc | 1 + 1 file changed, 1 insertion(+) diff --git a/qcsrc/server/mutators/sandbox.qc b/qcsrc/server/mutators/sandbox.qc index 264aa83a7..bb6b3e647 100644 --- a/qcsrc/server/mutators/sandbox.qc +++ b/qcsrc/server/mutators/sandbox.qc @@ -84,6 +84,7 @@ void sandbox_ObjectEdit_Scale(entity e, float f) if(e.scale) { e.scale = bound(autocvar_g_sandbox_object_scale_min, e.scale, autocvar_g_sandbox_object_scale_max); + setmodel(e, e.model); // reset mins and maxs based on mesh setsize(e, e.mins * e.scale, e.maxs * e.scale); // adapt bounding box size to model size } } -- 2.39.2