mirror of
https://github.com/blender/blender-addons.git
synced 2025-08-16 15:35:05 +00:00
Cleanup: tabs to spaces
This commit is contained in:
@ -81,6 +81,7 @@ def createFaces(vertIdx1, vertIdx2, closed=False, flipped=False):
|
||||
|
||||
return faces
|
||||
|
||||
|
||||
def power(a,b):
|
||||
if a < 0:
|
||||
return -((-a)**b)
|
||||
|
@ -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__()
|
||||
|
@ -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:
|
||||
|
||||
|
Reference in New Issue
Block a user