]> git.mxchange.org Git - flightgear.git/commit
Expose pose of scenery models to Nasal load/unload scripts.
authorThomas Geymayer <tomgey@gmail.com>
Sat, 23 Mar 2013 11:53:17 +0000 (12:53 +0100)
committerThomas Geymayer <tomgey@gmail.com>
Sat, 23 Mar 2013 11:54:45 +0000 (12:54 +0100)
commit913727239d6776c0508d206f395e16c265413ec3
treed58427320e6a6195a4bbc35816b9875c9610aa63
parenteba03b5e469824ee8f1494723fcddbbc56155a08
Expose pose of scenery models to Nasal load/unload scripts.

This allows Nasal code attached to scenery models access their
world position and orientation by calling _model.getPose().

Also ensure models are attached to the scenegraph before Nasal
load scripts are called. This ensures that the world position
and orientation are available upon executing the load script.
src/Scripting/NasalModelData.cxx
src/Scripting/NasalPositioned_cppbind.cxx
src/Scripting/NasalSys.cxx
src/Scripting/NasalSys.hxx