= line ending fix =
[blender.git] / release / scripts / weightpaint_gradient.py
index 4c125ca485525ee24e54b04c83eed094ab66b4bf..d16800b8977c326bb36ea301189df8478b66189e 100755 (executable)
@@ -25,9 +25,9 @@ import Blender
 
 def main():
        scn= Blender.Scene.GetCurrent()
-       ob= scn.getActiveObject()
+       ob= scn.objects.active
        
-       if not ob or ob.getType() != 'Mesh':
+       if not ob or ob.type != 'Mesh':
                Blender.Draw.PupMenu('Error, no active mesh object, aborting.')
                return
        # MODE 0 == VCOL
@@ -38,4 +38,4 @@ def main():
 
 if __name__ == '__main__':
        main()
-       
\ No newline at end of file
+