]> git.mxchange.org Git - simgear.git/commit
allow to switch on/off at runtime a whole imported <model> via <condition>:
authormfranz <mfranz>
Tue, 24 Oct 2006 19:44:38 +0000 (19:44 +0000)
committermfranz <mfranz>
Tue, 24 Oct 2006 19:44:38 +0000 (19:44 +0000)
commit58760521704391bc7f0da7124930322111718f88
treeb1522e06a783cb080d0bd640164adab923eabe69
parentf8303b46230120408fc3b0d7df3091b9abdef493
allow to switch on/off at runtime a whole imported <model> via <condition>:

  <model>
      <path>some/model.xml</path>
      <condition>
          <property>model/switch</property>
      </condition>
  </model>

Of course, one could add "select" animations for all <object-name> in the
<model>, but this is tedious and can hardly be done e.g. for all
objects in all instruments in $FG_ROOT/Aircraft/Instruments-3d/ etc.

The feature will be used in the bo105, so that civilian variants can
have a HSI instrument, where military variants have a TACAN etc.
simgear/scene/model/model.cxx