Ignore:
Timestamp:
07/18/16 04:14:37 (8 years ago)
Author:
Maciej Komosinski
Message:
  • Part.m removed
  • Part.h becomes XPROP
  • validate more part and joint properties in Model.internalcheck()
File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpp/frams/model/model.cpp

    r522 r528  
    923923                                        p->mass = 0.0;
    924924                        }
    925                         //      VALIDMINMAX(p,part,mass);
     925                        //VALIDMINMAX(p,part,mass);//mass is very special
     926                        // VALIDMINMAX are managed manually when adding part properties in f0-def!
     927                        // (could be made dynamic but not really worth the effort)
    926928                        VALIDMINMAX(p, Part, size);
     929                        VALIDMINMAX(p, Part, scale.x);
     930                        VALIDMINMAX(p, Part, scale.y);
     931                        VALIDMINMAX(p, Part, scale.z);
     932                        VALIDMINMAX(p, Part, hollow);
    927933                        VALIDMINMAX(p, Part, density);
    928934                        VALIDMINMAX(p, Part, friction);
    929935                        VALIDMINMAX(p, Part, ingest);
    930936                        VALIDMINMAX(p, Part, assim);
     937                        VALIDMINMAX(p, Part, vsize);
     938                        VALIDMINMAX(p, Part, vcolor.x);
     939                        VALIDMINMAX(p, Part, vcolor.y);
     940                        VALIDMINMAX(p, Part, vcolor.z);
    931941                        p->flags &= ~LINKFLAG; // for delta joint cycle detection
    932942                        if (p->p.x - p->size < bbmin.x) bbmin.x = p->p.x - p->size;
     
    951961                {
    952962                        j = (Joint*)joints(i);
     963                        // VALIDMINMAX are managed manually when adding joint properties in f0-def!
     964                        // (could be made dynamic but not really worth the effort)
    953965                        VALIDMINMAX(j, Joint, stamina);
    954966                        VALIDMINMAX(j, Joint, stif);
    955967                        VALIDMINMAX(j, Joint, rotstif);
     968                        VALIDMINMAX(p, Part, vcolor.x);
     969                        VALIDMINMAX(p, Part, vcolor.y);
     970                        VALIDMINMAX(p, Part, vcolor.z);
    956971                        j->refno = i;
    957972                        j->owner = this;
     
    10391054        {
    10401055                n = (Neuro*)neurons(i);
    1041                 VALIDMINMAX(n, Neuro, state);
    10421056#ifdef MODEL_V1_COMPATIBLE
    10431057                VALIDMINMAX(n,Neuro,inertia);
Note: See TracChangeset for help on using the changeset viewer.