Skip to content

Commit

Permalink
[FIX] Rendering clones of models that have not been added to the hier…
Browse files Browse the repository at this point in the history
…archy yet
  • Loading branch information
vkalpias committed Dec 3, 2015
1 parent c76bc85 commit 5b36460
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/scene/scene_graphnode.js
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,9 @@ pc.extend(pc, function () {
clone.dirtyWorld = this.dirtyWorld;

clone._enabled = this._enabled;
clone._enabledInHierarchy = this._enabledInHierarchy;

// false as this node is not in the hierarchy yet
clone._enabledInHierarchy = false;
},

clone: function () {
Expand Down

0 comments on commit 5b36460

Please sign in to comment.