Skip to content

Commit ce0a699

Browse files
DoobesURUHoikas
andauthored
Apply suggestions from Hoikas' code review
Puts in suggestions from Hoikas. Co-authored-by: Adam Johnson <AdamJohnso@gmail.com>
1 parent cb5b35c commit ce0a699

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

korman/operators/op_toolbox.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ class PlasmaToggleDoubleSidedOperator(ToolboxOperator, bpy.types.Operator):
183183
def execute(self, context):
184184
enable = self.enable
185185
for mat in bpy.data.materials:
186-
mat.plasma_mat.plasma_double_sided = enable
186+
mat.plasma_material.double_sided = enable
187187
return {"FINISHED"}
188188

189189

@@ -198,9 +198,9 @@ def poll(cls, context):
198198

199199
def execute(self, context):
200200
mat_list = [slot.material for slot in itertools.chain.from_iterable((i.material_slots for i in context.selected_objects)) if slot and slot.material]
201-
enable = not all((mat.plasma_mat.plasma_double_sided for mat in mat_list))
201+
enable = not all((mat.plasma_material.double_sided for mat in mat_list))
202202
for mat in mat_list:
203-
mat.plasma_mat.plasma_double_sided = enable
203+
mat.plasma_material.double_sided = enable
204204
return {"FINISHED"}
205205

206206

korman/properties/prop_material.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,6 @@ class PlasmaMaterial(bpy.types.PropertyGroup):
2222
bl_idname = "material.plasma_material"
2323

2424
double_sided = BoolProperty(name="Double Sided",
25-
description="Sets this material as double sided (formerly TWOSIDE)",
26-
default=False)
25+
description="Sets this material as double sided (formerly TWOSIDE)",
26+
default=False)
2727

0 commit comments

Comments
 (0)