0
$\begingroup$

I'm using Blender 2.79 and trying to add a custom FloatProperty to a panel in an addon. The problem is that I can't get it to show up.

import bpy
from bpy.types import Panel, Operator
from bpy.props import FloatProperty

bl_info = {
 "name": "3D Ripper Correct",
 "author": "Unknown",
 "version": (1),
 "blender": (2, 7, 9),
 "location": "3D View > Tool Shelf > 3D Ripper",
 "description": "Tool to fix 3D Ripper distortion.",
 "warning": "",
 "wiki_url": "",
 "tracker_url": "",
 "category": "Mesh"}

#Panel class
class RipperCorrectPanel(Panel):
    bl_space_type = 'VIEW_3D'
    bl_region_type = 'TOOLS'
    bl_label = '3D Ripper'
    bl_context = 'objectmode'
    bl_category = '3D Ripper'

    fovval = FloatProperty (
        name="FOV",
        description="FOV value",
        default=1.0,
        min=1.0,
        max=100.0
        )

    #Draw UI
    def draw(self, context):
        layout = self.layout

        row = layout.row()
        row.prop(self, "fovval")

#Register
def register():
    bpy.utils.register_class(RipperCorrectPanel)

#Unregister
def unregister():
    bpy.utils.unregister_class(RipperCorrectPanel)

#Run
if __name__ == '__main__':
    register()
```
$\endgroup$