Skip to content

Commit

Permalink
Examples link fix
Browse files Browse the repository at this point in the history
  • Loading branch information
xeolabs committed May 17, 2013
1 parent 70a9c9d commit 18cc5ec
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 11 deletions.
2 changes: 1 addition & 1 deletion build/latest/scenejs.js
Original file line number Diff line number Diff line change
Expand Up @@ -5896,7 +5896,7 @@ SceneJS.Node.prototype.removeNode = function(node) {

if (!node._compile) {
if (typeof node == "string") {
var gotNode = this._engine.nodes.items[node];
var gotNode = this._engine.findNode(node);
if (!gotNode) {
throw SceneJS_error.fatalError(
SceneJS.errors.NODE_NOT_FOUND,
Expand Down
13 changes: 4 additions & 9 deletions examples/ex/index.json
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@
{
"title":"Directional lights in World space with color map",
"path":"lights/directional/directionalWorldWithColorMap.html",
"tags":["texturing", "specularLight", "diffuseLight"]
"tags":["texture", "specularLight", "diffuseLight"]
}
]
},
Expand All @@ -249,9 +249,9 @@
]
},
{
"title":"Texturing",
"title":"texture",
"tip":"Working with texture maps",
"tags":["texturing"],
"tags":["texture"],
"nodes":[
{
"title":"Color mapping",
Expand Down Expand Up @@ -599,7 +599,7 @@
},
{
"title":"Toggle backface texturing",
"tags":["texturing"],
"tags":["texture"],
"tip":"Using a flags node to toggle lighting of back faces of child geometries",
"path":"flags/backfaceTexturing.html"
},
Expand Down Expand Up @@ -664,11 +664,6 @@
"title":"Create nodes",
"path":"sceneGraph/nodes/createNodes.html",
"tags":["nodes"]
},
{
"title":"Replace leaf node",
"path":"sceneGraph/nodes/replaceLeaf.html",
"tags":["nodes"]
}
]
}
Expand Down
2 changes: 1 addition & 1 deletion src/core/scene/node.js
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ SceneJS.Node.prototype.removeNode = function(node) {

if (!node._compile) {
if (typeof node == "string") {
var gotNode = this._engine.nodes.items[node];
var gotNode = this._engine.findNode(node);
if (!gotNode) {
throw SceneJS_error.fatalError(
SceneJS.errors.NODE_NOT_FOUND,
Expand Down

0 comments on commit 18cc5ec

Please sign in to comment.