We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3a1fda4 commit 5c003b0Copy full SHA for 5c003b0
1 file changed
hrt/prefab/Model.hx
@@ -42,9 +42,10 @@ class Model extends Object3D {
42
throw 'Could not load model $source needed in ${shared.currentPath} \n\n ${e}';
43
}
44
45
- if (obj.defaultTransform != null && this.find(Object3D, (p) -> { return p != this; }) != null) {
+ if (obj.defaultTransform != null && children.length > 0) {
46
obj.name = "root";
47
var root = new h3d.scene.Object();
48
+ root.name = name;
49
root.addChild(obj);
50
obj = root;
51
0 commit comments