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:
authorSergey Sharybin <sergey.vfx@gmail.com>2017-08-04 10:11:26 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2017-08-04 10:11:26 +0300
commite6daa161ddb98e5dac6df0ed5f88e2f8c0d13522 (patch)
tree63c42b69668aeb4f7fff7e1005f731b01b6db8d2 /source/blender/makesrna
parent0db4dab0c356ca30a1cd31af594f6d2febcec143 (diff)
Tracking: Remove limit of 50 points of the track history
Was quite stupid reason for this: static size of array. Now we allocate needed amount of points in heap if requested path length is getting too big.
Diffstat (limited to 'source/blender/makesrna')
-rw-r--r--source/blender/makesrna/intern/rna_space.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/makesrna/intern/rna_space.c b/source/blender/makesrna/intern/rna_space.c
index f2e856bf1ba..7a1b5bb678b 100644
--- a/source/blender/makesrna/intern/rna_space.c
+++ b/source/blender/makesrna/intern/rna_space.c
@@ -4605,7 +4605,7 @@ static void rna_def_space_clip(BlenderRNA *brna)
/* path length */
prop = RNA_def_property(srna, "path_length", PROP_INT, PROP_NONE);
RNA_def_property_int_sdna(prop, NULL, "path_length");
- RNA_def_property_range(prop, 0, 50);
+ RNA_def_property_range(prop, 0, INT_MAX);
RNA_def_property_ui_text(prop, "Path Length", "Length of displaying path, in frames");
RNA_def_property_update(prop, NC_SPACE | ND_SPACE_CLIP, NULL);