Skip to content

Commit

Permalink
fixed warnings and errors as highlighted in PR #19
Browse files Browse the repository at this point in the history
  • Loading branch information
maximeraafat committed May 11, 2023
1 parent b1113da commit 873563b
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion blender_nerf_ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# blender nerf shared ui properties class
class BlenderNeRF_UI(bpy.types.Panel):
'''BlenderNeRF UI'''
bl_idname = 'panel.blender_nerf_ui'
bl_idname = 'VIEW3D_PT_blender_nerf_ui'
bl_label = 'BlenderNeRF shared UI'
bl_space_type = 'VIEW_3D'
bl_region_type = 'UI'
Expand Down
2 changes: 1 addition & 1 deletion cos_ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# camera on sphere ui class
class COS_UI(bpy.types.Panel):
'''Camera on Sphere UI'''
bl_idname = 'panel.cos_ui'
bl_idname = 'VIEW3D_PT_cos_ui'
bl_label = 'Camera on Sphere COS'
bl_space_type = 'VIEW_3D'
bl_region_type = 'UI'
Expand Down
2 changes: 1 addition & 1 deletion helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ def properties_desgraph(scene):
if CAMERA_NAME in scene.objects.keys():
scene.objects[CAMERA_NAME].location = sample_from_sphere(scene)

def empty_fn(self): pass
def empty_fn(self, context): pass

can_scene_upd = properties_ui
can_properties_upd = properties_desgraph
Expand Down
2 changes: 1 addition & 1 deletion sof_ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# subset of frames ui class
class SOF_UI(bpy.types.Panel):
'''Subset of Frames UI'''
bl_idname = 'panel.sof_ui'
bl_idname = 'VIEW3D_PT_sof_ui'
bl_label = 'Subset of Frames SOF'
bl_space_type = 'VIEW_3D'
bl_region_type = 'UI'
Expand Down
3 changes: 2 additions & 1 deletion ttc_ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# train and test cameras ui class
class TTC_UI(bpy.types.Panel):
'''Train and Test Cameras UI'''
bl_idname = 'panel.ttc_ui'
bl_idname = 'VIEW3D_PT_ttc_ui'
bl_label = 'Train and Test Cameras TTC'
bl_space_type = 'VIEW_3D'
bl_region_type = 'UI'
Expand All @@ -18,6 +18,7 @@ def draw(self, context):
layout.alignment = 'CENTER'

layout.use_property_split = True
layout.prop(scene, 'ttc_nb_frames')
layout.prop_search(scene, 'camera_train_target', scene, 'objects')
layout.prop_search(scene, 'camera_test_target', scene, 'objects')

Expand Down

0 comments on commit 873563b

Please sign in to comment.