Changeset 1836
- Timestamp:
- 10/31/08 18:49:24 (2 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
pyprp/branches/gow-fork/contrib/Dox/prp_DrawClasses.py
r1796 r1836 1410 1410 1411 1411 # 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: 1413 1413 if not lightGroup == None: 1414 1414 # if a lightgroup is set, use those lights, else use all lights in the page.... … … 1420 1420 else: 1421 1421 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)1430 1422 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" 1432 1433 1433 1434 for pllamp in mylights: … … 2320 2321 lightGroup = mat.lightGroup 2321 2322 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: 2323 2324 if not lightGroup == None: 2324 2325 # if a lightgroup is set, use those lights, else use all lights in the page.... … … 2330 2331 else: 2331 2332 mylights = lights 2332 elif FindInDict(script, "visual.lights", False): 2333 else: 2334 if FindInDict(script, "visual.lights", False): 2333 2335 visLamps = list(FindInDict(script, "visual.lights", [])) 2334 2336 mylights = [] … … 2338 2340 lamp = root.findref(ref,1) 2339 2341 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" 2342 2344 2343 2345 for pllamp in mylights: pyprp/branches/gow-fork/contrib/Dox/prp_RefParser.py
r1796 r1836 169 169 return None 170 170 171 return { 'type': keytype, "name": name,"pagename": None }171 return { 'type': keytype, "name": name,"pagename": pagename } 172 172 173 173 else: … … 298 298 # print " Decoding MixedRef:",keystring 299 299 reftype = ScriptRefParser.MixedRef_GetType(keystring) 300 301 print "%s - %s" % (reftype, keystring) 300 302 301 303 plobj = None
