Cleanup: tabs to spaces

This commit is contained in:
Campbell Barton
2016-05-01 13:27:59 +10:00
parent 59ea4fc9f1
commit 1b1aaf3e25
5 changed files with 46 additions and 45 deletions

View File

@ -81,6 +81,7 @@ def createFaces(vertIdx1, vertIdx2, closed=False, flipped=False):
return faces
def power(a,b):
if a < 0:
return -((-a)**b)

View File

@ -127,6 +127,7 @@ class RatingUsage(RatingRule):
"id":self.id()
}
class RatingUsageByCategory(RatingRule):
def __init__(self, get_jobs):
super().__init__()
@ -203,7 +204,6 @@ class MinimumTimeBetweenDispatchPriority(PriorityRule):
"limit": self.limit,
"limit_str":self.str_limit(),
"id":self.id()
}
class ExcludeQueuedEmptyJob(ExclusionRule):
@ -226,6 +226,7 @@ class ExcludeQueuedEmptyJob(ExclusionRule):
"id":self.id()
}
class ExcludeSlavesLimit(ExclusionRule):
def __init__(self, count_jobs, count_slaves, limit = 0.75):
super().__init__()

View File

@ -544,14 +544,13 @@ def texface_to_mat():
bpy.ops.object.mode_set(mode='EDIT')
def remove_materials():
for ob in bpy.data.objects:
print (ob.name)
try:
bpy.ops.object.material_slot_remove()
print ("removed material from " + ob.name)
except:
print (ob.name + " does not have materials.")
# -----------------------------------------------------------------------------
# operator classes: