Blender Git Loki

Git Commits -> Revision 812515b

Revision 812515b by Tamito Kajiyama (master)
June 4, 2014, 06:03 (GMT)
Freestyle: Fix for a potential infinite loop in stroke resampling by vertex count.

Changes were made in Stroke::Resample(int) in C++ to prevent a potential infinite loop
caused by an inconsistency between Stroke::_Length and the stroke length computed
based on stroke vertices. Such a stroke length inconsistency is usually caused by missing
calls of Stroke::UpdateLength() (i.e., API implementation bugs), but also may occur due
to scripting errors in user-defined style modules. This commit is meant to help script
writters to identify the latter error cases. Now Stroke.resample(int) may raise a runtime
error to signal an error condition.

Commit Details:

Full Hash: 812515b623be9179e67d97b84b10df587244d38c
Parent Commit: 5ee55ca
Lines Changed: +30, -14

3 Modified Paths:

/source/blender/freestyle/intern/python/Interface1D/BPy_Stroke.cpp (+8, -2) (Diff)
/source/blender/freestyle/intern/stroke/Stroke.cpp (+20, -10) (Diff)
/source/blender/freestyle/intern/stroke/Stroke.h (+2, -2) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021