parameters: (obj)
docstring: :param obj:
function: def cast_shadow(obj):
      """
  
      :param obj:
  
      """
      logger.debug('object.cast_shadow(%s)', obj)
      if obj.type == LAMP:
          if obj.data.type in (SPOT, SUN):
              ret = obj.data.shadow_method != NO_SHADOW
          else:
              logger.info('%s is a lamp but this lamp type does not '\
                  'have supported shadows in ThreeJS', obj.name)
              ret = None
          return ret
      elif obj.type == MESH:
          mats = material(obj)
          if mats:
              for m in mats:
                  if data.materials[m].use_cast_shadows:
                      return True
          return False
function_tokens: def cast_shadow ( obj ) : logger . debug ( 'object.cast_shadow(%s)' , obj ) if obj . type == LAMP : if obj . data . type in ( SPOT , SUN ) : ret = obj . data . shadow_method != NO_SHADOW else : logger . info ( '%s is a lamp but this lamp type does not ' 'have supported shadows in ThreeJS' , obj . name ) ret = None return ret elif obj . type == MESH : mats = material ( obj ) if mats : for m in mats : if data . materials [ m ] . use_cast_shadows : return True return False