]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fix a bug which would cause the bounding box to get an incorrect size if scaling...
authorMircea Kitsune <sonichedgehog_hyperblast00@yahoo.com>
Sun, 6 Nov 2011 22:49:13 +0000 (00:49 +0200)
committerMircea Kitsune <sonichedgehog_hyperblast00@yahoo.com>
Sun, 6 Nov 2011 22:49:13 +0000 (00:49 +0200)
qcsrc/server/mutators/sandbox.qc

index 264aa83a7d9e62c9a827431e9e47f4fcfe556716..bb6b3e647b6c38dddf76f40d1ccac97f17d33fda 100644 (file)
@@ -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
        }
 }