Skip to content

Commit 8ef6b07

Browse files
committed
Allow null placeholder materials. Fixes GH-17.
1 parent 848a7fc commit 8ef6b07

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,7 @@ npm install voxel-texture
162162
```
163163

164164
## release history
165+
* 0.5.4 - Allow null placeholder materials.
165166
* 0.5.3 - Force texture to dimensions that are power of 2 for mipmaps.
166167
* 0.5.2 - Use atlaspack tilepad to avoid mipmap texture bleed.
167168
* 0.5.1 - Fix CORS support.

index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ Texture.prototype.find = function(name) {
111111
};
112112

113113
Texture.prototype._expandName = function(name) {
114+
if (name === null) return Array(6);
114115
if (name.top) return [name.back, name.front, name.top, name.bottom, name.left, name.right];
115116
if (!Array.isArray(name)) name = [name];
116117
// load the 0 texture to all

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "voxel-texture",
33
"description": "A texture helper for voxeljs",
4-
"version": "0.5.3",
4+
"version": "0.5.4",
55
"homepage": "https://github.com/shama/voxel-texture",
66
"author": {
77
"name": "Kyle Robinson Young",
@@ -33,9 +33,9 @@
3333
"atlaspack": "~0.2.4"
3434
},
3535
"devDependencies": {
36-
"voxel-engine": "~0.16.3",
36+
"voxel-engine": "~0.17.1",
3737
"voxel-debris": "~0.0.4",
38-
"browservefy": "0.0.9",
38+
"browservefy": "0.0.10",
3939
"voxel-player": "~0.1.0"
4040
},
4141
"keywords": [

0 commit comments

Comments
 (0)