-scale: fix bspNodes & bspLeafs precision
This commit is contained in:
parent
86def027b1
commit
87a3682c46
|
|
@ -458,15 +458,15 @@ int ScaleBSPMain( Args& args ){
|
||||||
/* scale nodes */
|
/* scale nodes */
|
||||||
for ( bspNode_t& node : bspNodes )
|
for ( bspNode_t& node : bspNodes )
|
||||||
{
|
{
|
||||||
node.minmax.mins *= scale;
|
node.minmax.mins = scale * node.minmax.mins; // this multiplication order to calculate in floats
|
||||||
node.minmax.maxs *= scale;
|
node.minmax.maxs = scale * node.minmax.maxs;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* scale leafs */
|
/* scale leafs */
|
||||||
for ( bspLeaf_t& leaf : bspLeafs )
|
for ( bspLeaf_t& leaf : bspLeafs )
|
||||||
{
|
{
|
||||||
leaf.minmax.mins *= scale;
|
leaf.minmax.mins = scale * leaf.minmax.mins;
|
||||||
leaf.minmax.maxs *= scale;
|
leaf.minmax.maxs = scale * leaf.minmax.maxs;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( texscale ) {
|
if ( texscale ) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user