~diresu/blender/blender-command-port

« back to all changes in this revision

Viewing changes to source/gameengine/Expressions/ListValue.cpp

  • Committer: Dietrich Bollmann
  • Date: 2009-04-26 06:25:14 UTC
  • mfrom: (184.1.520)
  • Revision ID: diresu@web.de-20090426062514-ly27wepl1t5d7p8s
Update to state of blender repository from 2009-04-26 revision 19927.

Show diffs side-by-side

added added

removed removed

Lines of Context:
530
530
{
531
531
        int numfound = 0;
532
532
 
533
 
        CValue* checkobj = ConvertPythonToValue(value, "cList.count(val): CValueList, ");
 
533
        CValue* checkobj = ConvertPythonToValue(value, ""); /* error ignored */
534
534
        
535
535
        if (checkobj==NULL) { /* in this case just return that there are no items in the list */
536
536
                PyErr_Clear();
578
578
CValue* CListValue::Calc(VALUE_OPERATOR op,CValue *val) 
579
579
{
580
580
        //assert(false); // todo: implement me!
581
 
        fprintf(stderr, "CValueList::Calc not yet implimented\n");
 
581
        static int error_printed =  0;
 
582
        if (error_printed==0) {
 
583
                fprintf(stderr, "CValueList::Calc not yet implimented\n");
 
584
                error_printed = 1;
 
585
        }
582
586
        return NULL;
583
587
}
584
588
 
585
 
 
586
 
 
587
589
CValue* CListValue::CalcFinal(VALUE_DATA_TYPE dtype,
588
590
                                                          VALUE_OPERATOR op, 
589
591
                                                          CValue* val) 
590
592
{
591
593
        //assert(false); // todo: implement me!
592
 
        fprintf(stderr, "CValueList::CalcFinal not yet implimented\n");
 
594
        static int error_printed =  0;
 
595
        if (error_printed==0) {
 
596
                fprintf(stderr, "CValueList::CalcFinal not yet implimented\n");
 
597
                error_printed = 1;
 
598
        }
593
599
        return NULL;
594
600
}
595
601