Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
User name:
Password:
Save Password
Forgot your password?

 All Forums
 Visual Assist
 Technical Support
 1239: FindNextbyContext skipping an item
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

imtrobin
Ketchup Master

50 Posts

Posted - Jun 16 2004 :  04:20:42 AM  Show Profile
I have FindNextByContext and FindPreviousByContext bind to Alt-Down/Up. I noticed that it wasn't finding all the references correctly. Happens in 1237 too.

The code is using the private implementation (pimpl or bridge pattern). I paste the relevant parts of the code only. When I select the wind_time_scale_ member variable and use FindNextByReference and FindPreviousByReference via the keyboard, VAX would always skip this particular line. Other areas of the variable are found, except this line.



class CImp
{
  float wind_period_		// control rolling effect
       ,wind_time_scale_;	// control wind strength



  void Setup_Shader (float time_passed)
  {
     // blah

     //THIS wind_time_scale_ VARIABLE IS ALWAYS SKIPPED
     float afTimeValues [4] = {shader_time_*wind_time_scale_, wind_period_, 0, 0};

     //blah 
    }

};

imtrobin
Ketchup Master

50 Posts

Posted - Jun 16 2004 :  04:22:50 AM  Show Profile
To add on, it also always skips the wind_period_ member variable. Other variables in the class work fine.
Go to Top of Page

support
Whole Tomato Software

5566 Posts

Posted - Jun 16 2004 :  12:21:38 PM  Show Profile
The asterisk and comma in the definition of afTimeValues confuses VA X. Workaround is to add parentheses.

float afTimeValues [4] = {(shader_time_*wind_time_scale_), wind_period_, 0, 0};

case=141

Whole Tomato Software, Inc.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000