Changeset 504


Ignore:
Timestamp:
08/05/10 12:41:47 (18 months ago)
Author:
wschwan
Message:

added option to NOT set the creator of the TargetHolder?. The default behavior is as before so no changed to existing applications should be nessesary.

Location:
trunk/avango-tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/avango-tools/include/avango/tools/PickSelector.h

    r13 r504  
    127127 
    128128      /** 
     129           * If true, the creator of the TargetHolder will be set. This is the default. 
     130           */ 
     131          SFBool SetCreator; 
     132 
     133      /** 
    129134       * To disable picking for specific nodes, add a SFUInt field called "PickMask" 
    130135       * to the node. The picking is disabled, if the bitwise AND of it with the 
  • trunk/avango-tools/src/avango/tools/PickSelector.cpp

    r415 r504  
    4343  AV_FC_ADD_FIELD(PickTrigger, false); 
    4444  AV_FC_ADD_FIELD(TransitionOnly, true); 
     45  AV_FC_ADD_FIELD(SetCreator, true); 
    4546  AV_FC_ADD_FIELD(EveryFrame, false); 
    4647  AV_FC_ADD_FIELD(PickRayTransform, ::osg::Matrix::identity()); 
     
    208209 
    209210          holder->Target.setValue(target); 
    210           holder->Creator.setValue(this); 
     211 
     212          if (SetCreator.getValue()) 
     213            holder->Creator.setValue(this); 
     214 
    211215          mSelectedTargets.push_back(holder); 
    212216        } 
Note: See TracChangeset for help on using the changeset viewer.