Skip to content

Commit

Permalink
black
Browse files Browse the repository at this point in the history
  • Loading branch information
Yanis42 committed Dec 29, 2023
1 parent b1234f5 commit 6566257
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 3 additions & 1 deletion fast64_internal/oot/oot_level_writer.py
Original file line number Diff line number Diff line change
Expand Up @@ -502,7 +502,9 @@ def ootConvertScene(originalSceneObj, transformMatrix, sceneName, DLFormat, conv
if bpy.context.scene.exportHiddenGeometry:
restoreHiddenState(hiddenState)

roomObjs = [child for child in sceneObj.children_recursive if child.type == "EMPTY" and child.ootEmptyType == "Room"]
roomObjs = [
child for child in sceneObj.children_recursive if child.type == "EMPTY" and child.ootEmptyType == "Room"
]
if len(roomObjs) == 0:
raise PluginError("The scene has no child empties with the 'Room' empty type.")

Expand Down
4 changes: 1 addition & 3 deletions fast64_internal/oot/oot_utility.py
Original file line number Diff line number Diff line change
Expand Up @@ -333,9 +333,7 @@ def ootDuplicateHierarchy(obj, ignoreAttr, includeEmpties, objectCategorizer):

def ootSelectMeshChildrenOnly(obj, includeEmpties):
isMesh = obj.type == "MESH"
isEmpty = (
obj.type == "EMPTY" or obj.type == "CAMERA" or obj.type == "CURVE"
) and includeEmpties
isEmpty = (obj.type == "EMPTY" or obj.type == "CAMERA" or obj.type == "CURVE") and includeEmpties
if isMesh or isEmpty:
obj.select_set(True)
obj.original_name = obj.name
Expand Down

0 comments on commit 6566257

Please sign in to comment.