BPython:
- based on a request by Campbell (he also provided a patch for scene.Layer) access to layers was improved a little, keeping the old method (ob.Layers is a bitmask) and adding the nicer one (ob.layers is a list of ints). Done for objects and scenes. House-cleaning: .Layer was renamed to .Layers (actually just using strncmp instead of strcmp, so both work, same done for Window.ViewLayers). - finally committing patch by Ken Hughes to let .clearScriptLinks() accept a parameter (list of strings) to clear only specified texts. - doc updates and fixes (JMS reported a problem in nmesh.transform() example code). Thanks all who contributed.
This commit is contained in:
		| @@ -3,10 +3,10 @@ | ||||
| """ | ||||
| The Blender.World submodule | ||||
|  | ||||
| B{New}: L{GetCurrent}, L{World.setCurrent}. | ||||
| B{New}: L{World.clearScriptLinks} accepts a parameter now. | ||||
|  | ||||
| INTRODUCTION | ||||
| ============ | ||||
| World | ||||
| ===== | ||||
|  | ||||
| The module world allows you to access all the data of a Blender World. | ||||
|  | ||||
| @@ -299,11 +299,12 @@ class World: | ||||
|         'event' type) or None if there are no script links at all. | ||||
|     """ | ||||
|  | ||||
|   def clearScriptLinks (): | ||||
|   def clearScriptLinks (links = None): | ||||
|     """ | ||||
|     Delete all this World's script links! | ||||
|     @rtype: bool | ||||
|     @return: 0 if some internal problem occurred or 1 if successful. | ||||
|     Delete script links from this World :).  If no list is specified, all | ||||
|     script links are deleted. | ||||
|     @type links: list of strings | ||||
|     @param links: None (default) or a list of Blender L{Text} names. | ||||
|     """ | ||||
|  | ||||
|   def addScriptLink (text, event): | ||||
|   | ||||
		Reference in New Issue
	
	Block a user