Skip to content

Commit

Permalink
Mostly housekeeping, no functional changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
CCrashCup authored Aug 22, 2024
1 parent e023585 commit 6e43153
Showing 1 changed file with 21 additions and 21 deletions.
42 changes: 21 additions & 21 deletions FoV_Sphere/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"blender": (2, 80, 0),
"category": "Object",
"author": "Lofty",
"version": (1, 2),
"version": (1, 3),
"description": "Determines the FoV_Y and Width import values for a Sphere Object",
}

Expand Down Expand Up @@ -58,7 +58,7 @@ def poll(cls, context):
#
def changeBaseFoV(self, context):
scene = context.scene
fovtool = scene.my_tool
fovtool = scene.fov_tool

fovtool.base_fov_bool = True

Expand All @@ -71,7 +71,7 @@ def changeBaseFoV(self, context):

def changeTestFoV(self, context):
scene = context.scene
fovtool = scene.my_tool
fovtool = scene.fov_tool

fovtool.test_fov_bool = True

Expand All @@ -82,7 +82,7 @@ def changeTestFoV(self, context):

def copyFinalFoV(self, context):
scene = context.scene
fovtool = scene.my_tool
fovtool = scene.fov_tool

if not fovtool.hold_fov_bool and not fovtool.final_fov_bool:
fovtool.hold_fov_bool = True
Expand Down Expand Up @@ -116,7 +116,7 @@ def copyFinalFoV(self, context):
#
def changeBaseWidth(self, context):
scene = context.scene
fovtool = scene.my_tool
fovtool = scene.fov_tool

fovtool.base_width_bool = True

Expand All @@ -128,7 +128,7 @@ def changeBaseWidth(self, context):

def changeTestWidth(self, context):
scene = context.scene
fovtool = scene.my_tool
fovtool = scene.fov_tool

fovtool.test_width_bool = True

Expand All @@ -141,7 +141,7 @@ def changeTestWidth(self, context):

def copyFinalWidth(self, context):
scene = context.scene
fovtool = scene.my_tool
fovtool = scene.fov_tool

if not fovtool.hold_width_bool and not fovtool.final_width_bool:
fovtool.hold_width_bool = True
Expand Down Expand Up @@ -186,7 +186,7 @@ class FOV_PT_fov_panel(bpy.types.Panel):
def draw(self, context):
layout = self.layout
scene = context.scene
fovtool = scene.my_tool
fovtool = scene.fov_tool
layout.use_property_decorate = False # No animation.

box = layout.box()
Expand Down Expand Up @@ -350,7 +350,7 @@ def poll(cls, context):

def execute(self, context):
scene = context.scene
fovtool = scene.my_tool
fovtool = scene.fov_tool

# fovtool.base_fov_float = 45.0
fovtool.base_y_float = 0.0
Expand Down Expand Up @@ -401,7 +401,7 @@ def poll(cls, context):

def execute(self, context):
scene = context.scene
fovtool = scene.my_tool
fovtool = scene.fov_tool

ob = context.active_object

Expand All @@ -425,7 +425,7 @@ def poll(cls, context):

def execute(self, context):
scene = context.scene
fovtool = scene.my_tool
fovtool = scene.fov_tool

fovtool.test_fov_import_bool = True

Expand All @@ -444,7 +444,7 @@ def poll(cls, context):

def execute(self, context):
scene = context.scene
fovtool = scene.my_tool
fovtool = scene.fov_tool

ob = context.active_object

Expand All @@ -467,7 +467,7 @@ def poll(cls, context):

def execute(self, context):
scene = context.scene
fovtool = scene.my_tool
fovtool = scene.fov_tool

ob = context.active_object

Expand Down Expand Up @@ -512,7 +512,7 @@ class WIDTH_PT_width_panel(bpy.types.Panel):
def draw(self, context):
layout = self.layout
scene = context.scene
fovtool = scene.my_tool
fovtool = scene.fov_tool
layout.use_property_decorate = False # No animation.

if fovtool.fov_expert_bool:
Expand Down Expand Up @@ -672,7 +672,7 @@ def poll(cls, context):

def execute(self, context):
scene = context.scene
fovtool = scene.my_tool
fovtool = scene.fov_tool

# fovtool.base_width_float = 1024.0
fovtool.base_x_float = 0.0
Expand Down Expand Up @@ -706,7 +706,7 @@ def poll(cls, context):

def execute(self, context):
scene = context.scene
fovtool = scene.my_tool
fovtool = scene.fov_tool

ob = context.active_object
fovtool.base_x_float = ob.dimensions[0]
Expand All @@ -727,7 +727,7 @@ def poll(cls, context):

def execute(self, context):
scene = context.scene
fovtool = scene.my_tool
fovtool = scene.fov_tool

fovtool.test_width_import_bool = True

Expand All @@ -746,7 +746,7 @@ def poll(cls, context):

def execute(self, context):
scene = context.scene
fovtool = scene.my_tool
fovtool = scene.fov_tool

ob = context.active_object
fovtool.test_x_float = ob.dimensions[0]
Expand All @@ -769,7 +769,7 @@ def poll(cls, context):

def execute(self, context):
scene = context.scene
fovtool = scene.my_tool
fovtool = scene.fov_tool

ob = context.active_object

Expand Down Expand Up @@ -826,13 +826,13 @@ def register():
for cls in classes:
bpy.utils.register_class(cls)

bpy.types.Scene.my_tool = bpy.props.PointerProperty(type= FOVProperties)
bpy.types.Scene.fov_tool = bpy.props.PointerProperty(type= FOVProperties)

def unregister():

for cls in classes:
bpy.utils.unregister_class(cls)
del bpy.types.Scene.my_tool
del bpy.types.Scene.fov_tool

if __name__ == "__main__":
register()

0 comments on commit 6e43153

Please sign in to comment.