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,6 +3,9 @@
 | 
			
		||||
"""
 | 
			
		||||
The Blender.Window submodule.
 | 
			
		||||
 | 
			
		||||
B{New}: renamed ViewLayer to L{ViewLayers} (actually added an alias, so both
 | 
			
		||||
forms will work).
 | 
			
		||||
 | 
			
		||||
Window
 | 
			
		||||
======
 | 
			
		||||
 | 
			
		||||
@@ -263,7 +266,7 @@ def EditMode(enable = -1, undo_msg = 'From script'):
 | 
			
		||||
      because the normal mesh will be rebuilt based on its unchanged edit mesh.
 | 
			
		||||
  """
 | 
			
		||||
 | 
			
		||||
def ViewLayer (layers = []):
 | 
			
		||||
def ViewLayers (layers = []):
 | 
			
		||||
  """
 | 
			
		||||
  Get and optionally set the currently visible layers in all 3d Views.
 | 
			
		||||
  @type layers: list of ints
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user