Page MenuHome

bring back possibility to override camera per view
ClosedPublic

Authored by Philipp Oeser (lichtwerk) on Thu, Jan 24, 12:54 PM.

Details

Summary

this can now be found in the sidebar View panel

  • this 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

Diff Detail

Repository
rB Blender

Event Timeline

Brecht Van Lommel (brecht) requested changes to this revision.Thu, Jan 24, 1:07 PM

Please

  • Rename the property to use_local_camera
  • Use RNA_def_property_boolean_sdna to flip the value
  • Remove the local view code in rna_SpaceView3D_lock_camera_and_layers_set
  • Update Python and addons code.

We should not leave things in a halfway state.

This revision now requires changes to proceed.Thu, Jan 24, 1:07 PM
  • Rename the property to use_local_camera
  • Use 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 (Addons will be seperate... tomorrow)

note: unsure about the cycles change (seems to have no effect if I keep this flipped...?)

This revision is now accepted and ready to land.Thu, Jan 24, 5:03 PM

note: unsure about the cycles change (seems to have no effect if I keep this flipped...?)

The code looks correct and it seems to work correctly for me.

source/blender/makesrna/intern/rna_space.c
3181

Actually this line to define an icon can be removed, just a checkbox in the UI is sufficient.

This revision was automatically updated to reflect the committed changes.