Blender Git Loki

Git Commits -> Revision 51bada6

Revision 51bada6 by Sergey Sharybin (master)
January 11, 2012, 08:51 (GMT)
Longer names support for all ID and other object names

This commit extends limit of ID and objects to 64 (it means 63 meaning
characters and 1 for zero-terminator). CustomData layers names are also
extended.
Changed DNA structures and all places where length constants were hardcoded.

All names which are "generating" from ID block should be limited by MAX_ID_NAME-2,
all non-id names now has got own define called MAX_NAME which should be used all
over for non-id names to make further name migration stuff easier.

All name fields in DNA now have comment with constant which corresponds to
hardcoded numeric value which should make it easier to further update this
limits or even switch to non-hardcoded values in DNA.

Special thanks to Campbell who helped figuring out some issues and helped a lot
in finding all cases where hardcoded valued were still used in code.

Both of forwards and backwards compatibility is stored with blender versions newer
than January 5, 2011. Older versions had issue with placing null-terminator to
DNA strings on file load which will lead to some unpredictable behavior or even
crashes.

Commit Details:

Full Hash: 51bada696f77de9d7f673884cec9560218654fae
SVN Revision: 43283
Parent Commit: 782f0b6
Lines Changed: +345, -330

87 Modified Paths:

/source/blender/blenkernel/BKE_armature.h (+1, -1) (Diff)
/source/blender/blenkernel/BKE_deform.h (+1, -1) (Diff)
/source/blender/blenkernel/BKE_node.h (+3, -3) (Diff)
/source/blender/blenkernel/BKE_sequencer.h (+1, -1) (Diff)
/source/blender/blenkernel/intern/customdata.c (+1, -1) (Diff)
/source/blender/blenkernel/intern/dynamicpaint.c (+2, -2) (Diff)
/source/blender/blenkernel/intern/library.c (+16, -14) (Diff)
/source/blender/blenkernel/intern/mball.c (+5, -5) (Diff)
/source/blender/blenkernel/intern/object.c (+1, -1) (Diff)
/source/blender/blenkernel/intern/seqeffects.c (+5, -2) (Diff)
/source/blender/blenkernel/intern/sequencer.c (+8, -8) (Diff)
/source/blender/blenkernel/intern/sound.c (+2, -2) (Diff)
/source/blender/blenkernel/intern/tracking.c (+2, -2) (Diff)
/source/blender/editors/armature/editarmature.c (+3, -3) (Diff)
/source/blender/editors/armature/editarmature_retarget.c (+3, -3) (Diff)
/source/blender/editors/armature/poseobject.c (+1, -1) (Diff)
/source/blender/editors/include/ED_armature.h (+1, -1) (Diff)
/source/blender/editors/interface/interface.c (+1, -1) (Diff)
/source/blender/editors/interface/interface_layout.c (+1, -1) (Diff)
/source/blender/editors/interface/interface_templates.c (+1, -1) (Diff)
/source/blender/editors/mesh/mesh_data.c (+2, -2) (Diff)
/source/blender/editors/object/object_add.c (+2, -2) (Diff)
/source/blender/editors/object/object_constraint.c (+2, -2) (Diff)
/source/blender/editors/object/object_edit.c (+2, -2) (Diff)
/source/blender/editors/object/object_group.c (+2, -2) (Diff)
/source/blender/editors/object/object_hook.c (+2, -2) (Diff)
/source/blender/editors/object/object_modifier.c (+2, -2) (Diff)
/source/blender/editors/object/object_ops.c (+1, -1) (Diff)
/source/blender/editors/object/object_relations.c (+3, -3) (Diff)
/source/blender/editors/object/object_select.c (+2, -2) (Diff)
/source/blender/editors/sculpt_paint/sculpt.c (+1, -1) (Diff)
/source/blender/editors/space_logic/logic_ops.c (+23, -23) (Diff)
/source/blender/editors/space_logic/logic_window.c (+48, -48) (Diff)
/source/blender/editors/space_node/drawnode.c (+2, -2) (Diff)
/source/blender/editors/space_node/node_edit.c (+6, -6) (Diff)
/source/blender/editors/space_view3d/view3d_edit.c (+2, -2) (Diff)
/source/blender/editors/transform/transform.h (+1, -1) (Diff)
/source/blender/editors/transform/transform_ops.c (+2, -2) (Diff)
/source/blender/editors/transform/transform_orientations.c (+4, -3) (Diff)
/source/blender/gpu/GPU_extensions.h (+1, -1) (Diff)
/source/blender/makesdna/DNA_action_types.h (+3, -3) (Diff)
/source/blender/makesdna/DNA_actuator_types.h (+15, -15) (Diff)
/source/blender/makesdna/DNA_armature_types.h (+2, -2) (Diff)
/source/blender/makesdna/DNA_constraint_types.h (+24, -23) (Diff)
/source/blender/makesdna/DNA_controller_types.h (+1, -1) (Diff)
/source/blender/makesdna/DNA_customdata_types.h (+3, -1) (Diff)
/source/blender/makesdna/DNA_defs.h (+3, -0) (Diff)
/source/blender/makesdna/DNA_dynamicpaint_types.h (+1, -1) (Diff)
/source/blender/makesdna/DNA_effect_types.h (+1, -1) (Diff)
/source/blender/makesdna/DNA_ID.h (+7, -6) (Diff)
/source/blender/makesdna/DNA_key_types.h (+3, -3) (Diff)
/source/blender/makesdna/DNA_lattice_types.h (+1, -1) (Diff)
/source/blender/makesdna/DNA_material_types.h (+1, -1) (Diff)
/source/blender/makesdna/DNA_modifier_types.h (+34, -34) (Diff)
/source/blender/makesdna/DNA_node_types.h (+8, -8) (Diff)
/source/blender/makesdna/DNA_object_force.h (+3, -3) (Diff)
/source/blender/makesdna/DNA_object_types.h (+4, -4) (Diff)
/source/blender/makesdna/DNA_particle_types.h (+2, -2) (Diff)
/source/blender/makesdna/DNA_property_types.h (+1, -1) (Diff)
/source/blender/makesdna/DNA_scene_types.h (+3, -2) (Diff)
/source/blender/makesdna/DNA_sensor_types.h (+21, -21) (Diff)
/source/blender/makesdna/DNA_sequence_types.h (+2, -2) (Diff)
/source/blender/makesdna/DNA_texture_types.h (+1, -1) (Diff)
/source/blender/makesdna/DNA_tracking_types.h (+2, -2) (Diff)
/source/blender/makesdna/DNA_view3d_types.h (+1, -1) (Diff)
/source/blender/makesdna/DNA_windowmanager_types.h (+1, -1) (Diff)
/source/blender/makesrna/intern/rna_modifier.c (+1, -1) (Diff)
/source/blender/makesrna/intern/rna_nodetree.c (+1, -1) (Diff)
/source/blender/makesrna/intern/rna_tracking.c (+2, -2) (Diff)
/source/blender/modifiers/intern/MOD_armature.c (+1, -1) (Diff)
/source/blender/modifiers/intern/MOD_bevel.c (+1, -1) (Diff)
/source/blender/modifiers/intern/MOD_cast.c (+1, -1) (Diff)
/source/blender/modifiers/intern/MOD_curve.c (+1, -1) (Diff)
/source/blender/modifiers/intern/MOD_displace.c (+2, -2) (Diff)
/source/blender/modifiers/intern/MOD_hook.c (+2, -2) (Diff)
/source/blender/modifiers/intern/MOD_lattice.c (+1, -1) (Diff)
/source/blender/modifiers/intern/MOD_smooth.c (+1, -1) (Diff)
/source/blender/modifiers/intern/MOD_util.c (+1, -1) (Diff)
/source/blender/modifiers/intern/MOD_uvproject.c (+1, -1) (Diff)
/source/blender/modifiers/intern/MOD_wave.c (+1, -1) (Diff)
/source/blender/modifiers/intern/MOD_weightvg_util.c (+1, -1) (Diff)
/source/blender/modifiers/intern/MOD_weightvg_util.h (+1, -1) (Diff)
/source/blender/nodes/composite/node_composite_tree.c (+1, -1) (Diff)
/source/blender/nodes/texture/nodes/node_texture_output.c (+2, -2) (Diff)
/source/blender/python/generic/bpy_internal_import.c (+1, -1) (Diff)
/source/blender/python/generic/idprop_py_api.c (+2, -2) (Diff)
/source/blender/render/intern/include/render_types.h (+3, -2) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021