Blender Git Loki

Git Commits -> Revision 34d6760

Revision 34d6760 by Sergey Sharybin (master)
May 17, 2019, 12:27 (GMT)
Python: Raise an error even NO_MAIN data is assigned to object

The goal is to prevent assignment of temporary or evaluated meshes
to objects from the main database.

Majority of the change is actually related on passing reports around.

On a positive side there are more error prints which can become more
visible to scripters.

There are still possible further improvements in the related areas.
For example, disable user counting for evaluated ID datablocks when
assignment happens. But can also happen later on as a separate
improvement.

Reviewers: brecht, campbellbarton, mont29

Reviewed By: brecht

Differential Revision: https://developer.blender.org/D4884

Commit Details:

Full Hash: 34d67601b716046cf15f3e808a92bc91d0af804f
Parent Commit: 8b5816e
Lines Changed: +319, -127

50 Modified Paths:

/source/blender/blenkernel/intern/library.c (+1, -1) (Diff)
/source/blender/editors/curve/editfont.c (+2, -2) (Diff)
/source/blender/editors/interface/interface.c (+3, -3) (Diff)
/source/blender/editors/interface/interface_eyedropper_datablock.c (+1, -1) (Diff)
/source/blender/editors/interface/interface_handlers.c (+1, -1) (Diff)
/source/blender/editors/interface/interface_templates.c (+5, -5) (Diff)
/source/blender/editors/io/io_cache.c (+1, -1) (Diff)
/source/blender/editors/render/render_shading.c (+3, -3) (Diff)
/source/blender/editors/sound/sound_ops.c (+1, -1) (Diff)
/source/blender/editors/space_action/action_data.c (+3, -3) (Diff)
/source/blender/editors/space_clip/clip_ops.c (+1, -1) (Diff)
/source/blender/editors/space_image/image_ops.c (+2, -2) (Diff)
/source/blender/editors/space_node/node_add.c (+1, -1) (Diff)
/source/blender/editors/space_text/text_ops.c (+2, -2) (Diff)
/source/blender/makesrna/intern/makesrna.c (+2, -2) (Diff)
/source/blender/makesrna/intern/rna_access.c (+13, -8) (Diff)
/source/blender/makesrna/intern/rna_action.c (+3, -1) (Diff)
/source/blender/makesrna/intern/rna_animation.c (+9, -3) (Diff)
/source/blender/makesrna/intern/rna_armature.c (+21, -7) (Diff)
/source/blender/makesrna/intern/rna_cloth.c (+3, -1) (Diff)
/source/blender/makesrna/intern/rna_constraint.c (+12, -4) (Diff)
/source/blender/makesrna/intern/rna_curve.c (+9, -3) (Diff)
/source/blender/makesrna/intern/rna_fcurve.c (+9, -3) (Diff)
/source/blender/makesrna/intern/rna_gpencil.c (+6, -2) (Diff)
/source/blender/makesrna/intern/rna_gpencil_modifier.c (+5, -2) (Diff)
/source/blender/makesrna/intern/rna_image.c (+3, -1) (Diff)
/source/blender/makesrna/intern/rna_internal.h (+3, -1) (Diff)
/source/blender/makesrna/intern/rna_internal_types.h (+4, -1) (Diff)
/source/blender/makesrna/intern/rna_key.c (+3, -1) (Diff)
/source/blender/makesrna/intern/rna_layer.c (+6, -2) (Diff)
/source/blender/makesrna/intern/rna_linestyle.c (+3, -1) (Diff)
/source/blender/makesrna/intern/rna_main_api.c (+7, -0) (Diff)
/source/blender/makesrna/intern/rna_mask.c (+12, -4) (Diff)
/source/blender/makesrna/intern/rna_material.c (+6, -2) (Diff)
/source/blender/makesrna/intern/rna_mesh_utils.h (+2, -1) (Diff)
/source/blender/makesrna/intern/rna_modifier.c (+10, -4) (Diff)
/source/blender/makesrna/intern/rna_nodetree.c (+15, -5) (Diff)
/source/blender/makesrna/intern/rna_object.c (+23, -8) (Diff)
/source/blender/makesrna/intern/rna_palette.c (+3, -1) (Diff)
/source/blender/makesrna/intern/rna_particle.c (+6, -2) (Diff)
/source/blender/makesrna/intern/rna_pose.c (+15, -5) (Diff)
/source/blender/makesrna/intern/rna_rna.c (+1, -1) (Diff)
/source/blender/makesrna/intern/rna_scene.c (+12, -4) (Diff)
/source/blender/makesrna/intern/rna_sequencer.c (+3, -1) (Diff)
/source/blender/makesrna/intern/rna_shader_fx.c (+2, -1) (Diff)
/source/blender/makesrna/intern/rna_space.c (+24, -8) (Diff)
/source/blender/makesrna/intern/rna_tracking.c (+9, -3) (Diff)
/source/blender/makesrna/intern/rna_wm.c (+15, -5) (Diff)
/source/blender/makesrna/RNA_access.h (+4, -1) (Diff)
/source/blender/python/intern/bpy_rna.c (+9, -1) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021