Scene.c - Removed redraw when in non UI mode.
Lamp.py - Example indent Object.py - Improved join documentation.
This commit is contained in:
		| @@ -39,15 +39,15 @@ Example:: | ||||
|   - 'NoDiffuse' | ||||
|   - 'RayShadow' | ||||
|  | ||||
| Example:: | ||||
|   from Blender import Lamp, Object | ||||
|   # Change the mode of selected lamp objects. | ||||
|   for ob in Object.GetSelected():   # Loop through the current selection | ||||
|     if ob.getType() == "Lamp":      # if this is a lamp. | ||||
|       lamp = ob.getData()           # get the lamp data. | ||||
|       if lamp.type == Lamp.Types["Spot"]:  # Lamp type is not a flag | ||||
|         lamp.mode &= ~Lamp.Modes["RayShadow"] # Disable RayShadow. | ||||
|         lamp.mode |= Lamp.Modes["Shadows"]    # Enable Shadowbuffer shadows | ||||
|   Example:: | ||||
|     from Blender import Lamp, Object | ||||
|     # Change the mode of selected lamp objects. | ||||
|     for ob in Object.GetSelected():   # Loop through the current selection | ||||
|       if ob.getType() == "Lamp":      # if this is a lamp. | ||||
|         lamp = ob.getData()           # get the lamp data. | ||||
|         if lamp.type == Lamp.Types["Spot"]:  # Lamp type is not a flag | ||||
|           lamp.mode &= ~Lamp.Modes["RayShadow"] # Disable RayShadow. | ||||
|           lamp.mode |= Lamp.Modes["Shadows"]    # Enable Shadowbuffer shadows | ||||
| """ | ||||
|  | ||||
| def New (type = 'Lamp', name = 'LampData'): | ||||
|   | ||||
		Reference in New Issue
	
	Block a user