Daniel 10 лет назад
Родитель
Сommit
5bb4222139
2 измененных файлов с 28 добавлено и 1 удалено
  1. 27 0
      README.md
  2. 1 1
      editor/js/CmdSetGeometry.js

+ 27 - 0
README.md

@@ -1,3 +1,30 @@
+Undo/Redo for three.js-editor
+===
+
+### Goals of this project ###
+
+The main objective of this project is to bring undo/redo functionality to the three.js-editor.
+
+**Other goals include:**
+
+- Preserving the Undo/Redo-history across a browser refresh
+- Providing test cases for the added functionality
+- Providing the user with a visual representation of the Undo/Redo history
+- Providing documentation for the community on how to make additional functionality un-/redoable
+
+[Project Page](http://ip5.fukuro.ch)
+
+[Live-Demo (editor-only)](http://threejs.fukuro.ch/editor)
+
+[Testlab](http://ip5.fukuro.ch/test_runs)
+
+The project is developed by [lxxxvi](https://github.com/lxxxvi) and [dforrer](https://github.com/dforrer).
+
+_And here is the description from the [forked repository maintained by mrdoob](https://github.com/mrdoob/three.js)._
+
+---
+
+
 three.js
 three.js
 ========
 ========
 
 

+ 1 - 1
editor/js/CmdSetGeometry.js

@@ -77,7 +77,7 @@ CmdSetGeometry.prototype = {
 	parseGeometry: function ( data ) {
 	parseGeometry: function ( data ) {
 
 
 		var loader = new THREE.ObjectLoader();
 		var loader = new THREE.ObjectLoader();
-		return loader.parseGeometries( [data] )[ data.uuid ];
+		return loader.parseGeometries( [ data ] )[ data.uuid ];
 
 
 	}
 	}