Pārlūkot izejas kodu

Editor: Enable recursivity when looking for the object child.
Fixes problem of not being able to add children with more than one level of hierarchy.

Mr.doob 12 gadi atpakaļ
vecāks
revīzija
82e3a4da97
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      editor/js/ui/Sidebar.Object3D.js

+ 1 - 1
editor/js/ui/Sidebar.Object3D.js

@@ -255,7 +255,7 @@ Sidebar.Object3D = function ( signals ) {
 
 				if ( selected.parent.id !== newParentId && selected.id !== newParentId ) {
 
-					var parent = scene.getObjectById( newParentId );
+					var parent = scene.getObjectById( newParentId, true );
 
 					if ( parent === undefined ) {