Blender Git Loki
Git Commits -> Revision b9e4e69
Revision b9e4e69 by Bastien Montagne (master) July 19, 2016, 14:27 (GMT) |
Fix (IRC reported by Sergey) assert regarding icon_id of newly copied datablocks. BKE_previewimg_copy() would simply copy PreviewImage's icon_id, without bothering about ID one. When we duplicate an ID, we want to reset its icon_id to zero (and regenerate it on-demand), not keep same icon_id as original, so added new BKE_previewimg_id_copy helper to handle that. |
Commit Details:
Full Hash: b9e4e69a4d38372e62b52fa826274673b7dfaacf
Parent Commit: eeedcf3
Lines Changed: +28, -9
8 Modified Paths:
/source/blender/blenkernel/BKE_icons.h (+2, -0) (Diff)
/source/blender/blenkernel/intern/icons.c (+18, -0) (Diff)
/source/blender/blenkernel/intern/image.c (+1, -1) (Diff)
/source/blender/blenkernel/intern/lamp.c (+2, -2) (Diff)
/source/blender/blenkernel/intern/material.c (+1, -1) (Diff)
/source/blender/blenkernel/intern/scene.c (+1, -1) (Diff)
/source/blender/blenkernel/intern/texture.c (+2, -3) (Diff)
/source/blender/blenkernel/intern/world.c (+1, -1) (Diff)
/source/blender/blenkernel/intern/icons.c (+18, -0) (Diff)
/source/blender/blenkernel/intern/image.c (+1, -1) (Diff)
/source/blender/blenkernel/intern/lamp.c (+2, -2) (Diff)
/source/blender/blenkernel/intern/material.c (+1, -1) (Diff)
/source/blender/blenkernel/intern/scene.c (+1, -1) (Diff)
/source/blender/blenkernel/intern/texture.c (+2, -3) (Diff)
/source/blender/blenkernel/intern/world.c (+1, -1) (Diff)