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:
authorCampbell Barton <ideasman42@gmail.com>2019-06-25 04:22:23 +0300
committerCampbell Barton <ideasman42@gmail.com>2019-06-25 04:29:17 +0300
commit40a396792d77b01189d67afbe91b61b05d0bd953 (patch)
treec75c41f4cd3227788e0bfd0aadd9eb74dcad091b /source/blender/blenloader/intern/versioning_cycles.c
parent4d42f4b9444e6a652715954b0f66029dd4523cde (diff)
Fix T66096: Crash in Cycles versioning
Diffstat (limited to 'source/blender/blenloader/intern/versioning_cycles.c')
-rw-r--r--source/blender/blenloader/intern/versioning_cycles.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenloader/intern/versioning_cycles.c b/source/blender/blenloader/intern/versioning_cycles.c
index 1740faca265..92113723aab 100644
--- a/source/blender/blenloader/intern/versioning_cycles.c
+++ b/source/blender/blenloader/intern/versioning_cycles.c
@@ -224,7 +224,7 @@ static void vector_curve_node_remap(bNode *node)
for (int curve_index = 0; curve_index < CM_TOT; curve_index++) {
CurveMap *cm = &mapping->cm[curve_index];
if (cm->curve) {
- for (int i = 0; i < mapping->cm->totpoint; i++) {
+ for (int i = 0; i < cm->totpoint; i++) {
cm->curve[i].x = (cm->curve[i].x * 2.0f) - 1.0f;
cm->curve[i].y = (cm->curve[i].y - 0.5f) * 2.0f;
}