Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacques Lucke <mail@jlucke.com>2018-10-19 11:51:18 +0300
committerJacques Lucke <mail@jlucke.com>2018-10-19 11:51:33 +0300
commitc92f125e75b5980db1dbe08bd30df8dc0ecb3d56 (patch)
treec392f5c4ce4e5689d2ca148ef1e281a666e4ed25
parent56fd821e9711eb64d8fa2a9fef538f1c6a32fdf4 (diff)
Partial Revert: bring back some comments
-rw-r--r--source/blender/blenkernel/intern/library.c9
-rw-r--r--source/blender/blenkernel/intern/movieclip.c11
2 files changed, 20 insertions, 0 deletions
diff --git a/source/blender/blenkernel/intern/library.c b/source/blender/blenkernel/intern/library.c
index a34ebcd9fde..84aa0ed962b 100644
--- a/source/blender/blenkernel/intern/library.c
+++ b/source/blender/blenkernel/intern/library.c
@@ -1982,6 +1982,15 @@ bool new_id(ListBase *lb, ID *id, const char *tname)
result = check_for_dupid(lb, id, name);
strcpy(id->name + 2, name);
+ /* This was in 2.43 and previous releases
+ * however all data in blender should be sorted, not just duplicate names
+ * sorting should not hurt, but noting just incase it alters the way other
+ * functions work, so sort every time */
+#if 0
+ if (result)
+ id_sort_by_name(lb, id);
+#endif
+
id_sort_by_name(lb, id);
return result;
diff --git a/source/blender/blenkernel/intern/movieclip.c b/source/blender/blenkernel/intern/movieclip.c
index 4d70c2a7c94..0117b36a16e 100644
--- a/source/blender/blenkernel/intern/movieclip.c
+++ b/source/blender/blenkernel/intern/movieclip.c
@@ -1155,6 +1155,17 @@ bool BKE_movieclip_has_frame(MovieClip *clip, MovieClipUser *user)
void BKE_movieclip_get_size(MovieClip *clip, MovieClipUser *user, int *width, int *height)
{
+#if 0
+ /* originally was needed to support image sequences with different image dimensions,
+ * which might be useful for such things as reconstruction of unordered image sequence,
+ * or painting/rotoscoping of non-equal-sized images, but this ended up in unneeded
+ * cache lookups and even unwanted non-proxied files loading when doing mask parenting,
+ * so let's disable this for now and assume image sequence consists of images with
+ * equal sizes (sergey)
+ * TODO(sergey): Support reading sequences of different resolution.
+ */
+ if (user->framenr == clip->lastframe) {
+#endif
if (clip->lastsize[0] != 0 && clip->lastsize[1] != 0) {
*width = clip->lastsize[0];
*height = clip->lastsize[1];