[Bf-blender-cvs] [a6d405d] cycles-ptex-49: Fix comparison in Ptex layout packing

Nicholas Bishop noreply at git.blender.org
Mon Feb 9 18:05:18 CET 2015


Commit: a6d405d7b58585c9adae8e6b1cb4c4787a63f1da
Author: Nicholas Bishop
Date:   Mon Feb 9 17:54:39 2015 +0100
Branches: cycles-ptex-49
https://developer.blender.org/rBa6d405d7b58585c9adae8e6b1cb4c4787a63f1da

Fix comparison in Ptex layout packing

===================================================================

M	extern/ptex/BPX_packed_layout.h

===================================================================

diff --git a/extern/ptex/BPX_packed_layout.h b/extern/ptex/BPX_packed_layout.h
index b3f73e9..015c3fc 100644
--- a/extern/ptex/BPX_packed_layout.h
+++ b/extern/ptex/BPX_packed_layout.h
@@ -71,7 +71,7 @@ struct BPXPackedLayout {
 			Item &item = *iter;
 
 			// Check if enough room on this row
-			if (dst_x + item.u_res + 2 * border >= width) {
+			if (dst_x + item.u_res + 2 * border > width) {
 				// Move to next row
 				assert(yinc != 0);
 				dst_y += yinc;




More information about the Bf-blender-cvs mailing list