(re)add color, fix loading

pull/29/head
Michael Aschauer 2017-05-31 00:36:47 +02:00
rodzic b8b022a41e
commit 10c5fa8e0f
2 zmienionych plików z 10 dodań i 1 usunięć

Wyświetl plik

@ -45,7 +45,15 @@ SpriteMorph.prototype.addStitch = function(x1, y1, x2, y2) {
stage.myStitchLines.add(line);
*/
var material = new THREE.LineBasicMaterial( { color: 0x000000 } );
//var material = new THREE.LineBasicMaterial( { color: 0x000000 } );
var material = new THREE.MeshBasicMaterial({
color: new THREE.Color("rgb("+
Math.round(stage.drawingColor.r) + "," +
Math.round(stage.drawingColor.g) + "," +
Math.round(stage.drawingColor.b) + ")" ),
side:THREE.DoubleSide,
opacity: 1
});
var geometry = new THREE.Geometry();
geometry.vertices = [
new THREE.Vector3(x1, y1, 0.0),

Wyświetl plik

@ -1456,6 +1456,7 @@ SnapSerializer.prototype.openProject = function (project, ide) {
//})
ide.world().keyboardReceiver = project.stage;
ide.stage.initCamera();
};
// SnapSerializer XML-representation of objects: