1. Summary
  2. Files
  3. Support
  4. Report Spam
  5. Create account
  6. Log in

Changeset 9117

Show
Ignore:
Timestamp:
07/01/11 00:43:18 (2 years ago)
Author:
auria
Message:

Add new high-adhesion in STK panel and exporter, + another minor fix

Location:
media/trunk/blender_25
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • media/trunk/blender_25/stk_panel.py

    r9101 r9117  
    450450        'item'             : StkEnumChoice('Item (Gift Box)', {}), 
    451451        'lap'              : StkEnumChoice('Lap line', 
    452                                  {'activate' : StkProperty(id='activate', name="Activate", default="") 
     452                                 {'activate' : StkObjectReferenceProperty(id='activate', name="Activate", default="", contextLevel=CONTEXT_OBJECT, filter=lambda self, o : 'type' in o and o['type'] == 'check') 
    453453                                  #'toggle'  : Stkproperty("Toggle"), 
    454454                                  #'inner_radius' : StkFloatProperty("Color radius"), 
     
    600600       ('falling_effect',   StkBoolProperty( id='falling_effect',   name="Falling Effect",             default="false", contextLevel=CONTEXT_MATERIAL)), 
    601601       ('graphical_effect', StkEnumProperty( id='graphical_effect', name="Graphical Effect",           default='none',  contextLevel=CONTEXT_MATERIAL, values=GFX_VALUES)), 
     602       ('high_adhesion',    StkBoolProperty( id='high_adhesion',    name="High tires adhesion",        default="false", contextLevel=CONTEXT_MATERIAL)), 
    602603       ('ignore',           StkBoolProperty( id='ignore',           name="Ignore (ghost material)",    default="false", contextLevel=CONTEXT_MATERIAL)), 
    603604       ('mask',                 StkProperty( id='mask',             name="Mask image",                 default="")), 
     
    607608       ('sphere',           StkBoolProperty( id='sphere',           name="Sphere mapping",             default="false", contextLevel=CONTEXT_MATERIAL)), 
    608609       ('surface',          StkBoolProperty( id='surface',          name="Surface",                    default="false", contextLevel=CONTEXT_MATERIAL)), 
    609        ('friction',        StkFloatProperty( id='friction',         name="Tires adhesion",             default=50000.0)), 
    610610       ('zipper',           StkBoolProperty( id='zipper',           name="Zipper (speed boost)",       default="false", contextLevel=CONTEXT_MATERIAL, subproperties=ZIPPER_PROPERTIES)) 
    611611       ]) 
  • media/trunk/blender_25/stk_track.py

    r9103 r9117  
    16911691               'sphere'           : ("N", None), 
    16921692               'surface'          : ("N", None), 
    1693                'friction'         : (50000.0, None), 
     1693               'high_adhesion'    : ('false', None), 
    16941694               'slowdown_time'    : (1.0, 'use_slowdown'), 
    16951695               'max_speed'        : (1.0, 'use_slowdown')