Mantis - Croquet
Viewing Issue Advanced Details
552 Jasmine trivial always 11-23-04 19:59 11-26-04 15:09
elenzil  
andreas  
normal  
resolved  
fixed  
none    
none  
0000552: TeapotMorph makeFloor:texture: broken.
a) it uses a different texture scale than makeFloor:fileName:
b) it uses TCube scaleX:y:z:, which does not exist.
c) it did not return the created TCube object.

fixed method code is here:
-------------------------------------------
makeFloor: sp texture: texture
    | stone |

    texture uvScale: 8.0@8.0.

    stone _ TCube new.
    stone extentX:80 y:0.5 z: 80.
    stone translationX: 0 y: -4.0 z: 0.0.
    stone texture: texture.
    sp addChild: stone.

    ^ stone.
-------------------------------------------

Notes
(0000760)
andreas   
11-26-04 15:09   
Thanks for the fix.