提交 5268aeb0 编写于 作者: M Mr.doob

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

上级 794e26a9
......@@ -33,7 +33,7 @@ Other similar projects: [pre3d](http://deanm.github.com/pre3d/), [pvjs](http://c
### 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>
......@@ -124,7 +124,7 @@ Thanks to the power of the internets (and github <3) these people have kindly he
### Change Log ###
2010 07 12 - **r13** (29.410 kb)
2010 07 12 - **r13** (29.492 kb)
* Added `ParticleCircleMaterial` and `ParticleBitmapMaterial`
* `Particle` now use `ParticleCircleMaterial` instead of `ColorFillMaterial`
......
此差异已折叠。
......@@ -122,7 +122,7 @@
var amountx = 10;
var amounty = 10;
var material = new THREE.ColorFillMaterial(0x808080);
var material = new THREE.ParticleCircleMaterial(0x808080);
for (var ix = 0; ix < amountx; ix++) {
......
......@@ -19,9 +19,9 @@ files.append('core/Face4.js');
files.append('core/Geometry.js');
files.append('cameras/Camera.js');
files.append('objects/Object3D.js');
files.append('objects/Particle.js');
files.append('objects/Line.js');
files.append('objects/Mesh.js');
files.append('objects/Particle.js');
files.append('materials/BitmapUVMappingMaterial.js');
files.append('materials/ColorFillMaterial.js');
files.append('materials/ColorStrokeMaterial.js');
......
......@@ -22,7 +22,7 @@ def write(filename, scene, ob, \
if not filename.lower().endswith('.js'):
filename += '.js'
classname = ob.name
classname = filename.split('/')[-1].strip('.js')
if not ob:
raise Exception("Error, Select the object to export")
......
......@@ -22,7 +22,7 @@ def write(filename, scene, ob, \
if not filename.lower().endswith('.js'):
filename += '.js'
classname = ob.name
classname = filename.split('/')[-1].strip('.js')
if not ob:
raise Exception("Error, Select the object to export")
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册