Fix prop name

Add an unloaded operator (for potential later use) to adjust scale custom prop of the plane to fit camera frame.
This commit is contained in:
pullusb
2025-07-15 15:05:10 +02:00
parent d1ea1b7c86
commit 51a4e78482
6 changed files with 80 additions and 6 deletions
+1 -1
View File
@@ -138,7 +138,7 @@ class BPM_PT_bg_manager_panel(Panel):
row.label(text='Move:')
if active_item.type == 'bg':
row.operator("bpm.set_distance", text=f"Distance {ob['distance']:.1f}m")
row.prop(scn.bg_props, 'move_hided', text='Hided')
row.prop(scn.bg_props, 'move_hidden', text='Hidden')
elif active_item.type == 'obj':
cam = context.scene.objects.get('bg_cam') or context.scene.camera
+1 -1
View File
@@ -330,7 +330,7 @@ class BPM_bg_settings(PropertyGroup):
planes : bpy.props.CollectionProperty(type=BPM_bg_list_prop)
show_distance : BoolProperty(name='Show Distance', default=False)
opacity : FloatProperty(name='Opacity', default=1.0, min=0.0, max=1.0, update=update_opacity)
move_hided : BoolProperty(name='Move hided', default=True)
move_hidden : BoolProperty(name='Move Hidden', default=True)
ui_list_scale : FloatProperty(name='UI Item Y Scale', default=1.6, min=0.6, soft_min=1.0, max=2.0)
# distance : FloatProperty(name='Distance', default=0.0, update=update_distance)