Commit Graph

6 Commits

Author SHA1 Message Date
95d92095e1 Fix for an error condition in CurvePoint::getFEdge() within the C++ layer.
The error was identified thanks to a problem report that MaterialF0D() failed
when the Face Smoothness option was enabled.
2011-08-30 23:09:07 +00:00
ecd76d99d6 Consolidation of stroke drawing.
Fixed a complicated bug that caused a failure of CurvePoint::getFEdge()
which had affected a number of C/Python API functions such as MaterialF0D.

The current view map building procedure may generate ViewEdges whose
two-dimensional (2D) length is almost or exactly zero.  Such a zero-length
ViewEdge is possibly chained with other ViewEdges to form a stroke.  When
the stroke is finally generated by Operators::create(), an attempt to remove
redundant vertices at the same 2D point is made.  This possibly breaks the
links of ViewEdges on top of which the stroke has been built, and eventually
result in a fatal error of CurvePoint::getFEdge() when API functions that
rely on this method are called from within a style module.

The present fix addresses this issue by automatically removing zero-length
ViewEdges (and Chains of them) before stroke drawing is started and after
splitting is performed (e.g., using Operators::sequentialSplit()).
2011-02-22 01:39:56 +00:00
e3747f7bee Yet another attempt to fix a fatal error in the constructor of the
CurvePoint class (cf. revision 32688).  Also added a few printf calls
for debugging, with the aim of making bug reports more informative.
Problem reported by edna in the BA Freestyle thread together with a
.blend file for reproducing the fatal error, thanks!
2010-10-30 13:00:11 +00:00
bc1b41eca5 * Another attempt to fix the bug partly addressed in revision 31419.
* Fix for the missing function declaration of strcpy.  This caused
a linker error in the Debug build with x64 VC 2008 and CMake.
2010-10-24 16:10:45 +00:00
fd793b069d Fix for a bug in a CurvePoint constructor that caused a crash.
This bug was related to an instability issue of SamplingShader.
2010-08-17 14:09:53 +00:00
Maxime Curioni
64e4a3ec9a soc-2008-mxcurioni: merged changes to revision 14747, cosmetic changes for source/blender/freestyle 2008-05-08 19:16:40 +00:00