Blender Git Loki
Git Commits -> Revision a1aa4a2
Revision a1aa4a2 by Jacques Lucke (master) August 23, 2019, 07:52 (GMT) |
RNA: Cleanup PointerRNA struct The old layout of `PointerRNA` was confusing for historic reasons: ``` typedef struct PointerRNA { struct { void *data; } id; struct StructRNA *type; void *data; } PointerRNA; ``` This patch updates it to: ``` typedef struct PointerRNA { struct ID *owner_id; struct StructRNA *type; void *data; } PointerRNA; ``` Throughout the code base `id.data` was replaced with `owner_id`. Furthermore, many explicit pointer type casts were added which were implicit before. Some type casts to `ID *` were removed. Reviewers: brecht, campbellbarton Differential Revision: https://developer.blender.org/D5558 |
Commit Details:
Full Hash: a1aa4a259713f26c32a5fac4adbe0751e0479f5b
Parent Commit: 232049d
Lines Changed: +991, -990
133 Modified Paths:
/intern/cycles/blender/blender_util.h (+2, -2) (Diff)
/source/blender/blenkernel/BKE_context.h (+1, -1) (Diff)
/source/blender/blenkernel/intern/anim_sys.c (+15, -15) (Diff)
/source/blender/blenkernel/intern/fcurve.c (+4, -4) (Diff)
/source/blender/depsgraph/intern/builder/deg_builder_cache.cc (+2, -2) (Diff)
/source/blender/depsgraph/intern/builder/deg_builder_relations.cc (+3, -3) (Diff)
/source/blender/depsgraph/intern/builder/deg_builder_rna.cc (+7, -7) (Diff)
/source/blender/depsgraph/intern/depsgraph_query.cc (+4, -4) (Diff)
/source/blender/draw/engines/eevee/eevee_lightcache.c (+2, -2) (Diff)
/source/blender/editors/animation/anim_channels_defines.c (+1, -1) (Diff)
/source/blender/editors/animation/anim_ipo_utils.c (+1, -1) (Diff)
/source/blender/editors/animation/drivers.c (+25, -23) (Diff)
/source/blender/editors/animation/keyframing.c (+16, -16) (Diff)
/source/blender/editors/animation/keyingsets.c (+6, -6) (Diff)
/source/blender/editors/armature/pose_select.c (+1, -1) (Diff)
/source/blender/editors/armature/pose_slide.c (+1, -1) (Diff)
/source/blender/editors/curve/editfont.c (+1, -1) (Diff)
/source/blender/editors/gpencil/gpencil_data.c (+2, -2) (Diff)
/source/blender/editors/interface/interface.c (+8, -8) (Diff)
/source/blender/editors/interface/interface_anim.c (+2, -2) (Diff)
/source/blender/editors/interface/interface_context_menu.c (+1, -1) (Diff)
/source/blender/editors/interface/interface_eyedropper_datablock.c (+2, -2) (Diff)
/source/blender/editors/interface/interface_eyedropper_driver.c (+3, -3) (Diff)
/source/blender/editors/interface/interface_handlers.c (+5, -5) (Diff)
/source/blender/editors/interface/interface_icons.c (+1, -1) (Diff)
/source/blender/editors/interface/interface_layout.c (+2, -2) (Diff)
/source/blender/editors/interface/interface_ops.c (+19, -19) (Diff)
/source/blender/editors/interface/interface_region_tooltip.c (+3, -3) (Diff)
/source/blender/editors/interface/interface_templates.c (+13, -13) (Diff)
/source/blender/editors/interface/interface_utils.c (+2, -2) (Diff)
/source/blender/editors/interface/interface_widgets.c (+1, -1) (Diff)
/source/blender/editors/object/object_constraint.c (+5, -5) (Diff)
/source/blender/editors/object/object_gpencil_modifier.c (+2, -2) (Diff)
/source/blender/editors/object/object_hook.c (+1, -1) (Diff)
/source/blender/editors/object/object_modifier.c (+2, -2) (Diff)
/source/blender/editors/object/object_relations.c (+1, -1) (Diff)
/source/blender/editors/object/object_shader_fx.c (+2, -2) (Diff)
/source/blender/editors/physics/particle_object.c (+5, -5) (Diff)
/source/blender/editors/physics/physics_pointcache.c (+6, -6) (Diff)
/source/blender/editors/render/render_shading.c (+4, -4) (Diff)
/source/blender/editors/screen/screen_context.c (+1, -1) (Diff)
/source/blender/editors/screen/screen_ops.c (+1, -1) (Diff)
/source/blender/editors/space_action/action_data.c (+1, -1) (Diff)
/source/blender/editors/space_action/space_action.c (+1, -1) (Diff)
/source/blender/editors/space_buttons/buttons_context.c (+6, -6) (Diff)
/source/blender/editors/space_buttons/buttons_ops.c (+1, -1) (Diff)
/source/blender/editors/space_buttons/buttons_texture.c (+1, -1) (Diff)
/source/blender/editors/space_buttons/space_buttons.c (+1, -1) (Diff)
/source/blender/editors/space_graph/graph_buttons.c (+2, -2) (Diff)
/source/blender/editors/space_graph/space_graph.c (+1, -1) (Diff)
/source/blender/editors/space_image/image_buttons.c (+1, -1) (Diff)
/source/blender/editors/space_image/image_ops.c (+1, -1) (Diff)
/source/blender/editors/space_nla/nla_buttons.c (+3, -3) (Diff)
/source/blender/editors/space_nla/nla_channels.c (+3, -3) (Diff)
/source/blender/editors/space_nla/space_nla.c (+1, -1) (Diff)
/source/blender/editors/space_node/drawnode.c (+11, -11) (Diff)
/source/blender/editors/space_node/node_edit.c (+5, -5) (Diff)
/source/blender/editors/space_outliner/outliner_edit.c (+1, -1) (Diff)
/source/blender/editors/space_outliner/outliner_tools.c (+2, -2) (Diff)
/source/blender/editors/space_outliner/outliner_tree.c (+1, -1) (Diff)
/source/blender/editors/space_sequencer/space_sequencer.c (+1, -1) (Diff)
/source/blender/editors/space_view3d/space_view3d.c (+2, -2) (Diff)
/source/blender/editors/space_view3d/view3d_edit.c (+1, -1) (Diff)
/source/blender/makesrna/intern/makesrna.c (+4, -4) (Diff)
/source/blender/makesrna/intern/rna_access.c (+40, -40) (Diff)
/source/blender/makesrna/intern/rna_access_compare_override.c (+9, -9) (Diff)
/source/blender/makesrna/intern/rna_action.c (+4, -4) (Diff)
/source/blender/makesrna/intern/rna_animation.c (+5, -5) (Diff)
/source/blender/makesrna/intern/rna_armature.c (+24, -24) (Diff)
/source/blender/makesrna/intern/rna_boid.c (+6, -6) (Diff)
/source/blender/makesrna/intern/rna_brush.c (+6, -6) (Diff)
/source/blender/makesrna/intern/rna_camera.c (+10, -10) (Diff)
/source/blender/makesrna/intern/rna_cloth.c (+6, -6) (Diff)
/source/blender/makesrna/intern/rna_collection.c (+2, -2) (Diff)
/source/blender/makesrna/intern/rna_color.c (+13, -13) (Diff)
/source/blender/makesrna/intern/rna_constraint.c (+17, -16) (Diff)
/source/blender/makesrna/intern/rna_context.c (+2, -2) (Diff)
/source/blender/makesrna/intern/rna_curve.c (+24, -24) (Diff)
/source/blender/makesrna/intern/rna_dynamicpaint.c (+1, -1) (Diff)
/source/blender/makesrna/intern/rna_fcurve.c (+10, -10) (Diff)
/source/blender/makesrna/intern/rna_fluidsim.c (+4, -4) (Diff)
/source/blender/makesrna/intern/rna_gpencil.c (+12, -12) (Diff)
/source/blender/makesrna/intern/rna_gpencil_modifier.c (+5, -5) (Diff)
/source/blender/makesrna/intern/rna_ID.c (+12, -12) (Diff)
/source/blender/makesrna/intern/rna_image.c (+19, -19) (Diff)
/source/blender/makesrna/intern/rna_key.c (+13, -13) (Diff)
/source/blender/makesrna/intern/rna_lattice.c (+8, -8) (Diff)
/source/blender/makesrna/intern/rna_layer.c (+3, -3) (Diff)
/source/blender/makesrna/intern/rna_light.c (+2, -2) (Diff)
/source/blender/makesrna/intern/rna_lightprobe.c (+1, -1) (Diff)
/source/blender/makesrna/intern/rna_linestyle.c (+8, -8) (Diff)
/source/blender/makesrna/intern/rna_mask.c (+11, -11) (Diff)
/source/blender/makesrna/intern/rna_material.c (+7, -7) (Diff)
/source/blender/makesrna/intern/rna_mesh.c (+7, -7) (Diff)
/source/blender/makesrna/intern/rna_meta.c (+3, -3) (Diff)
/source/blender/makesrna/intern/rna_modifier.c (+16, -16) (Diff)
/source/blender/makesrna/intern/rna_movieclip.c (+5, -5) (Diff)
/source/blender/makesrna/intern/rna_nla.c (+11, -11) (Diff)
/source/blender/makesrna/intern/rna_nodetree.c (+29, -29) (Diff)
/source/blender/makesrna/intern/rna_object.c (+79, -79) (Diff)
/source/blender/makesrna/intern/rna_object_api.c (+2, -2) (Diff)
/source/blender/makesrna/intern/rna_object_force.c (+41, -41) (Diff)
/source/blender/makesrna/intern/rna_particle.c (+28, -28) (Diff)
/source/blender/makesrna/intern/rna_pose.c (+22, -22) (Diff)
/source/blender/makesrna/intern/rna_rigidbody.c (+1, -1) (Diff)
/source/blender/makesrna/intern/rna_rna.c (+4, -4) (Diff)
/source/blender/makesrna/intern/rna_scene.c (+36, -36) (Diff)
/source/blender/makesrna/intern/rna_screen.c (+1, -1) (Diff)
/source/blender/makesrna/intern/rna_sculpt_paint.c (+4, -4) (Diff)
/source/blender/makesrna/intern/rna_sequencer.c (+33, -33) (Diff)
/source/blender/makesrna/intern/rna_shader_fx.c (+5, -5) (Diff)
/source/blender/makesrna/intern/rna_smoke.c (+3, -3) (Diff)
/source/blender/makesrna/intern/rna_space.c (+13, -13) (Diff)
/source/blender/makesrna/intern/rna_texture.c (+8, -8) (Diff)
/source/blender/makesrna/intern/rna_tracking.c (+38, -38) (Diff)
/source/blender/makesrna/intern/rna_vfont.c (+2, -2) (Diff)
/source/blender/makesrna/intern/rna_wm.c (+5, -5) (Diff)
/source/blender/makesrna/intern/rna_wm_gizmo.c (+1, -1) (Diff)
/source/blender/makesrna/intern/rna_workspace.c (+1, -1) (Diff)
/source/blender/makesrna/intern/rna_world.c (+5, -5) (Diff)
/source/blender/makesrna/RNA_access.h (+2, -2) (Diff)
/source/blender/makesrna/RNA_types.h (+3, -5) (Diff)
/source/blender/nodes/composite/nodes/node_composite_outputFile.c (+1, -1) (Diff)
/source/blender/nodes/composite/nodes/node_composite_switchview.c (+1, -1) (Diff)
/source/blender/python/intern/bpy_interface.c (+2, -2) (Diff)
/source/blender/python/intern/bpy_msgbus.c (+2, -2) (Diff)
/source/blender/python/intern/bpy_rna.c (+20, -20) (Diff)
/source/blender/python/intern/bpy_rna_anim.c (+7, -7) (Diff)
/source/blender/python/intern/bpy_rna_driver.c (+1, -1) (Diff)
/source/blender/windowmanager/intern/wm_event_system.c (+1, -1) (Diff)
/source/blender/windowmanager/intern/wm_operators.c (+11, -11) (Diff)
/source/blender/windowmanager/message_bus/intern/wm_message_bus_rna.c (+13, -13) (Diff)
/source/blender/windowmanager/message_bus/wm_message_bus.h (+3, -3) (Diff)
/source/blender/blenkernel/BKE_context.h (+1, -1) (Diff)
/source/blender/blenkernel/intern/anim_sys.c (+15, -15) (Diff)
/source/blender/blenkernel/intern/fcurve.c (+4, -4) (Diff)
/source/blender/depsgraph/intern/builder/deg_builder_cache.cc (+2, -2) (Diff)
/source/blender/depsgraph/intern/builder/deg_builder_relations.cc (+3, -3) (Diff)
/source/blender/depsgraph/intern/builder/deg_builder_rna.cc (+7, -7) (Diff)
/source/blender/depsgraph/intern/depsgraph_query.cc (+4, -4) (Diff)
/source/blender/draw/engines/eevee/eevee_lightcache.c (+2, -2) (Diff)
/source/blender/editors/animation/anim_channels_defines.c (+1, -1) (Diff)
/source/blender/editors/animation/anim_ipo_utils.c (+1, -1) (Diff)
/source/blender/editors/animation/drivers.c (+25, -23) (Diff)
/source/blender/editors/animation/keyframing.c (+16, -16) (Diff)
/source/blender/editors/animation/keyingsets.c (+6, -6) (Diff)
/source/blender/editors/armature/pose_select.c (+1, -1) (Diff)
/source/blender/editors/armature/pose_slide.c (+1, -1) (Diff)
/source/blender/editors/curve/editfont.c (+1, -1) (Diff)
/source/blender/editors/gpencil/gpencil_data.c (+2, -2) (Diff)
/source/blender/editors/interface/interface.c (+8, -8) (Diff)
/source/blender/editors/interface/interface_anim.c (+2, -2) (Diff)
/source/blender/editors/interface/interface_context_menu.c (+1, -1) (Diff)
/source/blender/editors/interface/interface_eyedropper_datablock.c (+2, -2) (Diff)
/source/blender/editors/interface/interface_eyedropper_driver.c (+3, -3) (Diff)
/source/blender/editors/interface/interface_handlers.c (+5, -5) (Diff)
/source/blender/editors/interface/interface_icons.c (+1, -1) (Diff)
/source/blender/editors/interface/interface_layout.c (+2, -2) (Diff)
/source/blender/editors/interface/interface_ops.c (+19, -19) (Diff)
/source/blender/editors/interface/interface_region_tooltip.c (+3, -3) (Diff)
/source/blender/editors/interface/interface_templates.c (+13, -13) (Diff)
/source/blender/editors/interface/interface_utils.c (+2, -2) (Diff)
/source/blender/editors/interface/interface_widgets.c (+1, -1) (Diff)
/source/blender/editors/object/object_constraint.c (+5, -5) (Diff)
/source/blender/editors/object/object_gpencil_modifier.c (+2, -2) (Diff)
/source/blender/editors/object/object_hook.c (+1, -1) (Diff)
/source/blender/editors/object/object_modifier.c (+2, -2) (Diff)
/source/blender/editors/object/object_relations.c (+1, -1) (Diff)
/source/blender/editors/object/object_shader_fx.c (+2, -2) (Diff)
/source/blender/editors/physics/particle_object.c (+5, -5) (Diff)
/source/blender/editors/physics/physics_pointcache.c (+6, -6) (Diff)
/source/blender/editors/render/render_shading.c (+4, -4) (Diff)
/source/blender/editors/screen/screen_context.c (+1, -1) (Diff)
/source/blender/editors/screen/screen_ops.c (+1, -1) (Diff)
/source/blender/editors/space_action/action_data.c (+1, -1) (Diff)
/source/blender/editors/space_action/space_action.c (+1, -1) (Diff)
/source/blender/editors/space_buttons/buttons_context.c (+6, -6) (Diff)
/source/blender/editors/space_buttons/buttons_ops.c (+1, -1) (Diff)
/source/blender/editors/space_buttons/buttons_texture.c (+1, -1) (Diff)
/source/blender/editors/space_buttons/space_buttons.c (+1, -1) (Diff)
/source/blender/editors/space_graph/graph_buttons.c (+2, -2) (Diff)
/source/blender/editors/space_graph/space_graph.c (+1, -1) (Diff)
/source/blender/editors/space_image/image_buttons.c (+1, -1) (Diff)
/source/blender/editors/space_image/image_ops.c (+1, -1) (Diff)
/source/blender/editors/space_nla/nla_buttons.c (+3, -3) (Diff)
/source/blender/editors/space_nla/nla_channels.c (+3, -3) (Diff)
/source/blender/editors/space_nla/space_nla.c (+1, -1) (Diff)
/source/blender/editors/space_node/drawnode.c (+11, -11) (Diff)
/source/blender/editors/space_node/node_edit.c (+5, -5) (Diff)
/source/blender/editors/space_outliner/outliner_edit.c (+1, -1) (Diff)
/source/blender/editors/space_outliner/outliner_tools.c (+2, -2) (Diff)
/source/blender/editors/space_outliner/outliner_tree.c (+1, -1) (Diff)
/source/blender/editors/space_sequencer/space_sequencer.c (+1, -1) (Diff)
/source/blender/editors/space_view3d/space_view3d.c (+2, -2) (Diff)
/source/blender/editors/space_view3d/view3d_edit.c (+1, -1) (Diff)
/source/blender/makesrna/intern/makesrna.c (+4, -4) (Diff)
/source/blender/makesrna/intern/rna_access.c (+40, -40) (Diff)
/source/blender/makesrna/intern/rna_access_compare_override.c (+9, -9) (Diff)
/source/blender/makesrna/intern/rna_action.c (+4, -4) (Diff)
/source/blender/makesrna/intern/rna_animation.c (+5, -5) (Diff)
/source/blender/makesrna/intern/rna_armature.c (+24, -24) (Diff)
/source/blender/makesrna/intern/rna_boid.c (+6, -6) (Diff)
/source/blender/makesrna/intern/rna_brush.c (+6, -6) (Diff)
/source/blender/makesrna/intern/rna_camera.c (+10, -10) (Diff)
/source/blender/makesrna/intern/rna_cloth.c (+6, -6) (Diff)
/source/blender/makesrna/intern/rna_collection.c (+2, -2) (Diff)
/source/blender/makesrna/intern/rna_color.c (+13, -13) (Diff)
/source/blender/makesrna/intern/rna_constraint.c (+17, -16) (Diff)
/source/blender/makesrna/intern/rna_context.c (+2, -2) (Diff)
/source/blender/makesrna/intern/rna_curve.c (+24, -24) (Diff)
/source/blender/makesrna/intern/rna_dynamicpaint.c (+1, -1) (Diff)
/source/blender/makesrna/intern/rna_fcurve.c (+10, -10) (Diff)
/source/blender/makesrna/intern/rna_fluidsim.c (+4, -4) (Diff)
/source/blender/makesrna/intern/rna_gpencil.c (+12, -12) (Diff)
/source/blender/makesrna/intern/rna_gpencil_modifier.c (+5, -5) (Diff)
/source/blender/makesrna/intern/rna_ID.c (+12, -12) (Diff)
/source/blender/makesrna/intern/rna_image.c (+19, -19) (Diff)
/source/blender/makesrna/intern/rna_key.c (+13, -13) (Diff)
/source/blender/makesrna/intern/rna_lattice.c (+8, -8) (Diff)
/source/blender/makesrna/intern/rna_layer.c (+3, -3) (Diff)
/source/blender/makesrna/intern/rna_light.c (+2, -2) (Diff)
/source/blender/makesrna/intern/rna_lightprobe.c (+1, -1) (Diff)
/source/blender/makesrna/intern/rna_linestyle.c (+8, -8) (Diff)
/source/blender/makesrna/intern/rna_mask.c (+11, -11) (Diff)
/source/blender/makesrna/intern/rna_material.c (+7, -7) (Diff)
/source/blender/makesrna/intern/rna_mesh.c (+7, -7) (Diff)
/source/blender/makesrna/intern/rna_meta.c (+3, -3) (Diff)
/source/blender/makesrna/intern/rna_modifier.c (+16, -16) (Diff)
/source/blender/makesrna/intern/rna_movieclip.c (+5, -5) (Diff)
/source/blender/makesrna/intern/rna_nla.c (+11, -11) (Diff)
/source/blender/makesrna/intern/rna_nodetree.c (+29, -29) (Diff)
/source/blender/makesrna/intern/rna_object.c (+79, -79) (Diff)
/source/blender/makesrna/intern/rna_object_api.c (+2, -2) (Diff)
/source/blender/makesrna/intern/rna_object_force.c (+41, -41) (Diff)
/source/blender/makesrna/intern/rna_particle.c (+28, -28) (Diff)
/source/blender/makesrna/intern/rna_pose.c (+22, -22) (Diff)
/source/blender/makesrna/intern/rna_rigidbody.c (+1, -1) (Diff)
/source/blender/makesrna/intern/rna_rna.c (+4, -4) (Diff)
/source/blender/makesrna/intern/rna_scene.c (+36, -36) (Diff)
/source/blender/makesrna/intern/rna_screen.c (+1, -1) (Diff)
/source/blender/makesrna/intern/rna_sculpt_paint.c (+4, -4) (Diff)
/source/blender/makesrna/intern/rna_sequencer.c (+33, -33) (Diff)
/source/blender/makesrna/intern/rna_shader_fx.c (+5, -5) (Diff)
/source/blender/makesrna/intern/rna_smoke.c (+3, -3) (Diff)
/source/blender/makesrna/intern/rna_space.c (+13, -13) (Diff)
/source/blender/makesrna/intern/rna_texture.c (+8, -8) (Diff)
/source/blender/makesrna/intern/rna_tracking.c (+38, -38) (Diff)
/source/blender/makesrna/intern/rna_vfont.c (+2, -2) (Diff)
/source/blender/makesrna/intern/rna_wm.c (+5, -5) (Diff)
/source/blender/makesrna/intern/rna_wm_gizmo.c (+1, -1) (Diff)
/source/blender/makesrna/intern/rna_workspace.c (+1, -1) (Diff)
/source/blender/makesrna/intern/rna_world.c (+5, -5) (Diff)
/source/blender/makesrna/RNA_access.h (+2, -2) (Diff)
/source/blender/makesrna/RNA_types.h (+3, -5) (Diff)
/source/blender/nodes/composite/nodes/node_composite_outputFile.c (+1, -1) (Diff)
/source/blender/nodes/composite/nodes/node_composite_switchview.c (+1, -1) (Diff)
/source/blender/python/intern/bpy_interface.c (+2, -2) (Diff)
/source/blender/python/intern/bpy_msgbus.c (+2, -2) (Diff)
/source/blender/python/intern/bpy_rna.c (+20, -20) (Diff)
/source/blender/python/intern/bpy_rna_anim.c (+7, -7) (Diff)
/source/blender/python/intern/bpy_rna_driver.c (+1, -1) (Diff)
/source/blender/windowmanager/intern/wm_event_system.c (+1, -1) (Diff)
/source/blender/windowmanager/intern/wm_operators.c (+11, -11) (Diff)
/source/blender/windowmanager/message_bus/intern/wm_message_bus_rna.c (+13, -13) (Diff)
/source/blender/windowmanager/message_bus/wm_message_bus.h (+3, -3) (Diff)