Changeset 1836

Show
Ignore:
Timestamp:
10/31/08 18:49:24 (2 months ago)
Author:
ForkSVNUser
Message:

REVISION 337: On 2008-10-23T04:18:06.238413Z, Unknown commited with the next message:
Fixes, breakage, and stuff with no relevance...

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • pyprp/branches/gow-fork/contrib/Dox/prp_DrawClasses.py

    r1796 r1836  
    14101410 
    14111411            # Only add lights for this icicle if we are not "SHADELESS" 
    1412             if not mat.mode & Blender.Material.Modes["SHADELESS"]
     1412            if not mat.mode & Blender.Material.Modes["SHADELESS"] and not FindInDict(script, "visual.lights", 0) is 0
    14131413                if not lightGroup == None: 
    14141414                    # if a lightgroup is set, use those lights, else use all lights in the page.... 
     
    14201420                else: 
    14211421                    mylights = lights 
    1422             elif FindInDict(script, "visual.lights", False): 
    1423                 visLamps = list(FindInDict(script, "visual.lights", [])) 
    1424                 mylights = [] 
    1425                 for refLamp in visLamps: 
    1426                     refparser = ScriptRefParser(self.getRoot(),str(self.Key.name),"lightinfo") 
    1427                     ref = refparser.MixedRef_FindCreateRef(refLamp) 
    1428                     lamp = root.findref(ref,1) 
    1429                     mylights.append(lamp) 
    14301422            else: 
    1431                 print "    Object is Shadeless, not appending any lamps" 
     1423                if FindInDict(script, "visual.lights", False): 
     1424                    visLamps = list(FindInDict(script, "visual.lights", [])) 
     1425                    mylights = [] 
     1426                    for refLamp in visLamps: 
     1427                        refparser = ScriptRefParser(self.getRoot(),str(self.Key.name),"lightinfo") 
     1428                        ref = refparser.MixedRef_FindCreateRef(refLamp) 
     1429                        lamp = root.findref(ref,1) 
     1430                        mylights.append(lamp) 
     1431                else: 
     1432                    print "    Object is Shadeless, not appending any lamps" 
    14321433 
    14331434            for pllamp in mylights: 
     
    23202321        lightGroup = mat.lightGroup 
    23212322        mylights = [] 
    2322         if not mat.mode & Blender.Material.Modes["SHADELESS"]
     2323        if not mat.mode & Blender.Material.Modes["SHADELESS"] and not FindInDict(script, "visual.lights", 0) is 0
    23232324            if not lightGroup == None: 
    23242325                # if a lightgroup is set, use those lights, else use all lights in the page.... 
     
    23302331            else: 
    23312332                mylights = lights 
    2332         elif FindInDict(script, "visual.lights", False): 
     2333        else: 
     2334            if FindInDict(script, "visual.lights", False): 
    23332335                visLamps = list(FindInDict(script, "visual.lights", [])) 
    23342336                mylights = [] 
     
    23382340                    lamp = root.findref(ref,1) 
    23392341                    mylights.append(lamp) 
    2340         else: 
    2341             print "    Object is Shadeless, not appending any lamps" 
     2342            else: 
     2343                print "    Object is Shadeless, not appending any lamps" 
    23422344 
    23432345        for pllamp in mylights: 
  • pyprp/branches/gow-fork/contrib/Dox/prp_RefParser.py

    r1796 r1836  
    169169                        return None 
    170170 
    171                     return { 'type': keytype, "name": name,"pagename": None } 
     171                    return { 'type': keytype, "name": name,"pagename": pagename } 
    172172 
    173173                else: 
     
    298298#        print " Decoding MixedRef:",keystring 
    299299        reftype = ScriptRefParser.MixedRef_GetType(keystring) 
     300         
     301        print "%s - %s" % (reftype, keystring) 
    300302 
    301303        plobj = None