|
@@ -157,9 +157,9 @@ class ModelCache {
|
|
|
prevChild = parent.numChildren;
|
|
|
local3d = parent;
|
|
|
} else {
|
|
|
- local3d = parent = new h3d.scene.Object();
|
|
|
+ local3d = new h3d.scene.Object();
|
|
|
}
|
|
|
- var ctx2 = p.make(parent);
|
|
|
+ var ctx2 = p.make(local3d);
|
|
|
if( parent != null ) {
|
|
|
// only return object if a single child was added
|
|
|
// if not - multiple children were added and cannot be returned as a single object
|