Browse Source

- Blender Exporter: Using filename instead of object name for classname (easier to use that way)

Mr.doob 15 years ago
parent
commit
5268aeb0c9

+ 2 - 2
README.md

@@ -33,7 +33,7 @@ Other similar projects: [pre3d](http://deanm.github.com/pre3d/), [pvjs](http://c
 
 
 ### Usage ###
 ### Usage ###
 
 
-Download the [compiled library](http://github.com/mrdoob/three.js/raw/master/build/three.js) and include it in your html.
+Download the [compressed library](http://github.com/mrdoob/three.js/raw/master/build/three.js) and include it in your html.
 
 
 	<script type="text/javascript" src="js/three.js"></script>
 	<script type="text/javascript" src="js/three.js"></script>
 
 
@@ -124,7 +124,7 @@ Thanks to the power of the internets (and github <3) these people have kindly he
 
 
 ### Change Log ###
 ### Change Log ###
 
 
-2010 07 12 - **r13** (29.410 kb)
+2010 07 12 - **r13** (29.492 kb)
 
 
 * Added `ParticleCircleMaterial` and `ParticleBitmapMaterial`
 * Added `ParticleCircleMaterial` and `ParticleBitmapMaterial`
 * `Particle` now use `ParticleCircleMaterial` instead of `ColorFillMaterial`
 * `Particle` now use `ParticleCircleMaterial` instead of `ColorFillMaterial`

File diff suppressed because it is too large
+ 0 - 0
build/three.js


+ 1 - 1
examples/materials_video.html

@@ -122,7 +122,7 @@
 				var amountx = 10;
 				var amountx = 10;
 				var amounty = 10;
 				var amounty = 10;
 
 
-				var material = new THREE.ColorFillMaterial(0x808080);
+				var material = new THREE.ParticleCircleMaterial(0x808080);
 
 
 				for (var ix = 0; ix < amountx; ix++) {
 				for (var ix = 0; ix < amountx; ix++) {
 
 

+ 1 - 1
utils/deployer.py

@@ -19,9 +19,9 @@ files.append('core/Face4.js');
 files.append('core/Geometry.js');
 files.append('core/Geometry.js');
 files.append('cameras/Camera.js');
 files.append('cameras/Camera.js');
 files.append('objects/Object3D.js');
 files.append('objects/Object3D.js');
+files.append('objects/Particle.js');
 files.append('objects/Line.js');
 files.append('objects/Line.js');
 files.append('objects/Mesh.js');
 files.append('objects/Mesh.js');
-files.append('objects/Particle.js');
 files.append('materials/BitmapUVMappingMaterial.js');
 files.append('materials/BitmapUVMappingMaterial.js');
 files.append('materials/ColorFillMaterial.js');
 files.append('materials/ColorFillMaterial.js');
 files.append('materials/ColorStrokeMaterial.js');
 files.append('materials/ColorStrokeMaterial.js');

+ 1 - 1
utils/export_threejs_25a2.py

@@ -22,7 +22,7 @@ def write(filename, scene, ob, \
     if not filename.lower().endswith('.js'):
     if not filename.lower().endswith('.js'):
         filename += '.js'
         filename += '.js'
 
 
-    classname = ob.name
+    classname = filename.split('/')[-1].strip('.js')
 
 
     if not ob:
     if not ob:
         raise Exception("Error, Select the object to export")
         raise Exception("Error, Select the object to export")

+ 1 - 1
utils/export_threejs_25b.py

@@ -22,7 +22,7 @@ def write(filename, scene, ob, \
     if not filename.lower().endswith('.js'):
     if not filename.lower().endswith('.js'):
         filename += '.js'
         filename += '.js'
 
 
-    classname = ob.name
+    classname = filename.split('/')[-1].strip('.js')
 
 
     if not ob:
     if not ob:
         raise Exception("Error, Select the object to export")
         raise Exception("Error, Select the object to export")

Some files were not shown because too many files changed in this diff