Critical Bug - removeChild throws exception

Software: Away3D 4.x

sharf, Newbie
Posted: 22 March 2014 11:07 AM   Total Posts: 2

Typescript version of Away3d throws exception when tried to remove a child.
The exception is happening at Scene.ts

displayObject._iAssignedPartition is null

   

joaBaur, Newbie
Posted: 02 July 2014 06:59 AM   Total Posts: 2   [ # 1 ]

This happened to me, too. After lots of debugger stepping I think the reason for the crash is that when removing a child, its “_pImplicitPartition” is first set to null and later on the “iUnregisterEntity” function crashes, if the “_explicitPartition” is not set on the child

My fix for this is to insert this line:

this.partition this._iAssignedPartition

here into the Away3D code:

TYPESCRIPT: awayjs-core-ts-master/src/away/core/base/DisplayObject.ts
BEFORE line 1964 (“this._pUpdateImplicitPartition(null);”)

[removed] awayjs-core.next.js
BEFORE line 10075 (“this._pUpdateImplicitPartition(null);”)

Maybe you could try that and tell me if it it fixes your crahes also

 

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X