Ignore:
Timestamp:
12/02/10 21:22:45 (4 years ago)
Author:
helios2000
Message:
  • Added an additional flag to the Instance. This protects against unintentional change of Instance blocking. ObjectEdit?, Saver and Loader use the flag.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/active/0.3.3dev/engine/python/fife/extensions/savers.py

    r3517 r3520  
    216216                                attr_names[(None, 'id')] = 'id' 
    217217 
    218                         if inst.getObject().isBlocking() != inst.isBlocking(): 
    219                                 attr_vals[(None, 'blocking')] = str(int(inst.isBlocking())) 
    220                                 attr_names[(None, 'blocking')] = 'blocking' 
     218                        if inst.isOverrideBlocking(): 
     219                                attr_vals[(None, 'override_blocking')] = str(int(inst.isOverrideBlocking())) 
     220                                attr_names[(None, 'override_blocking')] = 'override_blocking' 
     221                                if inst.getObject().isBlocking() is not inst.isBlocking(): 
     222                                        attr_vals[(None, 'blocking')] = str(int(inst.isBlocking())) 
     223                                        attr_names[(None, 'blocking')] = 'blocking' 
    221224 
    222225                        attrs = AttributesNSImpl(attr_vals, attr_names) 
Note: See TracChangeset for help on using the changeset viewer.