bring back possibility to override camera per view
this can now be found in the sidebar View panel - uses existing 'lock_camera_and_layers' but renames the property to 'use_local_camera' - uses RNA_def_property_boolean_negative_sdna to flip the value - remove the local view code in rna_SpaceView3D_lock_camera_and_layers_set - update Python code - update Addons code will be separate commit Fixes T60756 Reviewers: billreynish, brecht Maniphest Tasks: T60756 Differential Revision: https://developer.blender.org/D4247
This commit is contained in:
@@ -133,7 +133,7 @@ class SelectCamera(Operator):
|
||||
scene = context.scene
|
||||
view_layer = context.view_layer
|
||||
view = context.space_data
|
||||
if view.type == 'VIEW_3D' and not view.lock_camera_and_layers:
|
||||
if view.type == 'VIEW_3D' and view.use_local_camera:
|
||||
camera = view.camera
|
||||
else:
|
||||
camera = scene.camera
|
||||
|
||||
@@ -4206,7 +4206,10 @@ class VIEW3D_PT_view3d_properties(Panel):
|
||||
col = flow.column()
|
||||
|
||||
subcol = col.column()
|
||||
subcol.enabled = not view.lock_camera_and_layers
|
||||
subcol.prop(view, "use_local_camera")
|
||||
|
||||
subcol = col.column()
|
||||
subcol.enabled = view.use_local_camera
|
||||
subcol.prop(view, "camera", text="Local Camera")
|
||||
|
||||
subcol = col.column(align=True)
|
||||
|
||||
Reference in New Issue
Block a user