Closed GoogleCodeExporter closed 9 years ago
The absence of the "new" keyword doesn't seem to matter in these few line -
probbaly
because the Number3D.ZERO function does this...
return new Number3D(0,0,0);
and so the new keyword is used.
So the problem seems to be a name clash with the _target protected variable in
CameraObject3D line #454.
Original comment by Whistler...@gmail.com
on 18 Dec 2008 at 6:07
[deleted comment]
I am tracing the code in
http://blog.zupko.info/?s=Dragging3D
In a call from Dragging3D, line 70, setting up the BasicView:
DisplayObject3D line 196
Inside Number3D.ZERO
the instance id is @2eb8101
_target stays as null after the call
DisplayObject3D line 1201
_target is null but on tracing into
_target.reset() it's instance id is seen to be @2eb8101
Conclusion:
In DisplayObject3D _target stays at null because of the protected _target (also
null)
in CamerObject3D, line #454
_target is never set in CamerObject3D, line #374
The instance id makes it through the system anyway, surprisingly.
Original comment by Whistler...@gmail.com
on 19 Dec 2008 at 9:04
Original comment by neori...@gmail.com
on 29 Dec 2008 at 5:06
Its a name clash. Should be solved by making DO3D#_target a protected var and by
killing CameraObject3D#_target.
John, maybe its better if I take this on?
Original comment by tim.k...@gmail.com
on 29 Dec 2008 at 6:00
[deleted comment]
Should be fixed, can you verify too?
Original comment by tim.k...@gmail.com
on 29 Dec 2008 at 6:07
Original issue reported on code.google.com by
Whistler...@gmail.com
on 18 Dec 2008 at 4:15